public interface ICheckable
ICheckStateListener,
CheckStateChangedEvent| Modifier and Type | Method and Description |
|---|---|
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.
|
void addCheckStateListener(ICheckStateListener listener)
listener - a check state listenerboolean getChecked(Object element)
element - the elementtrue if the element is checked,
and false if not checkedvoid removeCheckStateListener(ICheckStateListener listener)
listener - a check state listenerboolean setChecked(Object element, boolean state)
element - the elementstate - true if the item should be checked,
and false if it should be uncheckedtrue if the checked state could be set,
and false otherwiseGuidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.