|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.jface.preference.FieldEditor net.sf.commonclipse.preferences.LabelFieldEditor
class LabelFieldEditor
A field editor for displaying labels not associated with other widgets.
Field Summary |
---|
Fields inherited from class org.eclipse.jface.preference.FieldEditor |
---|
HORIZONTAL_GAP, IS_VALID, VALUE |
Constructor Summary | |
---|---|
LabelFieldEditor(java.lang.String labelText,
org.eclipse.swt.widgets.Composite parent)
All labels can use the same preference name since they don't store any preference. |
Method Summary | |
---|---|
protected void |
adjustForNumColumns(int numColumns)
Adjusts the field editor to be displayed correctly for the given number of columns. |
protected void |
doFillIntoGrid(org.eclipse.swt.widgets.Composite parent,
int numColumns)
Fills the field editor's controls into the given parent. |
protected void |
doLoad()
Labels do not persist any preferences, so this method is empty. |
protected void |
doLoadDefault()
Labels do not persist any preferences, so this method is empty. |
protected void |
doStore()
Labels do not persist any preferences, so this method is empty. |
int |
getNumberOfControls()
Returns the number of controls in the field editor. |
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, setEnabled, setFocus, setLabelText, setPage, setPreferenceName, setPreferencePage, setPreferenceStore, setPresentsDefaultValue, setPropertyChangeListener, showErrorMessage, showMessage, store |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LabelFieldEditor(java.lang.String labelText, org.eclipse.swt.widgets.Composite parent)
labelText
- text for the labelparent
- CompositeMethod Detail |
---|
protected void adjustForNumColumns(int numColumns)
adjustForNumColumns
in class org.eclipse.jface.preference.FieldEditor
numColumns
- number of columnsprotected void doFillIntoGrid(org.eclipse.swt.widgets.Composite parent, int numColumns)
doFillIntoGrid
in class org.eclipse.jface.preference.FieldEditor
parent
- CompositenumColumns
- cumber of columnspublic int getNumberOfControls()
getNumberOfControls
in class org.eclipse.jface.preference.FieldEditor
protected void doLoad()
doLoad
in class org.eclipse.jface.preference.FieldEditor
protected void doLoadDefault()
doLoadDefault
in class org.eclipse.jface.preference.FieldEditor
protected void doStore()
doStore
in class org.eclipse.jface.preference.FieldEditor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |