Class AbstractConfigRow
java.lang.Object
org.libreoffice.ide.eclipse.core.gui.rows.LabeledRow
org.libreoffice.ide.eclipse.core.gui.rows.ChoiceRow
org.libreoffice.ide.eclipse.core.gui.rows.AbstractConfigRow
Row for the selection of a configuration element.
-
Field Summary
Fields inherited from class org.libreoffice.ide.eclipse.core.gui.rows.LabeledRow
LAYOUT_COLUMNS, mBrowse, mField, mLabel, mListener, mProperty -
Constructor Summary
ConstructorsConstructorDescriptionAbstractConfigRow(org.eclipse.swt.widgets.Composite parent, String property, String browseText, Object selection) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidaddListener(IConfigListener configListener) Add the configuration listener to the correct configuration container.protected abstract AbstractTablecreateTable(org.eclipse.swt.widgets.Composite pParent) Create the table to show the configuration elements in the dialog.voiddispose()Dispose the row.protected abstract String[]protected abstract StringgetElementName(Object element) Computes the name to use to select the given object.protected abstract Stringprotected abstract Stringprotected abstract voidremoveListener(IConfigListener configListener) Remove the configuration listener from the correct configuration container.protected abstract voidSave the configuration element preferences.Methods inherited from class org.libreoffice.ide.eclipse.core.gui.rows.ChoiceRow
add, add, add, add, addAll, getItem, getItemCount, getValue, getValue, remove, remove, remove, removeAll, select, select, setBrowseSelectionListenerMethods inherited from class org.libreoffice.ide.eclipse.core.gui.rows.LabeledRow
addBrowseSelectionListener, createContent, fillRow, fireFieldChangedEvent, getLabel, getProperty, removeFieldChangedlistener, setEnabled, setFieldChangedListener, setLabel, setTooltip, setVisible
-
Constructor Details
-
AbstractConfigRow
public AbstractConfigRow(org.eclipse.swt.widgets.Composite parent, String property, String browseText, Object selection) Constructor.- Parameters:
parent- the composite where to create the rowproperty- the property for the row eventsbrowseText- the text for the browse button/linkselection- the configuration element to select first
-
-
Method Details
-
dispose
public void dispose()Dispose the row. -
addListener
Add the configuration listener to the correct configuration container.- Parameters:
configListener- the listener to add
-
removeListener
Remove the configuration listener from the correct configuration container.- Parameters:
configListener- the listener to remove
-
getRowLabel
- Returns:
- the label to show for the row
-
getConfigValues
- Returns:
- the values to show in the list box.
-
getElementName
Computes the name to use to select the given object.- Parameters:
element- the configuration object for which to get the name- Returns:
- the name to use for the selection
-
getTableDialogTitle
- Returns:
- the title of the configuration dialog.
-
createTable
Create the table to show the configuration elements in the dialog.- Parameters:
pParent- the parent for the table.- Returns:
- the initialized table
-
savePreferences
protected abstract void savePreferences()Save the configuration element preferences.
-