|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.servlet.jsp.tagext.TagSupport com.cc.framework.taglib.ScriptTagSupport com.cc.framework.taglib.menu.CrumbTag
Tag-Handler for the crumb
Tag.
Generates a crumb for a crumb control element. The >crumb<-tag may only be specified within a >crumbs<-tag.
Field Summary | |
private CrumbModel |
designModel
DesignModel of the Crumb |
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 | |
CrumbTag()
Constructor |
Method Summary | |
int |
doEndTag()
|
int |
doStartTag()
|
ClientHandler |
getClientHandler()
Returns the ClientHandler interface of the controls design model. |
protected CrumbModel |
getCrumbModel()
Returns the CrumbModel |
void |
release()
|
protected void |
releaseCrumbModel()
Releases the design model model |
void |
setAction(java.lang.String action)
Sets the associated action |
void |
setCrumbid(java.lang.String id)
The unique identification of the crumb. |
void |
setDisabled(java.lang.String disabled)
Marks the crumb as disabled |
void |
setFilter(java.lang.String filter)
Sets HTML filtering on or off |
void |
setImageref(java.lang.String imageRef)
Sets the Reference to an Image in an ImageMap, which should be display in front of the Label |
void |
setLocale(java.lang.String locale)
Sets the locale configuration for this element |
void |
setPageContext(javax.servlet.jsp.PageContext pc)
|
void |
setPermission(java.lang.String permission)
With this attribute, access to the element can be restricted. |
void |
setTitle(java.lang.String title)
The title of the crumb. |
void |
setTooltip(java.lang.String tooltip)
Tooltip Text that is displayed in a Popup window when the user moves the mouse over the crumb. |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, 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 CrumbModel designModel
Constructor Detail |
public CrumbTag()
Method Detail |
protected CrumbModel getCrumbModel()
protected void releaseCrumbModel()
public void setPageContext(javax.servlet.jsp.PageContext pc)
setPageContext
in interface javax.servlet.jsp.tagext.Tag
Tag.setPageContext(PageContext pc)
public void release()
release
in interface javax.servlet.jsp.tagext.Tag
Tag.release()
public ClientHandler getClientHandler()
ScriptSupport
getClientHandler
in interface ScriptSupport
ScriptSupport.getClientHandler()
public int doStartTag() throws javax.servlet.jsp.JspException
doStartTag
in interface javax.servlet.jsp.tagext.Tag
javax.servlet.jsp.JspException
Tag.doStartTag()
public int doEndTag() throws javax.servlet.jsp.JspException
doEndTag
in interface javax.servlet.jsp.tagext.Tag
javax.servlet.jsp.JspException
Tag.doEndTag()
public void setCrumbid(java.lang.String id)
id
- The id of the crumbpublic void setTitle(java.lang.String title)
title
- The title of the crumb.public void setTooltip(java.lang.String tooltip)
tooltip
- The tooltippublic void setImageref(java.lang.String imageRef)
imageRef
- Reference to an Image in an ImageMappublic void setAction(java.lang.String action)
action
- Actionpublic void setPermission(java.lang.String permission) throws javax.servlet.jsp.JspException
Authorizations are checked using the com.cc.framework.security.Principal object in the user session. The principal object is registered in the session with the method com.cc.framework.security.SecurityUtil#registerPrincipal(HttpSession, Principal). It is made available by the application developer by implementing the principal interface. In this manner, any authorization system can be very easily connected within the framework.
Authorizations are always specified in the form of an Access Control List (ACL). What is involved here is a semicolon-delimited list with individual authorizations. The framweork supports the following authorization types, which, however, can be expanded at will by the application developer:
permission
- The permission to set for this control
javax.servlet.jsp.JspException
- If the argument can't be converted into an object of type
Permissionpublic void setDisabled(java.lang.String disabled) throws javax.servlet.jsp.JspException
disabled
- Boolean String
javax.servlet.jsp.JspException
- If the argument can't be converted into an object of type
booleanpublic void setFilter(java.lang.String filter) throws javax.servlet.jsp.JspException
filter
- Boolean String
javax.servlet.jsp.JspException
- If the argument can't be converted into an object of type
booleanpublic void setLocale(java.lang.String locale)
locale
- Locale Identifier or true|false
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |