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
-
-
Field Summary
-
Fields inherited from class org.libreoffice.ide.eclipse.core.gui.rows.LabeledRow
LAYOUT_COLUMNS, mBrowse, mField, mLabel, mListener, mProperty
-
-
Constructor Summary
Constructors Constructor Description AbstractConfigRow(org.eclipse.swt.widgets.Composite pParent, java.lang.String pProperty, java.lang.String pBrowseText, java.lang.Object pSelection)Constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract voidaddListener(IConfigListener pConfigListener)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 java.lang.String[]getConfigValues()protected abstract java.lang.StringgetElementName(java.lang.Object pElement)Computes the name to use to select the given object.protected abstract java.lang.StringgetRowLabel()protected abstract java.lang.StringgetTableDialogTitle()protected abstract voidremoveListener(IConfigListener pConfigListener)Remove the configuration listener from the correct configuration container.protected abstract voidsavePreferences()Save 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, setBrowseSelectionListener
-
Methods inherited from class org.libreoffice.ide.eclipse.core.gui.rows.LabeledRow
addBrowseSelectionListener, createContent, fillRow, fireFieldChangedEvent, getLabel, getProperty, removeFieldChangedlistener, setEnabled, setFieldChangedListener, setLabel, setTooltip, setVisible
-
-
-
-
Constructor Detail
-
AbstractConfigRow
public AbstractConfigRow(org.eclipse.swt.widgets.Composite pParent, java.lang.String pProperty, java.lang.String pBrowseText, java.lang.Object pSelection)Constructor.- Parameters:
pParent- the composite where to create the rowpProperty- the property for the row eventspBrowseText- the text for the browse button/linkpSelection- the configuration element to select first
-
-
Method Detail
-
dispose
public void dispose()
Dispose the row.
-
addListener
protected abstract void addListener(IConfigListener pConfigListener)
Add the configuration listener to the correct configuration container.- Parameters:
pConfigListener- the listener to add
-
removeListener
protected abstract void removeListener(IConfigListener pConfigListener)
Remove the configuration listener from the correct configuration container.- Parameters:
pConfigListener- the listener to remove
-
getRowLabel
protected abstract java.lang.String getRowLabel()
- Returns:
- the label to show for the row
-
getConfigValues
protected abstract java.lang.String[] getConfigValues()
- Returns:
- the values to show in the list box.
-
getElementName
protected abstract java.lang.String getElementName(java.lang.Object pElement)
Computes the name to use to select the given object.- Parameters:
pElement- the configuration object for which to get the name- Returns:
- the name to use for the selection
-
getTableDialogTitle
protected abstract java.lang.String getTableDialogTitle()
- Returns:
- the title of the configuration dialog.
-
createTable
protected abstract AbstractTable createTable(org.eclipse.swt.widgets.Composite pParent)
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.
-
-