Class OOoRow
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
org.libreoffice.ide.eclipse.core.gui.rows.OOoRow
Row displaying the selection of an OOo instance.
-
Field Summary
Fields inherited from class org.libreoffice.ide.eclipse.core.gui.rows.LabeledRow
LAYOUT_COLUMNS, mBrowse, mField, mLabel, mListener, mProperty -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddListener(IConfigListener configListener) Add the configuration listener to the correct configuration container.protected AbstractTablecreateTable(org.eclipse.swt.widgets.Composite parent) Create the table to show the configuration elements in the dialog.protected String[]protected StringgetElementName(Object toSelect) Computes the name to use to select the given object.protected Stringprotected Stringprotected voidremoveListener(IConfigListener configListener) Remove the configuration listener from the correct configuration container.protected voidSave the configuration element preferences.Methods inherited from class org.libreoffice.ide.eclipse.core.gui.rows.AbstractConfigRow
disposeMethods 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
-
OOoRow
Constructor.- Parameters:
parent- the composite where to create the rowproperty- the property for the row eventstoSelect- the configuration element to select first
-
-
Method Details
-
addListener
Add the configuration listener to the correct configuration container.- Specified by:
addListenerin classAbstractConfigRow- Parameters:
configListener- the listener to add
-
removeListener
Remove the configuration listener from the correct configuration container.- Specified by:
removeListenerin classAbstractConfigRow- Parameters:
configListener- the listener to remove
-
getRowLabel
- Specified by:
getRowLabelin classAbstractConfigRow- Returns:
- the label to show for the row
-
getConfigValues
- Specified by:
getConfigValuesin classAbstractConfigRow- Returns:
- the values to show in the list box.
-
getElementName
Computes the name to use to select the given object.- Specified by:
getElementNamein classAbstractConfigRow- Parameters:
toSelect- the configuration object for which to get the name- Returns:
- the name to use for the selection
-
getTableDialogTitle
- Specified by:
getTableDialogTitlein classAbstractConfigRow- Returns:
- the title of the configuration dialog.
-
createTable
Create the table to show the configuration elements in the dialog.- Specified by:
createTablein classAbstractConfigRow- Parameters:
parent- the parent for the table.- Returns:
- the initialized table
-
savePreferences
protected void savePreferences()Save the configuration element preferences.- Specified by:
savePreferencesin classAbstractConfigRow
-