|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jface.preference.FieldEditor
com.aptana.ide.core.ui.dialogs.FieldSpacer
public class FieldSpacer
A field editor for a boolean type preference.
| Field Summary | |
|---|---|
static int |
DEFAULT
Style constant (value 0) indicating the default layout where the field editor's check box appears
to the left of the label. |
static int |
SEPARATE_LABEL
Style constant (value 1) indicating a layout where the field editor's label appears on the left
with a check box on the right. |
| Fields inherited from class org.eclipse.jface.preference.FieldEditor |
|---|
HORIZONTAL_GAP, IS_VALID, VALUE |
| Constructor Summary | |
|---|---|
FieldSpacer()
Creates a new boolean field editor |
|
FieldSpacer(java.lang.String label,
org.eclipse.swt.widgets.Composite parent)
Creates a boolean field editor in the default style. |
|
FieldSpacer(java.lang.String labelText,
int style,
org.eclipse.swt.widgets.Composite parent)
Creates a boolean field editor in the given style. |
|
| Method Summary | |
|---|---|
protected void |
adjustForNumColumns(int numColumns)
|
protected void |
doFillIntoGrid(org.eclipse.swt.widgets.Composite parent,
int numColumns)
|
protected void |
doLoad()
|
protected void |
doLoadDefault()
|
protected void |
doStore()
|
protected org.eclipse.swt.widgets.Button |
getChangeControl(org.eclipse.swt.widgets.Composite parent)
Returns the change button for this field editor. |
int |
getNumberOfControls()
|
void |
setEnabled(boolean enabled,
org.eclipse.swt.widgets.Composite parent)
|
void |
setLabelText(java.lang.String text)
|
void |
store()
|
protected void |
valueChanged(boolean oldValue,
boolean newValue)
Informs this field editor's listener, if it has one, about a change to the value ( VALUE property)
provided that the old and new values are different. |
| Methods inherited from class org.eclipse.jface.preference.FieldEditor |
|---|
applyFont, checkParent, clearErrorMessage, clearMessage, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, createControl, dispose, fillIntoGrid, fireStateChanged, fireValueChanged, getFieldEditorFontName, getLabelControl, getLabelControl, getLabelText, getPage, getPreferenceName, getPreferencePage, getPreferenceStore, init, isValid, load, loadDefault, presentsDefaultValue, refreshValidState, setButtonLayoutData, setFocus, setPage, setPreferenceName, setPreferencePage, setPreferenceStore, setPresentsDefaultValue, setPropertyChangeListener, showErrorMessage, showMessage |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DEFAULT
0) indicating the default layout where the field editor's check box appears
to the left of the label.
public static final int SEPARATE_LABEL
1) indicating a layout where the field editor's label appears on the left
with a check box on the right.
| Constructor Detail |
|---|
public FieldSpacer()
public FieldSpacer(java.lang.String labelText,
int style,
org.eclipse.swt.widgets.Composite parent)
labelText - the label text of the field editorstyle - the style, either DEFAULT or SEPARATE_LABELparent - the parent of the field editor's controlDEFAULT,
SEPARATE_LABEL
public FieldSpacer(java.lang.String label,
org.eclipse.swt.widgets.Composite parent)
label - the label text of the field editorparent - the parent of the field editor's control| Method Detail |
|---|
protected void adjustForNumColumns(int numColumns)
adjustForNumColumns in class org.eclipse.jface.preference.FieldEditorFieldEditor.adjustForNumColumns(int)
protected void doFillIntoGrid(org.eclipse.swt.widgets.Composite parent,
int numColumns)
doFillIntoGrid in class org.eclipse.jface.preference.FieldEditorFieldEditor.doFillIntoGrid(org.eclipse.swt.widgets.Composite, int)protected void doLoad()
doLoad in class org.eclipse.jface.preference.FieldEditorLoads the value from the preference store and sets it to
the check boxprotected org.eclipse.swt.widgets.Button getChangeControl(org.eclipse.swt.widgets.Composite parent)
parent - The Composite to create the receiver in.
public int getNumberOfControls()
getNumberOfControls in class org.eclipse.jface.preference.FieldEditorFieldEditor.getNumberOfControls()public void setLabelText(java.lang.String text)
setLabelText in class org.eclipse.jface.preference.FieldEditorFieldEditor.setLabelText(java.lang.String)
protected void valueChanged(boolean oldValue,
boolean newValue)
VALUE property)
provided that the old and new values are different.
oldValue - the old valuenewValue - the new value
public void setEnabled(boolean enabled,
org.eclipse.swt.widgets.Composite parent)
setEnabled in class org.eclipse.jface.preference.FieldEditorFieldEditor.setEnabled(boolean, org.eclipse.swt.widgets.Composite)protected void doLoadDefault()
doLoadDefault in class org.eclipse.jface.preference.FieldEditorFieldEditor.doLoadDefault()protected void doStore()
doStore in class org.eclipse.jface.preference.FieldEditorFieldEditor.doStore()public void store()
store in class org.eclipse.jface.preference.FieldEditorFieldEditor.store()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||