Klasse ComponentHierarchy

java.lang.Object
org.deidentifier.arx.gui.view.impl.common.ComponentHierarchy

public class ComponentHierarchy extends Object
This class implements an editor for generalization hierarchies.
  • Konstruktordetails

    • ComponentHierarchy

      public ComponentHierarchy(org.eclipse.swt.widgets.Composite parent)
      Constructor for non-editable views.
      Parameter:
      parent -
    • ComponentHierarchy

      public ComponentHierarchy(org.eclipse.swt.widgets.Composite parent, org.eclipse.swt.events.ModifyListener listener)
      Constructor for editable views.
      Parameter:
      parent -
      listener -
  • Methodendetails

    • actionClear

      public void actionClear()
      Clears the hierarchy.
    • actionDeleteColumn

      public void actionDeleteColumn()
      Deletes a column.
    • actionDeleteRow

      public void actionDeleteRow()
      Deletes a row.
    • actionEditItem

      public void actionEditItem(String newValue)
      Renames an item.
    • actionInsertColumn

      public void actionInsertColumn()
      Inserts a column.
    • actionInsertRow

      public void actionInsertRow()
      Inserts a row.
    • actionMoveRowDown

      public void actionMoveRowDown()
      Moves an element down.
    • actionMoveRowUp

      public void actionMoveRowUp()
      Moves an element up.
    • actionRenameItem

      public void actionRenameItem(String newValue)
      Renames an item.
    • actionReset

      public void actionReset()
      Clears the hierarchy.
    • addMouseListener

      public void addMouseListener(org.eclipse.swt.events.MouseListener listener)
      Adds a mouse listener
      Parameter:
      listener -
    • getControl

      public org.eclipse.swt.widgets.Control getControl()
      Returns the underlying control
      Gibt zurück:
    • getSelectedValue

      public String getSelectedValue()
      Returns the selected value. Returns null if no value is selected.
      Gibt zurück:
    • isCellSelected

      public boolean isCellSelected()
      Returns whether a cell is selected
      Gibt zurück:
    • isColumnSelected

      public boolean isColumnSelected()
      Returns whether a column is selected
      Gibt zurück:
    • isEmpty

      public boolean isEmpty()
      Returns whether this component is empty
      Gibt zurück:
    • isRowSelected

      public boolean isRowSelected()
      Returns whether a row is selected
      Gibt zurück:
    • setHierarchy

      public void setHierarchy(AttributeType.Hierarchy hierarchy)
      Sets the hierarchy displayed by this component. Call with null to reset.
      Parameter:
      hierarchy -
    • setLayoutData

      public void setLayoutData(Object d)
      Sets the layout data.
      Parameter:
      d -