|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.cdt.internal.ui.wizards.dialogfields.DialogField
org.eclipse.cdt.internal.ui.wizards.dialogfields.StringDialogField
public class StringDialogField
Constructor Summary | |
---|---|
StringDialogField()
|
Method Summary | |
---|---|
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. |
java.lang.String |
getText()
Gets the text. |
org.eclipse.swt.widgets.Text |
getTextControl(org.eclipse.swt.widgets.Composite parent)
Creates or returns the created text control. |
boolean |
setFocus()
Tries to set the focus to the dialog field. |
void |
setText(java.lang.String text)
Sets the text. |
void |
setTextWithoutUpdate(java.lang.String text)
Sets the text without triggering a dialog-changed event. |
Methods inherited from class org.eclipse.cdt.internal.ui.wizards.dialogfields.DialogField |
---|
createEmptySpace, createEmptySpace, dialogFieldChanged, getLabelControl, isEnabled, postSetFocusOnDialogField, setDialogFieldListener, setEnabled, setLabelText |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StringDialogField()
Method Detail |
---|
public org.eclipse.swt.widgets.Control[] doFillIntoGrid(org.eclipse.swt.widgets.Composite parent, int nColumns)
DialogField
MGridLayout
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 DialogField
public int getNumberOfControls()
DialogField
getNumberOfControls
in class DialogField
public boolean setFocus()
DialogField
true
if the dialog field can take focus.
To be reimplemented by dialog field implementors.
setFocus
in class DialogField
public 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.public java.lang.String getText()
null
public void setText(java.lang.String text)
public void setTextWithoutUpdate(java.lang.String text)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |