public class SelectionButtonDialogField extends DialogField
fLabelText| Constructor and Description |
|---|
SelectionButtonDialogField(int buttonStyle)
Creates a selection button.
|
| Modifier and Type | Method and Description |
|---|---|
void |
attachDialogField(DialogField dialogField)
Attaches a field to the selection state of the selection button.
|
void |
attachDialogFields(DialogField[] dialogFields)
Attaches fields to the selection state of the selection button.
|
org.eclipse.swt.widgets.Control[] |
doFillIntoGrid(org.eclipse.swt.widgets.Composite parent,
int nColumns)
Creates all controls of the dialog field and fills it to a composite.
|
int |
getNumberOfControls()
Returns the number of columns of the dialog field.
|
org.eclipse.swt.widgets.Button |
getSelectionButton(org.eclipse.swt.widgets.Composite group)
Returns the selection button widget.
|
boolean |
isAttached(DialogField editor)
Returns
true is teh gived field is attached to the selection
button. |
boolean |
isSelected()
Returns the selection state of the button.
|
void |
refresh()
Brings the UI in sync with the model.
|
void |
setLabelText(String labeltext)
Sets the label of the dialog field.
|
void |
setSelection(boolean selected)
Sets the selection state of the button.
|
protected void |
updateEnableState()
Called when the enable state changed.
|
assertCompositeNotNull, assertEnoughColumns, createEmptySpace, createEmptySpace, dialogFieldChanged, getLabelControl, gridDataForLabel, isEnabled, isOkToUse, postSetFocusOnDialogField, setDialogFieldListener, setEnabled, setFocuspublic SelectionButtonDialogField(int buttonStyle)
public void attachDialogField(DialogField dialogField)
public void attachDialogFields(DialogField[] dialogFields)
public boolean isAttached(DialogField editor)
true is teh gived field is attached to the selection
button.public org.eclipse.swt.widgets.Control[] doFillIntoGrid(org.eclipse.swt.widgets.Composite parent,
int nColumns)
DialogFieldMGridLayout as layout. The
dialog field will adjust its controls' spans to the number of columns
given. To be reimplemented by dialog field implementors.doFillIntoGrid in class DialogFieldpublic int getNumberOfControls()
DialogFieldgetNumberOfControls in class DialogFieldpublic org.eclipse.swt.widgets.Button getSelectionButton(org.eclipse.swt.widgets.Composite group)
group - The parent composite when called the first time, or
null after.public void setLabelText(String labeltext)
DialogFieldsetLabelText in class DialogFieldpublic boolean isSelected()
public void setSelection(boolean selected)
protected void updateEnableState()
DialogFieldupdateEnableState in class DialogFieldpublic void refresh()
DialogFieldrefresh in class DialogFieldCopyright © 2016. All Rights Reserved.