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

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.VelocityPortletAction
                              extended byorg.apache.jetspeed.modules.actions.portlets.WeatherAction

public class WeatherAction
extends VelocityPortletAction

WeatherAction portlet uses WeatherUnderground's weather condition stickers/banners to build the portlet view.

Donated by Community Grids Java Source Package

Provides supporting classess for portal environments.

Version:
$Id: WeatherAction.java,v 1.9 2004/02/23 02:56:58 jford Exp $
Author:
Ozgur Balsoy

Field Summary
static java.lang.String WEATHER_CITY
           
static java.lang.String WEATHER_CITY_INFO
           
static java.lang.String WEATHER_STATE
           
static java.lang.String WEATHER_STATION
           
static java.lang.String WEATHER_STYLE
           
 
Fields inherited from class org.apache.jetspeed.modules.actions.portlets.GenericMVCAction
logger
 
Fields inherited from class org.apache.turbine.modules.ActionEvent
BUTTON, BUTTON_LENGTH, LENGTH, METHOD_NAME_LENGTH, METHOD_NAME_PREFIX
 
Constructor Summary
WeatherAction()
           
 
Method Summary
protected  void buildMaximizedContext(VelocityPortlet portlet, org.apache.velocity.context.Context context, org.apache.turbine.util.RunData rundata)
          Nothing specific for maximized view.
protected  void buildNormalContext(VelocityPortlet portlet, org.apache.velocity.context.Context context, org.apache.turbine.util.RunData rundata)
          Subclasses must override this method to provide default behavior for the portlet action
 void doCancel(org.apache.turbine.util.RunData data, org.apache.velocity.context.Context context)
           
 
Methods inherited from class org.apache.jetspeed.modules.actions.portlets.VelocityPortletAction
buildConfigureContext, buildConfigureContext, buildMaximizedContext, buildNormalContext
 
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
 

Field Detail

WEATHER_CITY_INFO

public static final java.lang.String WEATHER_CITY_INFO
See Also:
Constant Field Values

WEATHER_STATE

public static final java.lang.String WEATHER_STATE
See Also:
Constant Field Values

WEATHER_CITY

public static final java.lang.String WEATHER_CITY
See Also:
Constant Field Values

WEATHER_STATION

public static final java.lang.String WEATHER_STATION
See Also:
Constant Field Values

WEATHER_STYLE

public static final java.lang.String WEATHER_STYLE
See Also:
Constant Field Values
Constructor Detail

WeatherAction

public WeatherAction()
Method Detail

buildMaximizedContext

protected void buildMaximizedContext(VelocityPortlet portlet,
                                     org.apache.velocity.context.Context context,
                                     org.apache.turbine.util.RunData rundata)
Nothing specific for maximized view.

Overrides:
buildMaximizedContext in class VelocityPortletAction
Parameters:
portlet -
context -
rundata -
See Also:
VelocityPortletAction.buildMaximizedContext(org.apache.jetspeed.portal.Portlet, org.apache.velocity.context.Context, org.apache.turbine.util.RunData)

buildNormalContext

protected void buildNormalContext(VelocityPortlet portlet,
                                  org.apache.velocity.context.Context context,
                                  org.apache.turbine.util.RunData rundata)
Subclasses must override this method to provide default behavior for the portlet action

Specified by:
buildNormalContext in class VelocityPortletAction
Parameters:
portlet -
context -
rundata -
See Also:
VelocityPortletAction.buildNormalContext(org.apache.jetspeed.portal.portlets.VelocityPortlet, org.apache.velocity.context.Context, org.apache.turbine.util.RunData)

doCancel

public void doCancel(org.apache.turbine.util.RunData data,
                     org.apache.velocity.context.Context context)
Parameters:
data -
context -
See Also:
VelocityPortletAction#doCancel


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