|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.cc.framework.common.DirtyMarkerImp
Simple Implementation of the DirtyMarker interface
| Field Summary | |
private int |
flags
State of the object |
| Fields inherited from interface com.cc.framework.common.DirtyMarker |
FLAG_DELETED, FLAG_DIRTY, FLAG_NEW |
| Constructor Summary | |
DirtyMarkerImp()
Constructor |
|
| Method Summary | |
boolean |
isDeleted()
Returns if the object is deleted |
boolean |
isDirty()
Returns if an object is dirty and has unsaved changes. |
boolean |
isNew()
Returns if the object is new |
void |
resetDeleted()
Clears the deleted flag |
void |
resetDirty()
Clears the dirty flag |
void |
resetNew()
Clears the new flag |
void |
setDeleted()
Sets the deleted flag |
void |
setDirty()
Sets the dirty flag |
void |
setNew()
Sets the new flag |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private int flags
| Constructor Detail |
public DirtyMarkerImp()
| Method Detail |
public final boolean isDeleted()
DirtyMarker
isDeleted in interface DirtyMarkertrue if the object is deleted;
false otherwise.DirtyMarker.isDeleted()public final boolean isDirty()
DirtyMarker
isDirty in interface DirtyMarkertrue if the object is dirty;
false otherwise.DirtyMarker.isDirty()public final boolean isNew()
DirtyMarker
isNew in interface DirtyMarkertrue if the object is new;
false otherwise.DirtyMarker.isNew()public final void setDeleted()
DirtyMarker
setDeleted in interface DirtyMarkerDirtyMarker.setDeleted()public final void setDirty()
DirtyMarker
setDirty in interface DirtyMarkerDirtyMarker.setDirty()public final void setNew()
DirtyMarker
setNew in interface DirtyMarkerDirtyMarker.setNew()public final void resetDirty()
DirtyMarker
resetDirty in interface DirtyMarkerDirtyMarker.resetDirty()public final void resetNew()
DirtyMarker
resetNew in interface DirtyMarkerDirtyMarker.resetNew()public final void resetDeleted()
DirtyMarker
resetDeleted in interface DirtyMarkerDirtyMarker.resetDeleted()public java.lang.String toString()
Object.toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||