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
public class CalendarButton extends Button
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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
-
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
Constructors Constructor Description CalendarButton()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getFullClass(String... extraClasses)
Make sure that "auto-init" is added to the class attribute.protected void
initDefaultAttributes()
Initialize default attributes.void
setTextarea(String textarea)
void
setTitle(String title)
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 Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Method Detail
-
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
public void setTextarea(String textarea)
-
setTitle
public void setTitle(String title)
The title attribute now goes into the calendar popup dialog instead. The button's title is fixed at 'Calendar'.
-
getFullClass
public String getFullClass(String... extraClasses)
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
-
-