Example of  Tree Branch Closed Listener

Top  Previous  Next

package testingapplication.tree;

 

 

import com.softaspects.jsf.component.tree.event.TreeBranchClosedEvent;

import com.softaspects.jsf.component.tree.event.TreeBranchOpenedEvent;

import com.softaspects.jsf.component.tree.event.TreeBranchSelectedEvent;

import com.softaspects.jsf.component.tree.event.TreeLeafSelectedEvent;

import com.softaspects.jsf.component.tree.listener.TreeBranchClosedListener;

import com.softaspects.jsf.component.tree.listener.TreeBranchOpenedListener;

import com.softaspects.jsf.component.tree.listener.TreeBranchSelectedListener;

import com.softaspects.jsf.component.tree.listener.TreeLeafSelectedListener;

 

import javax.faces.event.AbortProcessingException;

 

public class TreeListeners implements TreeBranchClosedListener, TreeBranchOpenedListener,

      TreeBranchSelectedListener, TreeLeafSelectedListener {

 

  public void processTreeBranchClosed(TreeBranchClosedEvent event) throws AbortProcessingException {

      TreeDataModelUtil.logListenerCalledMessage(event);

  }

 

  public void processTreeBranchOpened(TreeBranchOpenedEvent event) throws AbortProcessingException {

      TreeDataModelUtil.logListenerCalledMessage(event);

  }

 

  public void processTreeBranchSelected(TreeBranchSelectedEvent event) throws AbortProcessingException {

      TreeDataModelUtil.logListenerCalledMessage(event);

  }

 

  public void processTreeLeafSelected(TreeLeafSelectedEvent event) throws AbortProcessingException {

      TreeDataModelUtil.logListenerCalledMessage(event);

  }

 

}