|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.cdt.internal.ui.wizards.dialogfields.DialogField
org.eclipse.cdt.internal.ui.wizards.dialogfields.ListDialogField
org.eclipse.cdt.internal.ui.wizards.dialogfields.CheckedListDialogField
public class CheckedListDialogField
A list with checkboxes and a button bar. Typical buttons are 'Check All' and 'Uncheck All'. List model is independend of widget creation. DialogFields controls are: Label, List and Composite containing buttons.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.eclipse.cdt.internal.ui.wizards.dialogfields.ListDialogField |
---|
ListDialogField.ColumnsDescription |
Constructor Summary | |
---|---|
CheckedListDialogField(IListAdapter adapter,
java.lang.String[] customButtonLabels,
org.eclipse.jface.viewers.IBaseLabelProvider lprovider)
|
Method Summary | |
---|---|
void |
checkAll(boolean state)
Sets the check state of all elements |
void |
dialogFieldChanged()
Programatical invocation of a dialog field change. |
java.util.List |
getCheckedElements()
Gets the checked elements. |
int |
getCheckedSize()
Returns the number of checked elements. |
org.eclipse.swt.widgets.Control |
getListControl(org.eclipse.swt.widgets.Composite parent)
Returns the list control. |
boolean |
isChecked(java.lang.Object obj)
Returns true if the element is checked. |
void |
replaceElement(java.lang.Object oldElement,
java.lang.Object newElement)
Replace an element. |
void |
setCheckAllButtonIndex(int checkButtonIndex)
Sets the index of the 'check' button in the button label array passed in the constructor. |
void |
setChecked(java.lang.Object object,
boolean state)
Sets the checked state of an element. |
void |
setCheckedElements(java.util.Collection list)
Sets the checked elements. |
void |
setCheckedWithoutUpdate(java.lang.Object object,
boolean state)
Sets the checked state of an element. |
void |
setUncheckAllButtonIndex(int uncheckButtonIndex)
Sets the index of the 'uncheck' button in the button label array passed in the constructor. |
Methods inherited from class org.eclipse.cdt.internal.ui.wizards.dialogfields.ListDialogField |
---|
addElement, addElements, doFillIntoGrid, enableButton, getButtonBox, getElement, getElements, getIndexOfElement, getNumberOfControls, getSelectedElements, getSize, getTableViewer, insertElementAt, postSetSelection, refresh, removeAllElements, removeElement, removeElements, selectElements, selectFirstElement, setButtonsMinWidth, setDownButtonIndex, setElements, setRemoveButtonIndex, setTableColumns, setUpButtonIndex, setViewerComparator |
Methods inherited from class org.eclipse.cdt.internal.ui.wizards.dialogfields.DialogField |
---|
createEmptySpace, createEmptySpace, getLabelControl, isEnabled, postSetFocusOnDialogField, setDialogFieldListener, setEnabled, setFocus, setLabelText |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CheckedListDialogField(IListAdapter adapter, java.lang.String[] customButtonLabels, org.eclipse.jface.viewers.IBaseLabelProvider lprovider)
Method Detail |
---|
public void setCheckAllButtonIndex(int checkButtonIndex)
public void setUncheckAllButtonIndex(int uncheckButtonIndex)
public org.eclipse.swt.widgets.Control getListControl(org.eclipse.swt.widgets.Composite parent)
ListDialogField
getListControl
in class ListDialogField
parent
- the parent composite when called the first time, or null
after.public void dialogFieldChanged()
DialogField
dialogFieldChanged
in class ListDialogField
public java.util.List getCheckedElements()
public int getCheckedSize()
public boolean isChecked(java.lang.Object obj)
public void setCheckedElements(java.util.Collection list)
public void setChecked(java.lang.Object object, boolean state)
public void setCheckedWithoutUpdate(java.lang.Object object, boolean state)
public void checkAll(boolean state)
public void replaceElement(java.lang.Object oldElement, java.lang.Object newElement) throws java.lang.IllegalArgumentException
ListDialogField
replaceElement
in class ListDialogField
java.lang.IllegalArgumentException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |