public class ComponentHierarchy
extends java.lang.Object
Constructor and Description |
---|
ComponentHierarchy(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.
|
Modifier and Type | Method and Description |
---|---|
void |
actionClear()
Clears the hierarchy.
|
void |
actionDeleteColumn()
Deletes a column.
|
void |
actionDeleteRow()
Deletes a row.
|
void |
actionEditItem(java.lang.String newValue)
Renames an item.
|
void |
actionInsertColumn()
Inserts a column.
|
void |
actionInsertRow()
Inserts a row.
|
void |
actionMoveRowDown()
Moves an element down.
|
void |
actionMoveRowUp()
Moves an element up.
|
void |
actionRenameItem(java.lang.String newValue)
Renames an item.
|
void |
actionReset()
Clears the hierarchy.
|
void |
addMouseListener(org.eclipse.swt.events.MouseListener listener)
Adds a mouse listener
|
org.eclipse.swt.widgets.Control |
getControl()
Returns the underlying control
|
java.lang.String |
getSelectedValue()
Returns the selected value.
|
boolean |
isCellSelected()
Returns whether a cell is selected
|
boolean |
isColumnSelected()
Returns whether a column is selected
|
boolean |
isEmpty()
Returns whether this component is empty
|
boolean |
isRowSelected()
Returns whether a row is selected
|
void |
setHierarchy(AttributeType.Hierarchy hierarchy)
Sets the hierarchy displayed by this component.
|
void |
setLayoutData(java.lang.Object d)
Sets the layout data.
|
public ComponentHierarchy(org.eclipse.swt.widgets.Composite parent)
parent
- public ComponentHierarchy(org.eclipse.swt.widgets.Composite parent, org.eclipse.swt.events.ModifyListener listener)
parent
- listener
- public void actionClear()
public void actionDeleteColumn()
public void actionDeleteRow()
public void actionEditItem(java.lang.String newValue)
public void actionInsertColumn()
public void actionInsertRow()
public void actionMoveRowDown()
public void actionMoveRowUp()
public void actionRenameItem(java.lang.String newValue)
public void actionReset()
public void addMouseListener(org.eclipse.swt.events.MouseListener listener)
listener
- public org.eclipse.swt.widgets.Control getControl()
public java.lang.String getSelectedValue()
public boolean isCellSelected()
public boolean isColumnSelected()
public boolean isEmpty()
public boolean isRowSelected()
public void setHierarchy(AttributeType.Hierarchy hierarchy)
hierarchy
- public void setLayoutData(java.lang.Object d)
d
-