org.apache.myfaces.custom.tree.event
Class TreeSelectionEvent

java.lang.Object
  extended by java.util.EventObject
      extended by javax.faces.event.FacesEvent
          extended by org.apache.myfaces.custom.tree.event.TreeSelectionEvent
All Implemented Interfaces:
Serializable

public class TreeSelectionEvent
extends javax.faces.event.FacesEvent

Event fired by HtmlTree on selection changes.

Version:
$Revision: 472638 $ $Date: 2006-11-08 15:54:13 -0500 (Wed, 08 Nov 2006) $
Author:
Oliver Rossmueller
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
TreeSelectionEvent(javax.faces.component.UIComponent uiComponent, TreePath oldSelectionPath, TreePath newSelectionPath)
          Construct an event.
 
Method Summary
 TreePath getNewSelectionPath()
          Answer the path of the current (new) selection.
 TreePath getOldSelectionPath()
          Answer the path of the old selection.
 boolean isAppropriateListener(javax.faces.event.FacesListener faceslistener)
           
 void processListener(javax.faces.event.FacesListener faceslistener)
           
 
Methods inherited from class javax.faces.event.FacesEvent
getComponent, getPhaseId, queue, setPhaseId
 
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
 

Constructor Detail

TreeSelectionEvent

public TreeSelectionEvent(javax.faces.component.UIComponent uiComponent,
                          TreePath oldSelectionPath,
                          TreePath newSelectionPath)
Construct an event.

Parameters:
uiComponent - event source
oldSelectionPath - path of the old selection, null if no node was selected before
newSelectionPath - path of the current selection
Method Detail

getOldSelectionPath

public TreePath getOldSelectionPath()
Answer the path of the old selection.

Returns:
path of previous (old) selection, null if no node was selected before

getNewSelectionPath

public TreePath getNewSelectionPath()
Answer the path of the current (new) selection.

Returns:
path of the new selected node

isAppropriateListener

public boolean isAppropriateListener(javax.faces.event.FacesListener faceslistener)
Specified by:
isAppropriateListener in class javax.faces.event.FacesEvent

processListener

public void processListener(javax.faces.event.FacesListener faceslistener)
Specified by:
processListener in class javax.faces.event.FacesEvent


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.