| net.mygwt.ui.client.viewer.ICheckable
All known Subclasses: net.mygwt.ui.client.viewer.TreeTableViewer, net.mygwt.ui.client.viewer.TreeViewer, net.mygwt.ui.client.viewer.ListViewer,
addCheckStateListener | public void addCheckStateListener(ICheckStateListener listener)(Code) | | Adds a listener for changes to the checked state of elements
in this viewer.
Has no effect if an identical listener is already registered.
Parameters: listener - a check state listener |
getChecked | public boolean getChecked(Object element)(Code) | | Returns the checked state of the given element.
Parameters: element - the element true if the element is checked,and false if not checked |
removeCheckStateListener | public void removeCheckStateListener(ICheckStateListener listener)(Code) | | Removes the given check state listener from this viewer.
Has no effect if an identical listener is not registered.
Parameters: listener - a check state listener |
setChecked | public boolean setChecked(Object element, boolean state)(Code) | | Sets the checked state for the given element in this viewer.
Does not fire events to check state listeners.
Parameters: element - the element Parameters: state - 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 |
|
|