com.cc.framework.taglib.controls
Class TabbarTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended bycom.cc.framework.taglib.ScriptTagSupport
          extended bycom.cc.framework.taglib.controls.BaseControlTag
              extended bycom.cc.framework.taglib.controls.TabbarTag
All Implemented Interfaces:
AjaxSupportTag, DesignRuleContainerTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, ScriptSupport, java.io.Serializable, TabContainer, javax.servlet.jsp.tagext.Tag
Direct Known Subclasses:
TabsetTag

public class TabbarTag
extends BaseControlTag
implements TabContainer

Tag-Handler for the tabbar Tag.

Generates a tab strip without the tab Body. The individual tabs of the control element can be directly specified in the JSP-Page with the help of the <tab>-tag. The Body of the tabs is ignored!

Since:
1.2
Version:
$Revision: 1.33 $
Author:
Gernot Schulz
See Also:
Serialized Form

Field Summary
private  java.lang.String selectedTab
          The current selected tab
private static long serialVersionUID
          Serial Version UID
 
Fields inherited from class com.cc.framework.taglib.controls.BaseControlTag
log
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
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
TabbarTag()
          Constructor
 
Method Summary
 void addTab(TabDesignModel tab)
          Adds a TabPage to the TabSet
protected  Control doCreateControl()
          Creates the control element
protected  ControlDesignModel doCreateDesignModel()
          This method is called to create the DesignModel for the control
protected  TabsetDesignModel getTabsetDesignModel()
          Returns a casted version of the ControlDesignModel
 boolean isSelected(TabDesignModel tab)
          Returns if the specified TabPage is selected
 void release()
           
 void setBgcolor(java.lang.String bgcolor)
          Sets the background color for the control element.
 void setFilter(java.lang.String filter)
          The automatic HTML coding of the tabset can be activated or disabled with the filter attribute.
 void setImagemap(java.lang.String mapName)
          With this attribute, an ImageList is assigned to the tabset, with the help of which images can be assigned to the individual tabs.
 void setLabellength(java.lang.String length)
          Specifies the maximum number of characters for the labels of the tab.
 void setMaximum(int maximum)
          Sets the maximum
 void setOverlapping(java.lang.String overlapping)
          Sets the Control to overlapping mode.
 void setPageContext(javax.servlet.jsp.PageContext pc)
           
 void setSelected(java.lang.String selected)
          Sets the code of the current selected tab
 void setStacked(java.lang.String stacked)
          Enables or disables stacked display for the tabset control
 void setTabs(java.lang.String tabs)
          Sets the number of visible TabPages
 
Methods inherited from class com.cc.framework.taglib.controls.BaseControlTag
addDesignRule, beginPaint, createControl, createPainter, doEndTag, doStartTag, endPaint, getClientHandler, getControl, getDefaultAction, getDesignModel, getDirectValue, getHttpScope, getPainterContext, lookupBean, releaseDesignModel, setAction, setAjax, setAjax, setBorder, setDirectValue, setDisabled, setFormElement, setHeight, setHelp, setId, setLocale, setName, setPermission, setProperty, setRunat, setScope, setShadow, setStyle, setStyleClass, setStyleId, setSummary, setTabindex, setTooltip, setTransaction, setValue, setWidth
 
Methods inherited from class com.cc.framework.taglib.ScriptTagSupport
setOnabort, setOnactivate, setOnafterprint, setOnafterupdate, setOnbeforeactivate, setOnbeforecopy, setOnbeforecut, setOnbeforedeactivate, setOnbeforeeditfocus, setOnbeforepaste, setOnbeforeprint, setOnbeforeunload, setOnbeforeupdate, setOnblur, setOnbounce, setOncellchange, setOnchange, setOncheck, setOncheckall, setOnclick, setOncollapse, setOncontextmenu, setOncontrolselect, setOncopy, setOncut, setOndataavailable, setOndatasetchanged, setOndatasetcomplete, setOndblclick, setOndeactivate, setOndrag, setOndragend, setOndragenter, setOndragleave, setOndragover, setOndragstart, setOndrop, setOnerror, setOnerrorupdate, setOnexpand, setOnexpandex, setOnfilterchange, setOnfinish, setOnfocus, setOnfocusin, setOnfocusout, setOnhelp, setOnkeydown, setOnkeypress, setOnkeyup, setOnlayoutcomplete, setOnload, setOnlosecapture, setOnmousedown, setOnmouseenter, setOnmouseleave, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnmousewheel, setOnmove, setOnmoveend, setOnmovestart, setOnpaste, setOnpropertychange, setOnreadystatechange, setOnreset, setOnresize, setOnresizeend, setOnresizestart, setOnrowenter, setOnrowexit, setOnrowsdelete, setOnrowsinserted, setOnscroll, setOnselect, setOnselectionchange, setOnselectstart, setOnspindown, setOnspinup, setOnstart, setOnstop, setOnsubmit, setOnuncheck, setOnuncheckall, setOnunload
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
Serial Version UID

