|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Markable
This interface should be implemented by objects, that can be marked.
A mark can be everything, like MARK_DELETED,
MARK_TOBEREPLACED. The implementation should occur the way,
that for objects with multiple marks the marks should be disjuncted
(bitwise OR operation).
| Field Summary | |
|---|---|
static int |
MARK_BASIC
The basic mark simple means that the object is marked somehow or that subsequent objects might bear a mark of proper meaning. |
static int |
MARK_DELETED
The mark, that the object was deleted. |
static int |
MARK_EXP
The first bit not used for the markers predefined in this class. |
static int |
MARK_MOVED
The mark, that the object was moved. |
static int |
MARK_REPLACED
The mark, that the object was replaced. |
static int |
MARK_SELECTED
This mark means, that the corresponding object, marked so, was somehow selected. |
static int |
MARK_TOBEDELETED
The mark, that the object is to be deleted. |
static int |
MARK_TOBEMOVED
The mark, that the object is to be moved. |
static int |
MARK_TOBEREPLACED
The mark, that the object is to be replaced. |
| Method Summary | |
|---|---|
void |
clearMark()
The mark of the object is cleared, thus it is not marked anymore. |
void |
clearMark(int mark)
Clears a special mark. |
int |
getMark()
Gets the complete mark for the object. |
boolean |
isMarked()
Tests, whether any mark is set. |
boolean |
isMarked(int mark)
Tests a special mark, whether it is set. |
void |
setMark(int mark)
Sets a mark for the object. |
| Field Detail |
|---|
static final int MARK_BASIC
static final int MARK_SELECTED
static final int MARK_TOBEDELETED
static final int MARK_DELETED
static final int MARK_TOBEREPLACED
static final int MARK_REPLACED
static final int MARK_TOBEMOVED
static final int MARK_MOVED
static final int MARK_EXP
public static final int MARK_XXX = MARK_BASIC<<(MARK_EXP+0);
| Method Detail |
|---|
void setMark(int mark)
mark - The mark to set.int getMark()
void clearMark(int mark)
mark - The mark to be deleted.void clearMark()
isMarked() and
isMarked(int) should return false.
isMarked(),
isMarked(int)boolean isMarked()
true iff a mark is set, false
otherwise.boolean isMarked(int mark)
mark - The mark to be tested.
true iff the mark is set, false
otherwise.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||