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
otherwise
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.