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
-
public class OOoRow extends AbstractConfigRow
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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddListener(IConfigListener pConfigListener)Add the configuration listener to the correct configuration container.protected AbstractTablecreateTable(org.eclipse.swt.widgets.Composite pParent)Create the table to show the configuration elements in the dialog.protected java.lang.String[]getConfigValues()protected java.lang.StringgetElementName(java.lang.Object pToSelect)Computes the name to use to select the given object.protected java.lang.StringgetRowLabel()protected java.lang.StringgetTableDialogTitle()protected voidremoveListener(IConfigListener pConfigListener)Remove the configuration listener from the correct configuration container.protected voidsavePreferences()Save the configuration element preferences.-
Methods inherited from class org.libreoffice.ide.eclipse.core.gui.rows.AbstractConfigRow
dispose
-
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
-
OOoRow
public OOoRow(org.eclipse.swt.widgets.Composite pParent, java.lang.String pProperty, IOOo pToSelect)Constructor.- Parameters:
pParent- the composite where to create the rowpProperty- the property for the row eventspToSelect- the configuration element to select first
-
-
Method Detail
-
addListener
protected void addListener(IConfigListener pConfigListener)
Add the configuration listener to the correct configuration container.- Specified by:
addListenerin classAbstractConfigRow- Parameters:
pConfigListener- the listener to add
-
removeListener
protected void removeListener(IConfigListener pConfigListener)
Remove the configuration listener from the correct configuration container.- Specified by:
removeListenerin classAbstractConfigRow- Parameters:
pConfigListener- the listener to remove
-
getRowLabel
protected java.lang.String getRowLabel()
- Specified by:
getRowLabelin classAbstractConfigRow- Returns:
- the label to show for the row
-
getConfigValues
protected java.lang.String[] getConfigValues()
- Specified by:
getConfigValuesin classAbstractConfigRow- Returns:
- the values to show in the list box.
-
getElementName
protected java.lang.String getElementName(java.lang.Object pToSelect)
Computes the name to use to select the given object.- Specified by:
getElementNamein classAbstractConfigRow- Parameters:
pToSelect- the configuration object for which to get the name- Returns:
- the name to use for the selection
-
getTableDialogTitle
protected java.lang.String getTableDialogTitle()
- Specified by:
getTableDialogTitlein classAbstractConfigRow- Returns:
- the title of the configuration dialog.
-
createTable
protected AbstractTable createTable(org.eclipse.swt.widgets.Composite pParent)
Create the table to show the configuration elements in the dialog.- Specified by:
createTablein classAbstractConfigRow- Parameters:
pParent- the parent for the table.- Returns:
- the initialized table
-
savePreferences
protected void savePreferences()
Save the configuration element preferences.- Specified by:
savePreferencesin classAbstractConfigRow
-
-