org.apache.myfaces.custom.tree.event
Class TreeSelectionEvent
FacesEvent
org.apache.myfaces.custom.tree.event.TreeSelectionEvent
public class TreeSelectionEvent
extends FacesEvent
Event fired by
HtmlTree
on selection changes.
$Revision: 225368 $ $Date: 2005-07-26 20:14:51 +0200 (Tue, 26 Jul 2005) $
TreeSelectionEvent
public TreeSelectionEvent(UIComponent uiComponent,
TreePath oldSelectionPath,
TreePath newSelectionPath)
Construct an event.
uiComponent
- event sourceoldSelectionPath
- path of the old selection, null if no node was selected beforenewSelectionPath
- path of the current selection
getNewSelectionPath
public TreePath getNewSelectionPath()
Answer the path of the current (new) selection.
- path of the new selected node
getOldSelectionPath
public TreePath getOldSelectionPath()
Answer the path of the old selection.
- path of previous (old) selection, null if no node was selected before
isAppropriateListener
public boolean isAppropriateListener(FacesListener faceslistener)
processListener
public void processListener(FacesListener faceslistener)