|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectturingmachine.CTMData
The class that all CTMDocument viewable elements must inherit from.
Field Summary | |
---|---|
private CTMData |
mDataParent
The parent data for this data, e.g. |
private boolean |
mDeleted
Whether or not this object has been deleted. |
private CTMDocument |
mDocument
The document this data belongs to. |
private int |
mModificationCount
The count of modifications to this object. |
(package private) static long |
serialVersionUID
Serial id, so future version will load old files |
Constructor Summary | |
---|---|
CTMData(CTMDocument aDocument)
Constructor. |
|
CTMData(CTMDocument aDocument,
CTMData aDataParent)
Constructor. |
Method Summary | |
---|---|
void |
delete()
Set this data as being deleted. |
CTMData |
getDataParent()
Get the document this state belongs to. |
CTMDocument |
getDocument()
Get the document this state belongs to. |
int |
getModificationCount()
Get this data's current modification value. |
boolean |
isDeleted()
Has this data been deleted? |
void |
touch()
Update this data's modification count to reflect some change in its sub-class. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
static final long serialVersionUID
private CTMDocument mDocument
private transient int mModificationCount
private transient boolean mDeleted
private CTMData mDataParent
Constructor Detail |
---|
public CTMData(CTMDocument aDocument)
aDocument
- The document this data belongs to.public CTMData(CTMDocument aDocument, CTMData aDataParent)
aDocument
- The document this data belongs to.mDataParent
- Tha parent data of this data.Method Detail |
---|
public void touch()
public int getModificationCount()
public void delete()
public boolean isDeleted()
public CTMData getDataParent()
public CTMDocument getDocument()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |