com.sun.rave.web.ui.event
Class TabActionListener

java.lang.Object
  extended by com.sun.rave.web.ui.event.TabActionListener
All Implemented Interfaces:
java.util.EventListener, javax.faces.event.ActionListener, javax.faces.event.FacesListener

public class TabActionListener
extends java.lang.Object
implements javax.faces.event.ActionListener

Defines an ActionListener for Tab click events.

This listener updates the selected value of the enclsing TabSet with the id of the Tab that generated the event. It also ensures that the selectedChildId of the clicked Tab's parent Tab is updated.


Constructor Summary
TabActionListener()
           Creates a new instance of TabActionListener.
 
Method Summary
 void processAction(javax.faces.event.ActionEvent event)
          Perform the processing necessary to handle a Tab click event.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TabActionListener

public TabActionListener()

Creates a new instance of TabActionListener.

Method Detail

processAction

public void processAction(javax.faces.event.ActionEvent event)

Perform the processing necessary to handle a Tab click event.

The clicked Tab will be the source component that generated the given ActionEvent. This method should ensure that id of the source component (or one of its children) is set as the selected tab id for the enclosing TabSet. This method should also ensure that the selectedChildId of the source tab's parent Tab (if one exists) is also updated.

Specified by:
processAction in interface javax.faces.event.ActionListener
Parameters:
event - The ActionEvent generated