org.apache.myfaces.custom.tree.event

Class TreeSelectionEvent


public class TreeSelectionEvent
extends FacesEvent

Event fired by HtmlTree on selection changes.
Version:
$Revision: 225368 $ $Date: 2005-07-26 20:14:51 +0200 (Tue, 26 Jul 2005) $
Author:
Oliver Rossmueller

Constructor Summary

TreeSelectionEvent(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(FacesListener faceslistener)
void
processListener(FacesListener faceslistener)

Constructor Details

TreeSelectionEvent

public TreeSelectionEvent(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 Details

getNewSelectionPath

public TreePath getNewSelectionPath()
Answer the path of the current (new) selection.
Returns:
path of the new selected node

getOldSelectionPath

public TreePath getOldSelectionPath()
Answer the path of the old selection.
Returns:
path of previous (old) selection, null if no node was selected before

isAppropriateListener

public boolean isAppropriateListener(FacesListener faceslistener)

processListener

public void processListener(FacesListener faceslistener)