public class RangeField extends BasicField
fLabelControl, fLabelText, fUseFormLayout, fWidgetFactory, MAX_WITDH
Constructor and Description |
---|
RangeField(int itemCount) |
RangeField(int itemCount,
int style) |
RangeField(IWidgetFactory widgetFactory,
int itemCount) |
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.
| /!\
|
|
protected int |
getNumberOfControls()
Returns the number of columns of the dialog field.
|
|||
org.eclipse.swt.widgets.Text[] |
getTextControls() |
|||
java.lang.String[] |
getTexts() |
|||
void |
refresh()
Brings the UI in sync with the model.
|
|||
boolean |
setFocus()
Tries to set the focus to this field.
|
|||
void |
setLabels(java.lang.String[] labels) |
|||
void |
setTextEnabled(boolean b)
/!\
| This method only concerns the encapsulated text control.
| /!\
|
|
void |
setTexts(java.lang.String[] texts)
Sets the text.
|
|||
protected void |
updateEnableState()
Called when the enable state changed.
|
addFieldListener, assertCompositeNotNull, createEmptySpace, createEmptySpace, createLabelControl, createSpecificComposite, dialogFieldChanged, fillIntoGrid, getLabelControl, getLabelControl, getLabelControl, isEnabled, isOkToUse, removeFieldListener, setEnabled, setLabelText, setToolTipText
public RangeField(int itemCount)
public RangeField(IWidgetFactory widgetFactory, int itemCount)
public RangeField(int itemCount, int style)
style
- 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
protected void updateEnableState()
BasicField
updateEnableState
in class BasicField
public java.lang.String[] getTexts()
public org.eclipse.swt.widgets.Text[] getTextControls()
public void refresh()
BasicField
refresh
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
public void setLabels(java.lang.String[] labels)
public void setTexts(java.lang.String[] texts)
public void setTextEnabled(boolean b)
/!\ | This method only concerns the encapsulated text control. | /!\ |
Enables the text control if the parameter is true. Otherwise, disables it.
b
- The new enabled state.public void dispose()
IField
dispose
in interface IField
dispose
in class BasicField