|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
com.cc.framework.taglib.ScriptTagSupport
com.cc.framework.taglib.controls.BaseControlTag
com.cc.framework.taglib.menu.MenuTag
Tag handler for the menu tag.
A menu definition is triggered with this tag. The actual menu options are specified with <menu:menuitem>-tags in the tag-body.
| Field Summary | |
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 | |
MenuTag()
Constructor |
|
| Method Summary | |
void |
addMenuItem(MenuItem item)
Adds a menu item |
protected Control |
doCreateControl()
Creates the control element |
protected ControlDesignModel |
doCreateDesignModel()
This method is called to create the DesignModel for the control |
protected MenuDesignModel |
getMenuDesignModel()
Returns a casted version of the ControlDesignModel |
void |
setId(java.lang.String id)
|
void |
setImagemap(java.lang.String mapName)
Specifies the name of an Imagemap which must be saved in the request. |
void |
setMenuid(java.lang.String id)
Defines the internally used identifier of the menu option. |
void |
setStyle(java.lang.String style)
An HTML-style. |
void |
setStyleClass(java.lang.String styleClass)
The HTML-class attribute. |
void |
setStyleId(java.lang.String styleId)
The HTML-id attribute. |
void |
setType(java.lang.String type)
Specifies the menu type and hence the visual appearance of the menu. |
| 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, release, releaseDesignModel, setAction, setAjax, setAjax, setBorder, setDirectValue, setDisabled, setFormElement, setHeight, setHelp, setLocale, setName, setPageContext, setPermission, setProperty, setRunat, setScope, setShadow, setSummary, setTabindex, setTooltip, setTransaction, setValue, setWidth |
| 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 |
private static final long serialVersionUID
| Constructor Detail |
public MenuTag()
| Method Detail |
protected ControlDesignModel doCreateDesignModel()
BaseControlTag
doCreateDesignModel in class BaseControlTagBaseControlTag.doCreateDesignModel()protected MenuDesignModel getMenuDesignModel()
protected Control doCreateControl()
throws javax.servlet.jsp.JspException
BaseControlTag
doCreateControl in class BaseControlTagjavax.servlet.jsp.JspException - If an error during bean lookup occursBaseControlTag.doCreateControl()public void addMenuItem(MenuItem item)
MenuContainerTag
addMenuItem in interface MenuContainerTagitem - The menu item to addMenuContainerTag.addMenuItem(com.cc.framework.ui.model.MenuItem)public void setId(java.lang.String id)
setId in class BaseControlTagTagSupport.setId(java.lang.String)public void setMenuid(java.lang.String id)
id - An identifier of the menu option
public void setType(java.lang.String type)
throws javax.servlet.jsp.JspException
type - The type of the menu
javax.servlet.jsp.JspException - If the argument can't be converted to an object of type
MenuType
public void setImagemap(java.lang.String mapName)
throws javax.servlet.jsp.JspException
MenuContext.setPath(java.lang.String)
. Note: Under the name, there must be an Imagemap saved in the request.
mapName - Imagemap
javax.servlet.jsp.JspException - When the Image Map could not be foundpublic void setStyle(java.lang.String style)
setStyle in class BaseControlTagstyle - An HTML-stylepublic void setStyleId(java.lang.String styleId)
setStyleId in class BaseControlTagstyleId - The HTML-id attributepublic void setStyleClass(java.lang.String styleClass)
setStyleClass in class BaseControlTagstyleClass - The HTML-class attribute
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||