|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for objects that support elements with a checked state.
ICheckStateListener
,
CheckStateChangedEvent
Method Summary | |
void |
addCheckStateListener(ICheckStateListener listener)
Adds a listener for changes to the checked state of elements in this viewer. |
boolean |
getChecked(Object element)
Returns the checked state of the given element. |
void |
removeCheckStateListener(ICheckStateListener listener)
Removes the given check state listener from this viewer. |
boolean |
setChecked(Object element,
boolean state)
Sets the checked state for the given element in this viewer. |
Method Detail |
public void addCheckStateListener(ICheckStateListener listener)
listener
- a check state listenerpublic boolean getChecked(Object element)
element
- the element
true
if the element is checked,
and false
if not checkedpublic void removeCheckStateListener(ICheckStateListener listener)
listener
- a check state listenerpublic boolean setChecked(Object element, boolean state)
element
- the elementstate
- true
if the item should be checked,
and false
if it should be unchecked
true
if the checked state could be set,
and false
otherwise
|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |