yu.ac.bg.etf.javaqx.qswing.events
Class TreeSelectionEvent

java.lang.Object
  extended byjava.util.EventObject
      extended byyu.ac.bg.etf.javaqx.qswing.events.TreeSelectionEvent
All Implemented Interfaces:
java.io.Serializable

public class TreeSelectionEvent
extends java.util.EventObject

Tree Selection Event.

Version:
0.2.0
Author:
Slobodan Vrkacevic (slobodan.vrkacevic@gmail.com)
See Also:
Serialized Form

Field Summary
protected  boolean[] areNew
           
protected  TreePath newLeadSelectionPath
           
protected  TreePath oldLeadSelectionPath
           
protected  TreePath[] paths
           
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
TreeSelectionEvent(java.lang.Object source, TreePath[] paths, boolean[] areNew, TreePath oldLeadSelectionPath, TreePath newLeadSelectionPath)
          Constructs new TreeSelectionEvent object.
TreeSelectionEvent(java.lang.Object source, TreePath path, boolean isNew, TreePath oldLeadSelectionPath, TreePath newLeadSelectionPath)
          Constructs new TreeSelectionEvent object.
 
Method Summary
 TreePath getNewLeadSelectionPath()
          Returns new lead path.
 TreePath getOldLeadSelectionPath()
          Returns old lead path.
 TreePath getPath()
          Returns tree path.
 TreePath[] getPaths()
          Returns tree paths.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

paths

protected transient TreePath[] paths

areNew

protected transient boolean[] areNew

oldLeadSelectionPath

protected transient TreePath oldLeadSelectionPath

newLeadSelectionPath

protected transient TreePath newLeadSelectionPath
Constructor Detail

TreeSelectionEvent

public TreeSelectionEvent(java.lang.Object source,
                          TreePath[] paths,
                          boolean[] areNew,
                          TreePath oldLeadSelectionPath,
                          TreePath newLeadSelectionPath)
Constructs new TreeSelectionEvent object.

Parameters:
source - Object
paths - TreePath[]
areNew - boolean[]
oldLeadSelectionPath - TreePath
newLeadSelectionPath - TreePath

TreeSelectionEvent

public TreeSelectionEvent(java.lang.Object source,
                          TreePath path,
                          boolean isNew,
                          TreePath oldLeadSelectionPath,
                          TreePath newLeadSelectionPath)
Constructs new TreeSelectionEvent object.

Parameters:
source - the source of the event
path - the tree path
isNew - true if new to the selection
oldLeadSelectionPath - the old lead selection path
newLeadSelectionPath - the old lead selection path
Method Detail

getPath

public TreePath getPath()
Returns tree path.

Returns:
tree path

getPaths

public TreePath[] getPaths()
Returns tree paths.

Returns:
tree paths

getOldLeadSelectionPath

public TreePath getOldLeadSelectionPath()
Returns old lead path.

Returns:
old lead path

getNewLeadSelectionPath

public TreePath getNewLeadSelectionPath()
Returns new lead path.

Returns:
new lead path


Copyright © 2007 ETF and contributors. All Rights Reserved.