Package org.eclnt.jsfserver.calendar
Class IExtCalendarMgr.ExtCalendarInfo
java.lang.Object
org.eclnt.jsfserver.calendar.IExtCalendarMgr.ExtCalendarInfo
- Enclosing interface:
- IExtCalendarMgr
Information about a day that is a non-working day.
-
Constructor Summary
ConstructorDescriptionExtCalendarInfo
(Date date) ExtCalendarInfo
(Date date, String comment) ExtCalendarInfo
(Date date, String comment, boolean selectable) ExtCalendarInfo
(Date date, String comment, boolean selectable, String background) ExtCalendarInfo
(Date date, String comment, boolean selectable, String background, boolean warningOnSelection) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addCommentTranslation
(String language, String comment) By default "special days" receive a highlight color, that is defined within the calendar component's management.getComment
(String language) getDate()
boolean
By default a warning method is opened up on client side when the user selects a date that holds a comment.boolean
By default each date is selectable - so "true" is returned.void
setBackground
(String background) void
setComment
(String comment) void
setSelectable
(boolean selectable) void
setWarningOnSelection
(boolean warningOnSelection)
-
Constructor Details
-
ExtCalendarInfo
-
ExtCalendarInfo
-
ExtCalendarInfo
-
ExtCalendarInfo
-
ExtCalendarInfo
-
-
Method Details
-
getDate
-
getComment
-
getComment
-
addCommentTranslation
-
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
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
-
setSelectable
public void setSelectable(boolean selectable) -
setBackground
-
setWarningOnSelection
public void setWarningOnSelection(boolean warningOnSelection)
-