Class IExtCalendarMgr.ExtCalendarInfo

java.lang.Object
org.eclnt.jsfserver.calendar.IExtCalendarMgr.ExtCalendarInfo
Enclosing interface:
IExtCalendarMgr

public static class IExtCalendarMgr.ExtCalendarInfo extends Object
Information about a day that is a non-working day.
  • Constructor Details

    • ExtCalendarInfo

      public ExtCalendarInfo(Date date)
    • ExtCalendarInfo

      public ExtCalendarInfo(Date date, String comment)
    • ExtCalendarInfo

      public ExtCalendarInfo(Date date, String comment, boolean selectable)
    • ExtCalendarInfo

      public ExtCalendarInfo(Date date, String comment, boolean selectable, String background)
    • ExtCalendarInfo

      public ExtCalendarInfo(Date date, String comment, boolean selectable, String background, boolean warningOnSelection)
  • Method Details

    • getDate

      public Date getDate()
    • getComment

      public String getComment()
    • getComment

      public String getComment(String language)
    • addCommentTranslation

      public void addCommentTranslation(String language, String comment)
    • isSelectable

      public boolean isSelectable()
      By default each date is selectable - so "true" is returned. You need to explicit pass "false" by usgin the constructor, in which you pass parameter "selectable".
      And...: there is an "overall" decision within the control, which is defined via attribute CALENDARFIELD-EXTCALENDARMODE. If this is defined in a way so that "special" days are not selectable, then the control decision overrides this method.
    • getWarningOnSelection

      public boolean getWarningOnSelection()
      By default a warning method is opened up on client side when the user selects a date that holds a comment. You may switch off this behavior by setting "warningOnSelection" to false.
    • getBackground

      public String getBackground()
      By default "special days" receive a highlight color, that is defined within the calendar component's management. You can also explicitly assign a color.
    • setComment

      public void setComment(String comment)
    • setSelectable

      public void setSelectable(boolean selectable)
    • setBackground

      public void setBackground(String background)
    • setWarningOnSelection

      public void setWarningOnSelection(boolean warningOnSelection)