Klasse ComponentHierarchy
java.lang.Object
org.deidentifier.arx.gui.view.impl.common.ComponentHierarchy
This class implements an editor for generalization hierarchies.
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungComponentHierarchy(org.eclipse.swt.widgets.Composite parent) Constructor for non-editable views.ComponentHierarchy(org.eclipse.swt.widgets.Composite parent, org.eclipse.swt.events.ModifyListener listener) Constructor for editable views. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidClears the hierarchy.voidDeletes a column.voidDeletes a row.voidactionEditItem(String newValue) Renames an item.voidInserts a column.voidInserts a row.voidMoves an element down.voidMoves an element up.voidactionRenameItem(String newValue) Renames an item.voidClears the hierarchy.voidaddMouseListener(org.eclipse.swt.events.MouseListener listener) Adds a mouse listenerorg.eclipse.swt.widgets.ControlReturns the underlying controlReturns the selected value.booleanReturns whether a cell is selectedbooleanReturns whether a column is selectedbooleanisEmpty()Returns whether this component is emptybooleanReturns whether a row is selectedvoidsetHierarchy(AttributeType.Hierarchy hierarchy) Sets the hierarchy displayed by this component.voidSets the layout data.
-
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
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
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
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
Sets the hierarchy displayed by this component. Call with null to reset.- Parameter:
hierarchy-
-
setLayoutData
Sets the layout data.- Parameter:
d-
-