|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
A Selectable instance always has a Selection that can be changed and queried. A Selection has a left and a right border. A Selection can also be of zero length when left and right border are the same. A Selectable has also a position that can be set and queried. The position is a single value that is independent from the Selection.
| Method Summary | |
|---|---|
void |
addSelectableListener(SelectableListener listener)
Add a SelectableListener that will be notified of changes to this Selectable´s Selection or position |
int |
getPosition()
Get the current position |
Selection |
getSelection()
Get the current Selection |
void |
removeSelectableListener(SelectableListener listener)
Remove a SelectableListener from this Selectable |
void |
setPosition(int pos)
Set the position |
void |
setSelection(Selection sel)
Set the Selection |
| Method Detail |
|---|
void addSelectableListener(SelectableListener listener)
listener - The SelectableListener to addint getPosition()
Selection getSelection()
void removeSelectableListener(SelectableListener listener)
listener - The SelectableListener to removevoid setPosition(int pos)
pos - The new positionvoid setSelection(Selection sel)
sel - The new Selection
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||