|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface is the API that listboxes use to communicate with their elements. Any object that implements this interface may be placed into a listbox.
Fields inherited from class sub_arctic.constraints.std_constraint_consts |
FIRST_CHILD,
LAST_CHILD,
MAX_CHILD,
MIN_CHILD,
NEXT_SIBLING,
NO_CONSTRAINT,
OTHER,
PARENT,
PREV_SIBLING,
SELF,
ZERO |
Method Summary | |
void |
become_focus()
This method is used to inform the object that it has become the focus of a listbox. |
java.lang.Object |
convert_to_object()
This method is called by the listbox to try to get a more convenient representation of the list_element for the user-level code. |
boolean |
focused()
This method is used to query the object about whether or not it is the focus. |
void |
highlight()
This method will be called by the listbox to inform the object that it should highlight. |
boolean |
highlighted()
This returns the current highlight status of the object. |
void |
lost_focus()
This method is used to inform the object that it is not the focus any longer. |
int |
preferred_width()
This should return the preferred width of this item. |
void |
unhighlight()
This method will be called by the listbox to inform the object that it should no longer be highlighted. |
Method Detail |
public void highlight()
Implementations of this interface can assume that are not initially highlighted.
public void unhighlight()
public java.lang.Object convert_to_object()
This function is here to allow objects which have simple semantics to export those semantics to user-level code. For example, an implementation of this interface which displays text strings will want to return the string displayed from this function, rather than the object which does the display.
public boolean highlighted()
public void become_focus()
public void lost_focus()
public boolean focused()
public int preferred_width()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |