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
ConstructorsConstructorDescriptionExtCalendarInfo(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 TypeMethodDescriptionvoidaddCommentTranslation(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()booleanBy default a warning method is opened up on client side when the user selects a date that holds a comment.booleanBy default each date is selectable - so "true" is returned.voidsetBackground(String background) voidsetComment(String comment) voidsetSelectable(boolean selectable) voidsetWarningOnSelection(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)
-