See Also:
Constant Field Values

selectedTab

private java.lang.String selectedTab
The current selected tab

Constructor Detail

TabbarTag

public TabbarTag()
Constructor

Method Detail

doCreateDesignModel

protected ControlDesignModel doCreateDesignModel()
Description copied from class: BaseControlTag
This method is called to create the DesignModel for the control

Specified by:
doCreateDesignModel in class BaseControlTag
Returns:
A concrete DesignModel
See Also:
BaseControlTag.doCreateDesignModel()

getTabsetDesignModel

protected TabsetDesignModel getTabsetDesignModel()
Returns a casted version of the ControlDesignModel

Returns:
TabsetDesignModel

setPageContext

public void setPageContext(javax.servlet.jsp.PageContext pc)
Specified by:
setPageContext in interface javax.servlet.jsp.tagext.Tag
Overrides:
setPageContext in class BaseControlTag
See Also:
Tag.setPageContext(PageContext pc)

release

public void release()
Specified by:
release in interface javax.servlet.jsp.tagext.Tag
Overrides:
release in class BaseControlTag
See Also:
Tag.release()

isSelected

public boolean isSelected(TabDesignModel tab)
Returns if the specified TabPage is selected

Parameters:
tab - TabDesignModel
Returns:
boolean

setSelected

public void setSelected(java.lang.String selected)
Sets the code of the current selected tab

Parameters:
selected - Tab page code

doCreateControl

protected Control doCreateControl()
                           throws javax.servlet.jsp.JspException
Description copied from class: BaseControlTag
Creates the control element

Specified by:
doCreateControl in class BaseControlTag
Returns:
control element
Throws:
javax.servlet.jsp.JspException - If an error during bean lookup occurs
See Also:
BaseControlTag.doCreateControl()

setTabs

public void setTabs(java.lang.String tabs)
             throws javax.servlet.jsp.JspException
Sets the number of visible TabPages

Parameters:
tabs - Number of visible TabPages
Throws:
javax.servlet.jsp.JspException - If the Argument can't be converted to integer

setMaximum

public void setMaximum(int maximum)
Sets the maximum

Parameters:
maximum - The maximum to set

setStacked

public void setStacked(java.lang.String stacked)
                throws javax.servlet.jsp.JspException
Enables or disables stacked display for the tabset control

Parameters:
stacked - when set to true stacked display is enabled
Throws:
javax.servlet.jsp.JspException - If the Argument can't be converted to boolean

setBgcolor

public void setBgcolor(java.lang.String bgcolor)
Sets the background color for the control element.

Parameters:
bgcolor - The background color

setImagemap

public void setImagemap(java.lang.String mapName)
                 throws javax.servlet.jsp.JspException
With this attribute, an ImageList is assigned to the tabset, with the help of which images can be assigned to the individual tabs.

Parameters:
mapName - The ImageMap to assign
Throws:
javax.servlet.jsp.JspException - If the ImageMap could not be found

setLabellength

public void setLabellength(java.lang.String length)
                    throws javax.servlet.jsp.JspException
Specifies the maximum number of characters for the labels of the tab. If a label is longer, it is shortened with "...".

Parameters:
length - The maximum number of characters for the labels of the tab.
Throws:
javax.servlet.jsp.JspException - If the Argument can't be converted to integer

addTab

public void addTab(TabDesignModel tab)
Description copied from interface: TabContainer
Adds a TabPage to the TabSet

Specified by:
addTab in interface TabContainer
Parameters:
tab - TabDesignModel
See Also:
TabContainer.addTab(com.cc.framework.ui.model.TabDesignModel)

setFilter

public void setFilter(java.lang.String filter)
               throws javax.servlet.jsp.JspException
The automatic HTML coding of the tabset can be activated or disabled with the filter attribute. The default is true

Parameters:
filter - true if the tabs should be HTML encoded.
Throws:
javax.servlet.jsp.JspException - If the Argument can't be converted to boolean

setOverlapping

public void setOverlapping(java.lang.String overlapping)
                    throws javax.servlet.jsp.JspException
Sets the Control to overlapping mode.

Parameters:
overlapping - true if the tabs should painted in overlapping mode.
Throws:
javax.servlet.jsp.JspException - If the Argument can't be converted to boolean


Copyright © 2000-2005 SCC Informationssysteme GmbH. All Rights Reserved.