Class 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 Details

  • 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 class StylableTag
    • 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'.
      Overrides:
      setTitle in class Button
    • getFullClass

      public String getFullClass​(String... extraClasses)
      Make sure that "auto-init" is added to the class attribute.
      Overrides:
      getFullClass in class StylableTag
      Parameters:
      extraClasses - Additional classes that should also be added
      Returns:
      The combined class or null if no class has been set