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

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

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

A listener for receiving sort action events. Depending on the id of the event source, SortCriteria objects are either added as next level sort, set as the primary sort, or all sorting currently applied is cleared.

A class that is interested in receiving such events registers itself with the source TableColumn of interest, by calling addActionListener().

Note: To see the messages logged by this class, set the following global defaults in your JDK's "jre/lib/logging.properties" file.

 java.util.logging.ConsoleHandler.level = FINE
 com.sun.rave.web.ui.event.TableSortActionListener.level = FINE
 


Constructor Summary
TableSortActionListener()
           
 
Method Summary
 void processAction(javax.faces.event.ActionEvent event)
          Invoked when the action described by the specified ActionEvent occurs.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableSortActionListener

public TableSortActionListener()
Method Detail

processAction

public void processAction(javax.faces.event.ActionEvent event)
                   throws javax.faces.event.AbortProcessingException
Invoked when the action described by the specified ActionEvent occurs. The source parent is expected to be a Table or TableColumn object.

Specified by:
processAction in interface javax.faces.event.ActionListener
Parameters:
event - The ActionEvent that has occurred
Throws:
javax.faces.event.AbortProcessingException - Signal the JavaServer Faces implementation that no further processing on the current event should be performed.