public class CTreeEditor
extends org.eclipse.swt.custom.ControlEditor
Modifier and Type | Field and Description |
---|---|
(package private) int |
column |
(package private) org.eclipse.swt.events.ControlListener |
columnListener |
(package private) CTreeItem |
item |
(package private) CTree |
tree |
(package private) org.eclipse.swt.events.TreeListener |
treeListener |
Constructor and Description |
---|
CTreeEditor(CTree tree)
Creates a CTableTreeEditor for the specified CTableTree.
|
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Removes all associations between the CTableTreeEditor and the row in the tree.
|
int |
getColumn()
Returns the zero based index of the column of the cell being tracked by this editor.
|
CTreeItem |
getItem()
Returns the CTableTreeItem for the row of the cell being tracked by this editor.
|
void |
layout() |
void |
setColumn(int column)
Sets the zero based index of the column of the cell being tracked by this editor.
|
void |
setEditor(org.eclipse.swt.widgets.Control editor,
CTreeItem item)
Specify the Control that is to be displayed and the cell in the tree that it is to be positioned above.
|
void |
setEditor(org.eclipse.swt.widgets.Control editor,
CTreeItem item,
int column)
Specify the Control that is to be displayed and the cell in the tree that it is to be positioned above.
|
void |
setItem(CTreeItem item) |
CTree tree
CTreeItem item
int column
org.eclipse.swt.events.ControlListener columnListener
org.eclipse.swt.events.TreeListener treeListener
public CTreeEditor(CTree tree)
tree
- the CTableTree Control above which this editor will be displayedpublic void dispose()
dispose
in class org.eclipse.swt.custom.ControlEditor
public int getColumn()
public CTreeItem getItem()
public void layout()
layout
in class org.eclipse.swt.custom.ControlEditor
public void setColumn(int column)
column
- the zero based index of the column of the cell being tracked by this editorpublic void setEditor(org.eclipse.swt.widgets.Control editor, CTreeItem item)
Note: The Control provided as the editor must be created with its parent being the CTableTree control specified in the CTableTreeEditor constructor.
editor
- the Control that is displayed above the cell being editeditem
- the CTableTreeItem for the row of the cell being tracked by this editorpublic void setEditor(org.eclipse.swt.widgets.Control editor, CTreeItem item, int column)
Note: The Control provided as the editor must be created with its parent being the CTableTree control specified in the CTableTreeEditor constructor.
editor
- the Control that is displayed above the cell being editeditem
- the CTableTreeItem for the row of the cell being tracked by this editorcolumn
- the zero based index of the column of the cell being tracked by this editorpublic void setItem(CTreeItem item)