org.openoffice.ide.eclipse.core.gui.rows
Class OOoRow

java.lang.Object
  extended by org.openoffice.ide.eclipse.core.gui.rows.LabeledRow
      extended by org.openoffice.ide.eclipse.core.gui.rows.ChoiceRow
          extended by org.openoffice.ide.eclipse.core.gui.rows.AbstractConfigRow
              extended by org.openoffice.ide.eclipse.core.gui.rows.OOoRow

public class OOoRow
extends AbstractConfigRow

Row displaying the selection of an OOo instance.

Author:
cedricbosdo

Field Summary
 
Fields inherited from class org.openoffice.ide.eclipse.core.gui.rows.LabeledRow
LAYOUT_COLUMNS, mBrowse, mField, mLabel, mListener, mProperty
 
Constructor Summary
OOoRow(org.eclipse.swt.widgets.Composite pParent, java.lang.String pProperty, IOOo pToSelect)
          Constructor.
 
Method Summary
protected  void addListener(IConfigListener pConfigListener)
          Add the configuration listener to the correct configuration container.
protected  AbstractTable createTable(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.String getRowLabel()
          
protected  java.lang.String getSelectionName(java.lang.Object pToSelect)
          Computes the name to use to select the given object.
protected  java.lang.String getTableDialogTitle()
          
protected  void removeListener(IConfigListener pConfigListener)
          Remove the configuration listener from the correct configuration container.
protected  void savePreferences()
          Save the configuration element preferences.
 
Methods inherited from class org.openoffice.ide.eclipse.core.gui.rows.AbstractConfigRow
dispose
 
Methods inherited from class org.openoffice.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.openoffice.ide.eclipse.core.gui.rows.LabeledRow
createContent, fillRow, fireFieldChangedEvent, getLabel, getProperty, removeFieldChangedlistener, setEnabled, setFieldChangedListener, setLabel, setTooltip, setVisible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 row
pProperty - the property for the row events
pToSelect - 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:
addListener in class AbstractConfigRow
Parameters:
pConfigListener - the listener to add

removeListener

protected void removeListener(IConfigListener pConfigListener)
Remove the configuration listener from the correct configuration container.

Specified by:
removeListener in class AbstractConfigRow
Parameters:
pConfigListener - the listener to remove

getRowLabel

protected java.lang.String getRowLabel()

Specified by:
getRowLabel in class AbstractConfigRow
Returns:
the label to show for the row

getConfigValues

protected java.lang.String[] getConfigValues()

Specified by:
getConfigValues in class AbstractConfigRow
Returns:
the values to show in the list box.

getSelectionName

protected java.lang.String getSelectionName(java.lang.Object pToSelect)
Computes the name to use to select the given object.

Specified by:
getSelectionName in class AbstractConfigRow
Parameters:
pToSelect - the configuration object to select
Returns:
the name to use for the selection

getTableDialogTitle

protected java.lang.String getTableDialogTitle()

Specified by:
getTableDialogTitle in class AbstractConfigRow
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:
createTable in class AbstractConfigRow
Parameters:
pParent - the parent for the table.
Returns:
the initialized table

savePreferences

protected void savePreferences()
Save the configuration element preferences.

Specified by:
savePreferences in class AbstractConfigRow