public class OOoRow extends AbstractConfigRow
Row displaying the selection of an OOo instance.
  • Constructor Details

    • OOoRow

      public OOoRow(org.eclipse.swt.widgets.Composite parent, String property, IOOo toSelect)
      Constructor.
      Parameters:
      parent - the composite where to create the row
      property - the property for the row events
      toSelect - the configuration element to select first
  • Method Details

    • addListener

      protected void addListener(IConfigListener configListener)
      Add the configuration listener to the correct configuration container.
      Specified by:
      addListener in class AbstractConfigRow
      Parameters:
      configListener - the listener to add
    • removeListener

      protected void removeListener(IConfigListener configListener)
      Remove the configuration listener from the correct configuration container.
      Specified by:
      removeListener in class AbstractConfigRow
      Parameters:
      configListener - the listener to remove
    • getRowLabel

      protected String getRowLabel()
      Specified by:
      getRowLabel in class AbstractConfigRow
      Returns:
      the label to show for the row
    • getConfigValues

      protected String[] getConfigValues()
      Specified by:
      getConfigValues in class AbstractConfigRow
      Returns:
      the values to show in the list box.
    • getElementName

      protected String getElementName(Object toSelect)
      Computes the name to use to select the given object.
      Specified by:
      getElementName in class AbstractConfigRow
      Parameters:
      toSelect - the configuration object for which to get the name
      Returns:
      the name to use for the selection
    • getTableDialogTitle

      protected String getTableDialogTitle()
      Specified by:
      getTableDialogTitle in class AbstractConfigRow
      Returns:
      the title of the configuration dialog.
    • createTable

      protected AbstractTable createTable(org.eclipse.swt.widgets.Composite parent)
      Create the table to show the configuration elements in the dialog.
      Specified by:
      createTable in class AbstractConfigRow
      Parameters:
      parent - the parent for the table.
      Returns:
      the initialized table
    • savePreferences

      protected void savePreferences()
      Save the configuration element preferences.
      Specified by:
      savePreferences in class AbstractConfigRow