Class ShortcutOptionsTag
- java.lang.Object
-
- javax.servlet.jsp.tagext.TagSupport
-
- javax.servlet.jsp.tagext.BodyTagSupport
-
- com.microstrategy.web.app.taglibs.AbstractBodyTag
-
- com.microstrategy.web.app.taglibs.ShortcutOptionsTag
-
- All Implemented Interfaces:
java.io.Serializable
,javax.servlet.jsp.tagext.BodyTag
,javax.servlet.jsp.tagext.IterationTag
,javax.servlet.jsp.tagext.JspTag
,javax.servlet.jsp.tagext.Tag
public class ShortcutOptionsTag extends AbstractBodyTag
- Since:
- MicroStrategy Web 7.3.1 or earlier
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ShortcutOptionsTag()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
doAfterBody()
This method is called after the JSP engine processes the body content of the tag.int
doStartTag()
Process the start tag for this instance.AbstractBodyTagHelper
getHelper()
Method for retrieving the helper associated with the tag.void
setSelected(java.lang.String value)
Indicates which element of the shorcut list shall be marked as selected.void
setShortcutClass(java.lang.String value)
Indicates the css class that will be applied to the not-selected element displayed.void
setShortcutSelectedClass(java.lang.String value)
Indicates the class that will be applied to the selected element displayed.void
setType(java.lang.String value)
Indicates the type or name of shortcut list to display.void
setUcase(boolean value)
Indicates the upper case property, for displaying the options all in upper case or as defined in the list.-
Methods inherited from class com.microstrategy.web.app.taglibs.AbstractBodyTag
doEndTag, release
-
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doInitBody, getBodyContent, getPreviousOut, setBodyContent
-
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
-
-
-
-
Method Detail
-
doStartTag
public int doStartTag() throws javax.servlet.jsp.JspException
Process the start tag for this instance. The doStartTag() method assumes that all setter methods have been invoked before.- Specified by:
doStartTag
in interfacejavax.servlet.jsp.tagext.Tag
- Overrides:
doStartTag
in classAbstractBodyTag
- Returns:
- EVAL_BODY_BUFFERED if the tag wants to process body, SKIP_BODY if it does ont want to process it.
- Throws:
javax.servlet.jsp.JspException
- if an error is risen when displaying the custom tag contents
-
doAfterBody
public int doAfterBody() throws javax.servlet.jsp.JspException
This method is called after the JSP engine processes the body content of the tag. Not invoked in empty tags or in tags returning SKIP_BODY in doStartTag() This method is invoked after every body evaluation.- Specified by:
doAfterBody
in interfacejavax.servlet.jsp.tagext.IterationTag
- Overrides:
doAfterBody
in classAbstractBodyTag
- Returns:
- EVAL_BODY_AGAIN if the JSP engine should evaluate the tag body again, otherwise return SKIP_BODY.
- Throws:
javax.servlet.jsp.JspException
- if an error is risen when displaying the custom tag contents
-
getHelper
public AbstractBodyTagHelper getHelper()
Method for retrieving the helper associated with the tag.- Specified by:
getHelper
in classAbstractBodyTag
- Returns:
- an instance of
AbstractBodyTagHelper
which will take care of processing and rendering the HTML contents associated with this tag.
-
setShortcutClass
public void setShortcutClass(java.lang.String value)
Indicates the css class that will be applied to the not-selected element displayed.
All the elements that are not marked as selected will use this css formatting when rendered.- Parameters:
value
-String
value of the CSS class to apply
-
setShortcutSelectedClass
public void setShortcutSelectedClass(java.lang.String value)
Indicates the class that will be applied to the selected element displayed.
The element marked as selected in the collection of shortcuts to render will use this css formatting. For marking an element as selected, its definition on theShortcutList
will have to include it, or if the selected attribute indicates which one it is.- Parameters:
value
-String
value of the CSS class to apply to the selected shortcut.
-
setType
public void setType(java.lang.String value)
Indicates the type or name of shortcut list to display.
Usage:
In the out-of-the-box application samples of shortcut lists that can be rendered using these custom tags includetoolbar
andhelp
.- Parameters:
value
-String
value of the type of shortcut list to display
-
setUcase
public void setUcase(boolean value)
Indicates the upper case property, for displaying the options all in upper case or as defined in the list.
Usage:
If setting this property to true, the elements of the shortcut list to be displayed will be rendered all in upper case. By specifying false as value, or no attribute value defined, the name of the elements will be displayed as specified on the list.- Parameters:
value
-boolean value defining the upper case flag
-
setSelected
public void setSelected(java.lang.String value)
Indicates which element of the shorcut list shall be marked as selected.
Usage:
The element of the list to be marked as selected can be defined with this attribute, by setting as value the identifier (name) of it.- Parameters:
value
-String
value with the name of the shortcut to be marked as selected.
-
-