org.apache.jetspeed.modules.actions.portlets
Class JspStockQuoteAction

java.lang.Object
  extended byorg.apache.turbine.modules.Assembler
      extended byorg.apache.turbine.modules.Action
          extended byorg.apache.turbine.modules.ActionEvent
              extended byorg.apache.jetspeed.modules.actions.portlets.PortletActionEvent
                  extended byorg.apache.jetspeed.modules.actions.portlets.PortletAction
                      extended byorg.apache.jetspeed.modules.actions.portlets.GenericMVCAction
                          extended byorg.apache.jetspeed.modules.actions.portlets.JspPortletAction
                              extended byorg.apache.jetspeed.modules.actions.portlets.JspStockQuoteAction
All Implemented Interfaces:
org.apache.turbine.util.Comparable

public class JspStockQuoteAction
extends JspPortletAction
implements org.apache.turbine.util.Comparable

This action sets up the template context for retrieving stock quotes.

Version:
$Id: JspStockQuoteAction.java,v 1.3 2004/02/23 02:56:58 jford Exp $
Author:
Mark Orciuch

Field Summary
 
Fields inherited from class org.apache.turbine.modules.ActionEvent
BUTTON, BUTTON_LENGTH, LENGTH, METHOD_NAME_LENGTH, METHOD_NAME_PREFIX
 
Constructor Summary
JspStockQuoteAction()
           
 
Method Summary
protected  void buildNormalContext(Portlet portlet, org.apache.turbine.util.RunData rundata)
          Build the normal state content for this portlet.
 int compare(java.lang.Object entry1, java.lang.Object entry2)
          Compare to another StockQuote.
 void doRefresh(org.apache.turbine.util.RunData rundata, Portlet portlet)
          Refresh the portlet content.
 void doSort(org.apache.turbine.util.RunData rundata, Portlet portlet)
          Sort the quotes.
 
Methods inherited from class org.apache.jetspeed.modules.actions.portlets.JspPortletAction
buildConfigureContext, buildConfigureContext, buildMaximizedContext, buildMaximizedContext, buildNormalContext, setTemplate
 
Methods inherited from class org.apache.jetspeed.modules.actions.portlets.GenericMVCAction
checkAdministrativeAction, doPerform, getAttribute, getAttribute, getPortletInstance, perform, setAttribute
 
Methods inherited from class org.apache.jetspeed.modules.actions.portlets.PortletAction
doPerform, getContext, getPortlet, getTemplate, resetTemplate, setTemplate, setTemplate
 
Methods inherited from class org.apache.jetspeed.modules.actions.portlets.PortletActionEvent
executeEvents, fireEvent
 
Methods inherited from class org.apache.turbine.modules.ActionEvent
executeEvents, formatString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JspStockQuoteAction

public JspStockQuoteAction()
Method Detail

buildNormalContext

protected void buildNormalContext(Portlet portlet,
                                  org.apache.turbine.util.RunData rundata)
Build the normal state content for this portlet.

Specified by:
buildNormalContext in class JspPortletAction
Parameters:
portlet - The jsp-based portlet that is being built.
rundata - The turbine rundata context for this request.

doSort

public void doSort(org.apache.turbine.util.RunData rundata,
                   Portlet portlet)
Sort the quotes.

Parameters:
portlet - The jsp-based portlet that is being built.
rundata - The turbine rundata context for this request.

doRefresh

public void doRefresh(org.apache.turbine.util.RunData rundata,
                      Portlet portlet)
Refresh the portlet content.

Parameters:
portlet - The jsp-based portlet that is being built.
rundata - The turbine rundata context for this request.

compare

public int compare(java.lang.Object entry1,
                   java.lang.Object entry2)
Compare to another StockQuote. Used by the QuickSort class to determine sort order.

Specified by:
compare in interface org.apache.turbine.util.Comparable
Parameters:
entry1 - The first StockQuoteEntry object.
entry2 - The second StockQuoteEntry object.
Returns:
An int indicating the result of the comparison.


Copyright © 2000-2005 Apache Software Foundation. All Rights Reserved.