org.apache.myfaces.custom.tree.event
Class TreeSelectionEvent
java.lang.Object
java.util.EventObject
javax.faces.event.FacesEvent
org.apache.myfaces.custom.tree.event.TreeSelectionEvent
- All Implemented Interfaces:
- java.io.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
Fields inherited from class java.util.EventObject |
source |
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 |
TreeSelectionEvent
public TreeSelectionEvent(javax.faces.component.UIComponent uiComponent,
TreePath oldSelectionPath,
TreePath newSelectionPath)
- Construct an event.
- Parameters:
uiComponent
- event sourceoldSelectionPath
- path of the old selection, null if no node was selected beforenewSelectionPath
- path of the current selection
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 © 2011 The Apache Software Foundation. All Rights Reserved.