ilog.views.maps.beans
Class TreeEditionEvent

java.lang.Object
  extended by ilog.views.maps.beans.TreeEditionEvent

public class TreeEditionEvent
extends Object

An event that is sent when a TreeEditionListener is invoked.

Since:
JViews 7.5

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

START

public static final int START
Type indicating that a drag node is started.

See Also:
Constant Field Values

DRAG

public static final int DRAG
Type indicating that a drag node is performed.

See Also:
Constant Field Values

END

public static final int END
Type indicating that a drag node has ended.

See Also:
Constant Field Values

CHECK_BOX

public static final int CHECK_BOX
Type indicating that a click in a tree node's checkbox has occurred.

See Also:
Constant Field Values
Constructor Detail

TreeEditionEvent

public TreeEditionEvent(int type,
                        TreePath startPath,
                        TreePath endPath)
Constructs a TreeEditionEvent specifying the type, start path and end path.

Parameters:
type - Either TreeEditionEvent.START, TreeEditionEvent.DRAG or TreeEditionEvent.END
startPath - The path of the node that started the event.
endPath - The current node path.

TreeEditionEvent

public TreeEditionEvent(int type,
                        TreePath startPath,
                        Object value,
                        boolean selected)
Constructs a TreeEditionEvent specifying the type, start path a value and the selected state.

Parameters:
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.
Method Detail

getStartPath

public TreePath getStartPath()
Returns the start path.

Returns:
The start path.

getEndPath

public TreePath getEndPath()
Returns the current path.

Returns:
The current path.

getType

public int getType()
Returns the event type.

Returns:
Either TreeEditionEvent.START, TreeEditionEvent.DRAG or TreeEditionEvent.END

isSelected

public boolean isSelected()
Returns true if the selected field has been set to true in the constructor and false otherwise.

Returns:
true if the selected field has been set to true in the constructor and false otherwise.

getValue

public Object getValue()
Returns the value as set in by constructor.

Returns:
The value as set in by constructor.


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.