|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.aptana.ide.ui.editors.preferences.formatter.DialogField
com.aptana.ide.ui.editors.preferences.formatter.StringDialogField
public class StringDialogField
Dialog field containing a label and a text control.
| Field Summary |
|---|
| Fields inherited from class com.aptana.ide.ui.editors.preferences.formatter.DialogField |
|---|
fLabelText |
| 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. |
org.eclipse.jface.text.contentassist.IContentAssistProcessor |
getContentAssistProcessor()
|
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. |
protected static org.eclipse.swt.layout.GridData |
gridDataForText(int span)
|
void |
refresh()
Brings the UI in sync with the model. |
void |
setContentAssistProcessor(org.eclipse.jface.text.contentassist.IContentAssistProcessor processor)
|
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. |
protected void |
updateEnableState()
Called when the enable state changed. |
| Methods inherited from class com.aptana.ide.ui.editors.preferences.formatter.DialogField |
|---|
assertCompositeNotNull, assertEnoughColumns, createEmptySpace, createEmptySpace, dialogFieldChanged, getLabelControl, gridDataForLabel, isEnabled, isOkToUse, postSetFocusOnDialogField, setDialogFieldListener, setEnabled, setLabelText |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StringDialogField()
| Method Detail |
|---|
public void setContentAssistProcessor(org.eclipse.jface.text.contentassist.IContentAssistProcessor processor)
processor - public org.eclipse.jface.text.contentassist.IContentAssistProcessor getContentAssistProcessor()
public 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 DialogFieldDialogField.doFillIntoGrid(org.eclipse.swt.widgets.Composite, int)public int getNumberOfControls()
DialogField
getNumberOfControls in class DialogFieldDialogField.getNumberOfControls()protected static org.eclipse.swt.layout.GridData gridDataForText(int span)
span -
public boolean setFocus()
DialogFieldtrue if the dialog field can take focus.
To be reimplemented by dialog field implementors.
setFocus in class DialogFieldDialogField.setFocus()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.
protected void updateEnableState()
DialogField
updateEnableState in class DialogFieldDialogField.updateEnableState()public java.lang.String getText()
null
public void setText(java.lang.String text)
text - public void setTextWithoutUpdate(java.lang.String text)
text - public void refresh()
DialogField
refresh in class DialogFieldDialogField.refresh()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||