Class CalendarButtonConfig
java.lang.Object
fr.paris.lutece.plugins.appointment.business.display.CalendarButtonConfig
- All Implemented Interfaces:
Serializable
Options of the "add to calendar" button shown on the confirmation page of an appointment. Stored as JSON in
appointment_display.calendar_button_config. An empty String means the default is used.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetColor()getLabel()booleanbooleanbooleanvoidsetAvailability(String strAvailability) voidsetButtonsLayout(String strButtonsLayout) voidsetButtonStyle(String strButtonStyle) voidvoidsetDisplayMode(String strDisplayMode) voidsetEnabled(boolean bEnabled) voidvoidsetLocation(String strLocation) voidsetOptions(List<String> listOptions) voidsetShowButtonIcon(boolean bShowButtonIcon) voidsetShowLinkIcons(boolean bShowLinkIcons) voidsetTrigger(String strTrigger)
-
Field Details
-
OPTION_GOOGLE
- See Also:
-
OPTION_OUTLOOKCOM
- See Also:
-
OPTION_MS365
- See Also:
-
OPTION_MSTEAMS
- See Also:
-
OPTION_YAHOO
- See Also:
-
OPTION_APPLE
- See Also:
-
OPTION_ICAL
- See Also:
-
VALUES_OPTIONS
-
VALUES_OPTIONS_ICS
-
DEFAULT_OPTIONS
-
DISPLAY_DROPDOWN
- See Also:
-
DISPLAY_BUTTONS
- See Also:
-
DISPLAY_CALENDAR
- See Also:
-
VALUES_DISPLAY_MODE
-
VALUES_TRIGGER
-
VALUES_BUTTONS_LAYOUT
-
VALUES_BUTTON_STYLE
-
VALUES_COLOR
-
AVAILABILITY_BUSY
- See Also:
-
AVAILABILITY_FREE
- See Also:
-
VALUES_AVAILABILITY
-
-
Constructor Details
-
CalendarButtonConfig
public CalendarButtonConfig()
-
-
Method Details
-
isEnabled
public boolean isEnabled()- Returns:
- true if the button is displayed on the confirmation page, false by default
-
setEnabled
public void setEnabled(boolean bEnabled) - Parameters:
bEnabled- true to display the button on the confirmation page
-
getOptions
- Returns:
- the calendars proposed, in the order of VALUES_OPTIONS
-
setOptions
- Parameters:
listOptions- the calendars proposed
-
getLabel
- Returns:
- the button text, empty for the default text
-
setLabel
- Parameters:
strLabel- the button text
-
getColor
- Returns:
- the Bootstrap color of the button, also the accent of the predefined styles
-
setColor
- Parameters:
strColor- the Bootstrap color of the button
-
getDisplayMode
- Returns:
- how the calendars are proposed: dropdown, buttons (one button per calendar) or calendar (event card with a "+" menu)
-
setDisplayMode
- Parameters:
strDisplayMode- how the calendars are proposed
-
getButtonsLayout
- Returns:
- row or column: the layout of the buttons when one button per calendar is displayed
-
setButtonsLayout
- Parameters:
strButtonsLayout- row or column
-
getTrigger
- Returns:
- click or hover: what opens the menu of the "dropdown" and "calendar" displays
-
setTrigger
- Parameters:
strTrigger- click or hover
-
isShowButtonIcon
public boolean isShowButtonIcon()- Returns:
- true if the "Add to calendar" button shows its icon
-
setShowButtonIcon
public void setShowButtonIcon(boolean bShowButtonIcon) - Parameters:
bShowButtonIcon- true to show the icon of the "Add to calendar" button
-
isShowLinkIcons
public boolean isShowLinkIcons()- Returns:
- true if the links of the calendars show the icon of their service
-
setShowLinkIcons
public void setShowLinkIcons(boolean bShowLinkIcons) - Parameters:
bShowLinkIcons- true to show the icon of the service on the links of the calendars
-
getButtonStyle
- Returns:
- the predefined style of the buttons; bootstrap uses the Bootstrap button of the color
-
setButtonStyle
- Parameters:
strButtonStyle- the predefined style of the buttons
-
getLocation
- Returns:
- the event location, empty for the address of the form
-
setLocation
- Parameters:
strLocation- the event location
-
getAvailability
- Returns:
- busy or free, empty for the setting of the calendar of the user
-
setAvailability
- Parameters:
strAvailability- busy or free
-