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: 1.4 $ $Date: 2004/10/13 11:50:58 $
$Log: TreeSelectionEvent.java,v $
Revision 1.4 2004/10/13 11:50:58 matze
renamed packages to org.apache
Revision 1.3 2004/07/01 21:53:08 mwessendorf
ASF switch
Revision 1.2 2004/04/23 19:09:34 o_rossmueller
state transition magic
Revision 1.1 2004/04/22 21:14:54 o_rossmueller
TreeSelectionListener support
- 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