public class HyperlinkCComboField extends BasicHyperlinkField implements ICComboField
Modifier and Type | Field and Description |
---|---|
static java.lang.String[] |
EMPTY_LIST |
fLabelControl, fLabelText, fUseFormLayout, fWidgetFactory, MAX_WITDH
Constructor and Description |
---|
HyperlinkCComboField(int style,
IWidgetFactory widgetFactory,
org.eclipse.ui.forms.events.HyperlinkAdapter hyperlinkAdapter) |
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.
| /!\
|
|
org.eclipse.swt.widgets.Control |
getCComboControl() |
|||
protected org.eclipse.swt.custom.CCombo |
getCComboControl(org.eclipse.swt.widgets.Composite parent,
int hspan)
Creates combo control.
|
|||
java.lang.String[] |
getItems()
Gets the combo items.
|
|||
protected int |
getNumberOfControls()
Returns the number of columns of the dialog field.
|
|||
int |
getSelectionIndex() |
|||
java.lang.String |
getText()
Gets the text.
|
|||
void |
refresh()
Brings the UI in sync with the model.
|
|||
boolean |
selectItem(int index)
Selects an item.
|
|||
boolean |
selectItem(java.lang.String name)
Selects an item.
|
|||
boolean |
setFocus()
Tries to set the focus to this field.
|
|||
void |
setItems(java.lang.String[] items)
Sets the combo items.
|
|||
void |
setText(java.lang.String text)
Sets the text.
|
|||
void |
setTextWithoutUpdate(java.lang.String text)
Sets the text without triggering a dialog-changed event.
|
|||
protected void |
updateEnableState()
Called when the enable state changed.
|
createLabelControl, setLabelText
addFieldListener, assertCompositeNotNull, createEmptySpace, createEmptySpace, createSpecificComposite, dialogFieldChanged, fillIntoGrid, getLabelControl, getLabelControl, getLabelControl, isEnabled, isOkToUse, removeFieldListener, setEnabled, setToolTipText
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addFieldListener, fillIntoGrid, getLabelControl, isEnabled, removeFieldListener, setEnabled, setLabelText, setToolTipText
public HyperlinkCComboField(int style, IWidgetFactory widgetFactory, org.eclipse.ui.forms.events.HyperlinkAdapter hyperlinkAdapter)
protected 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 BasicField
parent
- The parent composite of this dialog field.nColumns
- The number of columns of this dialog field.protected int getNumberOfControls()
BasicField
getNumberOfControls
in class BasicField
public boolean setFocus()
BasicField
true
if the dialog field can take focus. To be
re-implemented by dialog field implementors.setFocus
in class BasicField
protected final org.eclipse.swt.custom.CCombo getCComboControl(org.eclipse.swt.widgets.Composite parent, int hspan)
parent
- The parent composite (supposed to be not null).hspan
- The number of columns the combo widget must span.protected void updateEnableState()
BasicField
updateEnableState
in class BasicField
public void dispose()
IField
dispose
in interface IField
dispose
in class BasicField
public java.lang.String[] getItems()
ICComboField
getItems
in interface ICComboField
public void setItems(java.lang.String[] items)
ICComboField
setItems
in interface ICComboField
public java.lang.String getText()
public void setText(java.lang.String text)
setText
in interface ICComboField
public boolean selectItem(int index)
selectItem
in interface ICComboField
public boolean selectItem(java.lang.String name)
public int getSelectionIndex()
getSelectionIndex
in interface ICComboField
public void setTextWithoutUpdate(java.lang.String text)
public void refresh()
BasicField
refresh
in class BasicField
public org.eclipse.swt.widgets.Control getCComboControl()
getCComboControl
in interface ICComboField