public class StringDialogField extends DialogField
fLabelText| Constructor and Description |
|---|
StringDialogField() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
String |
getText()
Gets the text.
|
org.eclipse.swt.widgets.Text |
getTextControl(org.eclipse.swt.widgets.Composite parent)
Creates or returns the created text control.
|
protected static org.eclipse.swt.layout.GridData |
gridDataForText(int span) |
void |
refresh()
Brings the UI in sync with the model.
|
boolean |
setFocus()
Tries to set the focus to the dialog field.
|
void |
setText(String text)
Sets the text.
|
void |
setTextWithoutUpdate(String text)
Sets the text without triggering a dialog-changed event.
|
protected void |
updateEnableState()
Called when the enable state changed.
|
assertCompositeNotNull, assertEnoughColumns, createEmptySpace, createEmptySpace, dialogFieldChanged, getLabelControl, gridDataForLabel, isEnabled, isOkToUse, postSetFocusOnDialogField, setDialogFieldListener, setEnabled, setLabelTextpublic 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 DialogFieldprotected static org.eclipse.swt.layout.GridData gridDataForText(int span)
public boolean setFocus()
DialogFieldtrue if
the dialog field can take focus. To be reimplemented by dialog field
implementors.setFocus in class DialogFieldpublic org.eclipse.swt.widgets.Text getTextControl(org.eclipse.swt.widgets.Composite parent)
parent - The parent composite or null when the widget has
already been created.protected void updateEnableState()
DialogFieldupdateEnableState in class DialogFieldpublic String getText()
nullpublic void setText(String text)
public void setTextWithoutUpdate(String text)
public void refresh()
DialogFieldrefresh in class DialogFieldCopyright © 2016. All Rights Reserved.