public class CComboButtonField extends CComboField implements ICComboButtonField
Combo Field
Field containing a label, a combo control and a button.
EMPTY_LISTfLabelControl, fLabelText, fUseFormLayout, fWidgetFactory, MAX_WITDH| Constructor and Description |
|---|
CComboButtonField(boolean isEditable,
IButtonAdapter adapter) |
CComboButtonField(IButtonAdapter adapter) |
CComboButtonField(IWidgetFactory widgetFactory,
boolean isEditable,
IButtonAdapter adapter) |
CComboButtonField(IWidgetFactory widgetFactory,
int style,
IButtonAdapter adapter) |
| Modifier and Type | Method and Description | |||
|---|---|---|---|---|
void |
dispose()
Disposes of the operating system resources associated with the field.
|
|||
protected org.eclipse.swt.widgets.Control[] |
doFillIntoGrid(org.eclipse.swt.widgets.Composite parent,
int nColumns)
/!\
| To be re-implemented by platform field implementors.
| /!\
|
|
void |
enableButton(boolean enable)
Sets the enable state of the button.
|
|||
org.eclipse.swt.widgets.Control |
getButtonControl() |
|||
protected org.eclipse.swt.widgets.Button |
getChangeControl(org.eclipse.swt.widgets.Composite parent,
int hspan)
Creates button control.
|
|||
protected int |
getNumberOfControls()
Returns the number of columns of the dialog field.
|
|||
void |
setButtonLabel(java.lang.String label)
Sets the label of the button.
|
|||
protected void |
updateEnableState()
Called when the enable state changed.
|
getCComboControl, getCComboControl, getItems, getSelectionIndex, getText, refresh, selectItem, selectItem, setFocus, setItems, setText, setTextWithoutUpdateaddFieldListener, assertCompositeNotNull, createEmptySpace, createEmptySpace, createLabelControl, createSpecificComposite, dialogFieldChanged, fillIntoGrid, getLabelControl, getLabelControl, getLabelControl, isEnabled, isOkToUse, removeFieldListener, setEnabled, setLabelText, setToolTipTextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCComboControl, getItems, getSelectionIndex, selectItem, setItems, setTextaddFieldListener, fillIntoGrid, getLabelControl, isEnabled, removeFieldListener, setEnabled, setLabelText, setToolTipTextpublic CComboButtonField(IButtonAdapter adapter)
adapter - public CComboButtonField(boolean isEditable,
IButtonAdapter adapter)
isEditable - adapter - public CComboButtonField(IWidgetFactory widgetFactory, boolean isEditable, IButtonAdapter adapter)
widgetFactory - isEditable - adapter - public CComboButtonField(IWidgetFactory widgetFactory, int style, IButtonAdapter adapter)
widgetFactory - style - adapter - public void setButtonLabel(java.lang.String label)
ICComboButtonFieldsetButtonLabel in interface ICComboButtonFieldprotected org.eclipse.swt.widgets.Control[] doFillIntoGrid(org.eclipse.swt.widgets.Composite parent,
int nColumns)
BasicField
| /!\ | To be re-implemented by platform field implementors. | /!\ |
doFillIntoGrid in class CComboFieldparent - The parent composite of this dialog field.nColumns - The number of columns of this dialog field.protected int getNumberOfControls()
BasicFieldgetNumberOfControls in class CComboFieldprotected final org.eclipse.swt.widgets.Button getChangeControl(org.eclipse.swt.widgets.Composite parent,
int hspan)
parent - The parent composite (supposed to be not null).hspan - The number of columns the button widget must span.public org.eclipse.swt.widgets.Control getButtonControl()
getButtonControl in interface ICComboButtonFieldpublic void enableButton(boolean enable)
protected void updateEnableState()
BasicFieldupdateEnableState in class CComboFieldpublic void dispose()
IFielddispose in interface IFielddispose in class CComboField