|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.maps.beans.TreeEditionEvent
public class TreeEditionEvent
An event that is sent when a TreeEditionListener is invoked.
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int START
public static final int DRAG
public static final int END
public static final int CHECK_BOX
| Constructor Detail |
|---|
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.ENDstartPath - 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.ENDstartPath - The path of the node that started the event.value - The node that has been clicked.selected - The state of the node.| Method Detail |
|---|
public TreePath getStartPath()
public TreePath getEndPath()
public int getType()
TreeEditionEvent.START, TreeEditionEvent.DRAG or TreeEditionEvent.ENDpublic 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()
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||