Package net.sf.basedb.clients.web.taglib
Class CalendarButton
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
net.sf.basedb.clients.web.taglib.StylableTag
net.sf.basedb.clients.web.taglib.Button
net.sf.basedb.clients.web.taglib.CalendarButton
- All Implemented Interfaces:
Serializable
,DynamicAttributes
,IterationTag
,JspTag
,Tag
,DynamicActionAttributes
A special button tag that is used to display a "Calendar" button
that opens a popup for selecting a date and time. The id of
a form control must be specified in the "textarea" attribute.
- Since:
- 3.3
- Author:
- nicklas
- See Also:
-
Field Summary
FieldsFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFullClass
(String... extraClasses) Make sure that "auto-init" is added to the class attribute.protected void
Initialize default attributes.void
setTextarea
(String textarea) void
The title attribute now goes into the calendar popup dialog instead.Methods inherited from class net.sf.basedb.clients.web.taglib.Button
doStartTag, getId, getImage, getTabindex, getTitle, getTooltip, isDisabled, isVisible, setDisabled, setImage, setTabindex, setTooltip, setVisible
Methods inherited from class net.sf.basedb.clients.web.taglib.StylableTag
addDynamicAttributes, addIdAndStyles, getClazz, getDynamicActionAttributes, getDynamicAttribute, getIdPrefix, getStyle, getSubclass, setClazz, setDynamicAttribute, setMoreDynamicAttributes, setPageContext, setStyle, setSubclass
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, findAncestorWithClass, getParent, getValue, getValues, release, removeValue, setId, setParent, setValue
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
CalendarButton
public CalendarButton()
-
-
Method Details
-
initDefaultAttributes
protected void initDefaultAttributes()Description copied from class:StylableTag
Initialize default attributes. Can be called multiple times (once before each tag is used/re-used). This default implementation does nothing.- Overrides:
initDefaultAttributes
in classStylableTag
-
setTextarea
-
setTitle
The title attribute now goes into the calendar popup dialog instead. The button's title is fixed at 'Calendar'. -
getFullClass
Make sure that "auto-init" is added to the class attribute.- Overrides:
getFullClass
in classStylableTag
- Parameters:
extraClasses
- Additional classes that should also be added- Returns:
- The combined class or null if no class has been set
-