|
|||||||||||
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.base.OptionsTag
Tag handler for the options
Tag. The tag generates the option
list with the help of a data model for a <html:select>- or
<forms:select>-tag. The tag can thereby process some of the basic data
types of the framework.
Field Summary | |
private OptionListDesignModel |
designModel
The design model |
private org.apache.commons.logging.Log |
log
Commons Logging instance. |
private java.lang.String |
name
Field name |
private static long |
serialVersionUID
Serial Version UID |
private static java.lang.Class |
strutsSelectTag
Select Tag of the struts framework |
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 | |
OptionsTag()
Constructor |
Method Summary | |
int |
doEndTag()
|
int |
doStartTag()
|
OptionListDesignModel |
getDesignModel()
Retrieves or creates the design model |
protected java.lang.Object |
lookupBean()
Retrieves the bean which holds the Display Data or Control Instance |
void |
release()
|
void |
setEmpty(java.lang.String empty)
Specifies the label of an additional empty-entry. |
void |
setFilter(java.lang.String filter)
The automatic HTML coding of the column contents can be activated or disabled with the filter-attribute. |
void |
setImagemap(java.lang.String mapName)
Specifies the name of an image map which must be saved in the request. |
void |
setKeyProperty(java.lang.String keyProperty)
Specifies the name of the property which returns the key of the option. |
void |
setLabelProperty(java.lang.String labelProperty)
Specifies the name of the property which supplies the display text of the option. |
void |
setLocalize(java.lang.String localize)
If this flag is set to true the framework interprets all
labels as resource identifiers and localize them. |
void |
setMaxlength(java.lang.String maxlength)
Specifies the maximum number of characters that are displayed for the option elements |
void |
setName(java.lang.String name)
Specifies the name of the Java-Bean. |
void |
setPageContext(javax.servlet.jsp.PageContext pc)
|
void |
setProperty(java.lang.String property)
Specifies the name of the property using which the Java-Bean is to be accessed. |
void |
setRoot(java.lang.String value)
Specifies whether the root node of the tree structure (Level 0) should be displayed or whether the display should first start at the next tree level (Level 1). |
void |
setStyle(java.lang.String style)
An HTML-style can be directly specified with this attribute. |
void |
setStyleClass(java.lang.String styleClass)
The HTML-class attribute of the element can be specified with this attribute. |
void |
setTooltipProperty(java.lang.String tooltipProperty)
Specifies the name of the property which supplies the tooltip text of the option. |
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 static java.lang.Class strutsSelectTag
private transient org.apache.commons.logging.Log log
private java.lang.String name
private OptionListDesignModel designModel
Constructor Detail |
public OptionsTag()
Method Detail |
public void release()
Tag.release()
public void setPageContext(javax.servlet.jsp.PageContext pc)
Tag.setPageContext(PageContext pc)
public OptionListDesignModel getDesignModel()
protected java.lang.Object lookupBean() throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException
- Is thrown when the bean could not be foundpublic int doStartTag() throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException
Tag.doStartTag()
public int doEndTag() throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException
Tag.doEndTag()
public void setName(java.lang.String name)
name
- The name to setpublic void setProperty(java.lang.String property) throws javax.servlet.jsp.JspException
property
- The name of the property
javax.servlet.jsp.JspException
public void setStyle(java.lang.String style)
style
- The style to setpublic void setStyleClass(java.lang.String styleClass)
styleClass
- The styleClass to setpublic void setEmpty(java.lang.String empty)
empty
- The text to display for the user to make a selection like "public void setKeyProperty(java.lang.String keyProperty)
keyProperty
- The keyProperty to setpublic void setLabelProperty(java.lang.String labelProperty)
labelProperty
- The labelProperty to setpublic void setTooltipProperty(java.lang.String tooltipProperty)
tooltipProperty
- The tooltip Property to setpublic void setMaxlength(java.lang.String maxlength) throws javax.servlet.jsp.JspException
maxlength
- The maximum number of characters
javax.servlet.jsp.JspException
- If the Argument can't be converted to integerpublic void setFilter(java.lang.String filter) throws javax.servlet.jsp.JspException
true
filter
- true
if the column content should be HTML
encoded.
javax.servlet.jsp.JspException
- If the Argument can't be converted to booleanpublic void setLocalize(java.lang.String localize) throws javax.servlet.jsp.JspException
true
the framework interprets all
labels as resource identifiers and localize them. If the flag is set to
false
the labels are treated as string literals without
localization.
localize
- Localization setting for the option list
javax.servlet.jsp.JspException
- If the Argument can't be converted to booleanpublic void setImagemap(java.lang.String mapName) throws javax.servlet.jsp.JspException
mapName
- The ImageMap to assign
javax.servlet.jsp.JspException
- If the ImageMap can not be foundpublic void setRoot(java.lang.String value) throws javax.servlet.jsp.JspException
value
- false
if the root element should not be
displayed
javax.servlet.jsp.JspException
- if the argument can not be converted to a boolean value
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |