org.apache.jetspeed.modules.actions.portlets
Class JspStockQuoteAction
java.lang.Object
org.apache.turbine.modules.Assembler
org.apache.turbine.modules.Action
org.apache.turbine.modules.ActionEvent
org.apache.jetspeed.modules.actions.portlets.PortletActionEvent
org.apache.jetspeed.modules.actions.portlets.PortletAction
org.apache.jetspeed.modules.actions.portlets.GenericMVCAction
org.apache.jetspeed.modules.actions.portlets.JspPortletAction
org.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
Fields inherited from class org.apache.turbine.modules.ActionEvent |
BUTTON, BUTTON_LENGTH, LENGTH, METHOD_NAME_LENGTH, METHOD_NAME_PREFIX |
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.turbine.modules.ActionEvent |
executeEvents, formatString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JspStockQuoteAction
public JspStockQuoteAction()
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.