com.pow2.webgui.tabbedselector
Class Tab

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by javax.servlet.jsp.tagext.BodyTagSupport
          extended by com.pow2.webgui.Widget
              extended by com.pow2.webgui.tabbedselector.Tab
All Implemented Interfaces:
Serializable, javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.Tag
Direct Known Subclasses:
TabTag

public class Tab
extends Widget

Tab class.

Author:
Luca Fossato
See Also:
Serialized Form

Field Summary
protected static int DOWN
          DOWN is a deselected tab, but not a left-most one.
protected static String FOLLOWUP_PARAMETER
           
protected static String FOLLOWUP_PARAMETER_PREFIX
           
static String KEY
          tabbedSelector key
protected static int LEFTDOWN
          LEFTDOWN is the left-most deselected tab.
static int LEFTUP
          LEFTUP is the left-most selected tab.
protected  int type
          Tab type.
protected static int UP
          UP is a selected tab, but not a left-most one.
 
Fields inherited from class com.pow2.webgui.Widget
cat, color, content, contentProvider, contentProviderName, drawer, followUp, height, id, name, parentW, title, titleType, widgetDrawer, widgetInfo, width
 
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport
bodyContent
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag
EVAL_BODY_BUFFERED, EVAL_BODY_TAG
 
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
Tab()
          Default constructor.
 
Method Summary
 String getFollowUp()
          Gets the followUp attribute of the Tab object.
 int getType()
          Gets the type attribute of the Tab object
protected  boolean isSelected()
          Check if this tab is the tabbedPanel selected tab.
protected  void setType()
          Sets the type attribute of the Tab object.
 void setType(int newType)
          Sets the type attribute of the Tab object
 
Methods inherited from class com.pow2.webgui.Widget
draw, getColor, getContent, getContentProvider, getContentProviderName, getDrawer, getHeight, getId, getName, getParentW, getTitle, getTitleType, getWidgetDrawer, getWidgetInfo, getWidth, setColor, setContent, setContentProvider, setContentProviderName, setDrawer, setFollowUp, setHeight, setId, setName, setParentW, setTitle, setTitleType, setWidgetDrawer, setWidgetInfo, setWidth, updateAttributes
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doEndTag, doInitBody, doStartTag, getBodyContent, getPreviousOut, release, setBodyContent
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getParent, getValue, getValues, removeValue, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setPageContext, setParent
 

Field Detail

LEFTUP

public static final int LEFTUP
LEFTUP is the left-most selected tab.

See Also:
Constant Field Values

LEFTDOWN

protected static final int LEFTDOWN
LEFTDOWN is the left-most deselected tab.

See Also:
Constant Field Values

UP

protected static final int UP
UP is a selected tab, but not a left-most one.

See Also:
Constant Field Values

DOWN

protected static final int DOWN
DOWN is a deselected tab, but not a left-most one.

See Also:
Constant Field Values

KEY

public static final String KEY
tabbedSelector key

See Also:
Constant Field Values

FOLLOWUP_PARAMETER_PREFIX

protected static final String FOLLOWUP_PARAMETER_PREFIX
See Also:
Constant Field Values

FOLLOWUP_PARAMETER

protected static final String FOLLOWUP_PARAMETER
See Also:
Constant Field Values

type

protected int type
Tab type.
Its value can be:

Constructor Detail

Tab

public Tab()
Default constructor.

Method Detail

setType

public void setType(int newType)
Sets the type attribute of the Tab object

Parameters:
newType - The new type value

getType

public int getType()
Gets the type attribute of the Tab object

Returns:
The type value

getFollowUp

public String getFollowUp()
Gets the followUp attribute of the Tab object.
If the Tab followUp attribute value is null, this method uses the parent TabbedPanel followUp attribute value, adding to it the new parameter FOLLOWUP_PARAMETER={tabName} where
FOLLOWUP_PARAMETER = webGUI.tabbedPanel.tab
{tabName} = the name of the selected tab

Overrides:
getFollowUp in class Widget
Returns:
The followUp value

setType

protected void setType()
Sets the type attribute of the Tab object.


isSelected

protected boolean isSelected()
Check if this tab is the tabbedPanel selected tab.

Returns:
true if this tab is the tabbedPanel selected tab; false otherwise.


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