|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.jface.preference.FieldEditor org.fosstrak.llrp.commander.preferences.pref.GroupedStringFieldEditor
public class GroupedStringFieldEditor
An extension of the FieldEditor
supporting the grouping of several
preferences into a nice group box.
Field Summary | |
---|---|
static int |
INDEX_LABEL
index of the text label in the preferencesLabelsAndNames array. |
static int |
INDEX_PREF_NAME
index of the preference name in the preferencesLabelsAndNames array. |
Fields inherited from class org.eclipse.jface.preference.FieldEditor |
---|
HORIZONTAL_GAP, IS_VALID, VALUE |
Constructor Summary | |
---|---|
GroupedStringFieldEditor(java.lang.String labelText,
java.lang.String[][] preferencesLabelsAndNames,
org.eclipse.swt.widgets.Composite parent)
A FieldEditor supporting the grouping of several preferences
into a nice group box. |
Method Summary | |
---|---|
protected void |
adjustForNumColumns(int numColumns)
|
protected void |
createControl(org.eclipse.swt.widgets.Composite parent)
|
protected void |
doFillIntoGrid(org.eclipse.swt.widgets.Composite parent,
int numColumns)
|
protected void |
doLoad()
|
protected void |
doLoadDefault()
|
protected void |
doStore()
|
org.eclipse.swt.widgets.Composite |
getDBFieldControl(org.eclipse.swt.widgets.Composite parent)
create the group providing the entries. |
int |
getNumberOfControls()
|
Methods inherited from class org.eclipse.jface.preference.FieldEditor |
---|
applyFont, checkParent, clearErrorMessage, clearMessage, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, 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 |
Field Detail |
---|
public static final int INDEX_LABEL
public static final int INDEX_PREF_NAME
Constructor Detail |
---|
public GroupedStringFieldEditor(java.lang.String labelText, java.lang.String[][] preferencesLabelsAndNames, org.eclipse.swt.widgets.Composite parent)
FieldEditor
supporting the grouping of several preferences
into a nice group box.
labelText
- the text of the group box (example the title).preferencesLabelsAndNames
- a 2D array providing the labels for the
preferences in the first column, and the preferences names in the
second column.new String[][] {
{"Implementor", PreferenceConstants.P_EXT_DB_IMPLEMENTOR },
{"JDBC String", PreferenceConstants.P_EXT_DB_JDBC}
}
parent
- the parent widget of this editor.Method Detail |
---|
public org.eclipse.swt.widgets.Composite getDBFieldControl(org.eclipse.swt.widgets.Composite parent)
parent
- the parent of this widget.
protected void createControl(org.eclipse.swt.widgets.Composite parent)
createControl
in class org.eclipse.jface.preference.FieldEditor
protected void adjustForNumColumns(int numColumns)
adjustForNumColumns
in class org.eclipse.jface.preference.FieldEditor
protected void doFillIntoGrid(org.eclipse.swt.widgets.Composite parent, int numColumns)
doFillIntoGrid
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
public int getNumberOfControls()
getNumberOfControls
in class org.eclipse.jface.preference.FieldEditor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |