com.pow2.webgui.tabbedselector
Class TabbedSelectorUtil

java.lang.Object
  extended by com.pow2.webgui.tabbedselector.TabbedSelectorUtil

public class TabbedSelectorUtil
extends Object

Utility class for the TabbedSelector component.

Author:
Luca Fossato

Constructor Summary
TabbedSelectorUtil()
           
 
Method Summary
static String getSelectedTabParam(HttpServletRequest request, String tabbedSelectorName)
          Build the selectedTab parameter (the [key, value] couple) for the tabbedSelector widget.
static String getSelectedTabParam(String tabbedSelectorName, String value)
          Build the selectedTab parameter (the [key, value] couple) for the tabbedSelector widget.
static String getSelectedTabParamName(String tabbedSelectorName)
          Get the the selectedTab parameter name for the tabbedSelector widget.
static String getSelectedTabParamValue(HttpServletRequest request, String tabbedSelectorName)
          Get the the selectedTab parameter value for the tabbedSelector widget.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TabbedSelectorUtil

public TabbedSelectorUtil()
Method Detail

getSelectedTabParam

public static String getSelectedTabParam(HttpServletRequest request,
                                         String tabbedSelectorName)
Build the selectedTab parameter (the [key, value] couple) for the tabbedSelector widget.
The selectedTab parameter value is take from the request object.

Parameters:
request - the request object
tabbedSelectorName - the name of the tabbedSelector widget
Returns:
the selectedTab parameter

getSelectedTabParam

public static String getSelectedTabParam(String tabbedSelectorName,
                                         String value)
Build the selectedTab parameter (the [key, value] couple) for the tabbedSelector widget.

Parameters:
tabbedSelectorName - the name of the tabbedSelector widget
value - the value of the selectedTab parameter
Returns:
the selectedTab parameter

getSelectedTabParamName

public static String getSelectedTabParamName(String tabbedSelectorName)
Get the the selectedTab parameter name for the tabbedSelector widget.

Parameters:
tabbedSelectorName - the name of the tabbedSelector widget
Returns:
the selectedTab parameter name

getSelectedTabParamValue

public static String getSelectedTabParamValue(HttpServletRequest request,
                                              String tabbedSelectorName)
Get the the selectedTab parameter value for the tabbedSelector widget.

Parameters:
request - the request object
tabbedSelectorName - the name of the tabbedSelector widget
Returns:
the selectedTab parameter value


Copyright © 2002-2005 Power Of Two S.r.l. All Rights Reserved.