public class TreeEditionEvent extends Object
TreeEditionListener
is invoked.Modifier and Type | Field and Description |
---|---|
static int |
CHECK_BOX
Type indicating that a click in a tree node's checkbox has occurred.
|
static int |
DRAG
Type indicating that a drag node is performed.
|
static int |
END
Type indicating that a drag node has ended.
|
static int |
START
Type indicating that a drag node is started.
|
Constructor and Description |
---|
TreeEditionEvent(int type,
TreePath startPath,
Object value,
boolean selected)
Constructs a
TreeEditionEvent specifying the type,
start path a value and the selected state. |
TreeEditionEvent(int type,
TreePath startPath,
TreePath endPath)
Constructs a
TreeEditionEvent specifying the type,
start path and end path. |
Modifier and Type | Method and Description |
---|---|
TreePath |
getEndPath()
Returns the current path.
|
TreePath |
getStartPath()
Returns the start path.
|
int |
getType()
Returns the event type.
|
Object |
getValue()
Returns the value as set in by constructor.
|
boolean |
isSelected()
Returns
true if the selected field has been set to true in the
constructor and false otherwise. |
public static final int START
public static final int DRAG
public static final int END
public static final int CHECK_BOX
public TreeEditionEvent(int type, TreePath startPath, TreePath endPath)
TreeEditionEvent
specifying the type,
start path and end path.type
- Either TreeEditionEvent.START
, TreeEditionEvent.DRAG
or TreeEditionEvent.END
startPath
- The path of the node that started the event.endPath
- The current node path.public TreeEditionEvent(int type, TreePath startPath, Object value, boolean selected)
TreeEditionEvent
specifying the type,
start path a value and the selected state.type
- Either TreeEditionEvent.START
, TreeEditionEvent.DRAG
or TreeEditionEvent.END
startPath
- The path of the node that started the event.value
- The node that has been clicked.selected
- The state of the node.public TreePath getStartPath()
public TreePath getEndPath()
public int getType()
TreeEditionEvent.START
, TreeEditionEvent.DRAG
or TreeEditionEvent.END
public boolean isSelected()
true
if the selected field has been set to true in the
constructor and false
otherwise.true
if the selected field has been set to true in the
constructor and false
otherwise.public Object getValue()
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.