Class AbstractConfigRow

Direct Known Subclasses:
OOoRow, SdkRow

public abstract class AbstractConfigRow extends ChoiceRow
Row for the selection of a configuration element.
  • Constructor Details

    • AbstractConfigRow

      public AbstractConfigRow(org.eclipse.swt.widgets.Composite parent, String property, String browseText, Object selection)
      Constructor.
      Parameters:
      parent - the composite where to create the row
      property - the property for the row events
      browseText - the text for the browse button/link
      selection - the configuration element to select first
  • Method Details

    • dispose

      public void dispose()
      Dispose the row.
    • addListener

      protected abstract void addListener(IConfigListener configListener)
      Add the configuration listener to the correct configuration container.
      Parameters:
      configListener - the listener to add
    • removeListener

      protected abstract void removeListener(IConfigListener configListener)
      Remove the configuration listener from the correct configuration container.
      Parameters:
      configListener - the listener to remove
    • getRowLabel

      protected abstract String getRowLabel()
      Returns:
      the label to show for the row
    • getConfigValues

      protected abstract String[] getConfigValues()
      Returns:
      the values to show in the list box.
    • getElementName

      protected abstract String getElementName(Object element)
      Computes the name to use to select the given object.
      Parameters:
      element - the configuration object for which to get the name
      Returns:
      the name to use for the selection
    • getTableDialogTitle

      protected abstract 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.