Schnittstelle IEditor<T>

Typparameter:
T -
Alle bekannten Implementierungsklassen:
EditorSelection, EditorString

public interface IEditor<T>
Interface for an editor for a given data type.
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    boolean
    Does the editor accept the value.
    void
    createControl(org.eclipse.swt.widgets.Composite parent)
    Creates an according control.
    Returns the category.
    Returns the label.
    Returns the current value.
    boolean
    isDifferent(T value1, T value2)
    Checks whether the two values are different
    void
    Sets the value.
  • Methodendetails

    • accepts

      boolean accepts(T t)
      Does the editor accept the value.
      Parameter:
      t -
      Gibt zurück:
    • createControl

      void createControl(org.eclipse.swt.widgets.Composite parent)
      Creates an according control.
      Parameter:
      parent -
    • getCategory

      String getCategory()
      Returns the category.
      Gibt zurück:
    • getLabel

      String getLabel()
      Returns the label.
      Gibt zurück:
    • getValue

      T getValue()
      Returns the current value.
      Gibt zurück:
    • setValue

      void setValue(T t)
      Sets the value.
      Parameter:
      t -
    • isDifferent

      boolean isDifferent(T value1, T value2)
      Checks whether the two values are different
      Parameter:
      value1 -
      value2 -
      Gibt zurück: