|
|||||||||||
| 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.menu.MenuItemTag
Tag-Handler for the menuitem Tag.
A menu definition is declared with this tag. A menu entry can itself in turn contain additional <menu:menuitem>-tags. The tag can only be used within <menu:menu> and <menu:menuitem>-tags.
| Field Summary | |
private MenuItem |
designModel
DesignModel |
private static long |
serialVersionUID
Serial Version UID |
| 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 | |
MenuItemTag()
Constructor |
|
| Method Summary | |
void |
addMenuItem(MenuItem item)
Adds a menu item |
int |
doEndTag()
|
int |
doStartTag()
|
ClientHandler |
getClientHandler()
Returns the ClientHandler interface of the controls design model. |
protected MenuItem |
getDesignModel()
Returns the MenuItemDesignModel |
void |
release()
|
protected void |
releaseDesignModel()
Releases the design model model |
void |
setAction(java.lang.String action)
Specifies the Struts Action that is to be called upon selection of a menu option |
void |
setFilter(java.lang.String filter)
Defines the optional filter condition(s) for this menu option. |
void |
setId(java.lang.String id)
|
void |
setImageref(java.lang.String imageRef)
The Painter appends to the imageref-value implicit, the following suffixes in order to distinguish between different states. |
void |
setLocale(java.lang.String locale)
Sets the locale configuration for this element |
void |
setMenuid(java.lang.String id)
Defines the internally used identifier of the menu option. |
void |
setOrientation(java.lang.String orientation)
Specifies the orientation of possible sub menu items: horizontal = from top to bottom vertical = from left to right |
void |
setPageContext(javax.servlet.jsp.PageContext pc)
|
void |
setPermission(java.lang.String permission)
With this attribute, access to the element can be restricted. |
void |
setShortcut(java.lang.String shortcut)
A keyboard shortcut for the menu entry |
void |
setState(java.lang.String state)
Specifies the state of the menu option. |
void |
setTarget(java.lang.String target)
The HTML-target attribute of the element can be specified with this attribute. |
void |
setText(java.lang.String text)
The actual label of the menu option. |
void |
setTooltip(java.lang.String tooltip)
A short descriptive text that is displayed when the user moves the mouse over the element. |
void |
setWidth(java.lang.String tag)
Sets the width of the control element. |
| 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
private MenuItem designModel
| Constructor Detail |
public MenuItemTag()
| Method Detail |
protected MenuItem getDesignModel()
protected void releaseDesignModel()
public void setPageContext(javax.servlet.jsp.PageContext pc)
setPageContext in interface javax.servlet.jsp.tagext.TagTag.setPageContext(PageContext pc)public void release()
release in interface javax.servlet.jsp.tagext.TagTag.release()public ClientHandler getClientHandler()
ScriptSupport
getClientHandler in interface ScriptSupportScriptSupport.getClientHandler()
public int doEndTag()
throws javax.servlet.jsp.JspException
doEndTag in interface javax.servlet.jsp.tagext.Tagjavax.servlet.jsp.JspExceptionTag.doEndTag()
public int doStartTag()
throws javax.servlet.jsp.JspException
doStartTag in interface javax.servlet.jsp.tagext.Tagjavax.servlet.jsp.JspExceptionTag.doStartTag()public void setId(java.lang.String id)
TagSupport.setId(java.lang.String)public void setMenuid(java.lang.String id)
id - An identifier of the menu optionpublic void setAction(java.lang.String action)
action - The actionpublic void setState(java.lang.String state)
state - The menu statepublic void setText(java.lang.String text)
text - The text of the menu option.public void setTooltip(java.lang.String tooltip)
tooltip - Tooltippublic void setShortcut(java.lang.String shortcut)
shortcut - Shortcutpublic void setWidth(java.lang.String tag)
tag - Stringpublic void setTarget(java.lang.String target)
target - Target-Attributepublic void setFilter(java.lang.String filter)
filter - An optional filter condition(s)public void setLocale(java.lang.String locale)
locale - Locale Identifier or true|falsepublic void setImageref(java.lang.String imageRef)
imageRef - The reference to an image declared an imagemap
public void setPermission(java.lang.String permission)
throws javax.servlet.jsp.JspException
permission - List of permissions
javax.servlet.jsp.JspException - If the Argument can't be converted to an Object of type
Permissionpublic void addMenuItem(MenuItem item)
MenuContainerTag
addMenuItem in interface MenuContainerTagitem - The menu item to addMenuContainerTag.addMenuItem(MenuItem)
public void setOrientation(java.lang.String orientation)
throws javax.servlet.jsp.JspException
orientation - The orientation of the sub menu items
javax.servlet.jsp.JspException - If the argument can't be converted to an OrientationType
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||