Class CalendarButtonConfig

java.lang.Object
fr.paris.lutece.plugins.appointment.business.display.CalendarButtonConfig
All Implemented Interfaces:
Serializable

public final class CalendarButtonConfig extends Object implements 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 Details

  • 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

      public List<String> getOptions()
      Returns:
      the calendars proposed, in the order of VALUES_OPTIONS
    • setOptions

      public void setOptions(List<String> listOptions)
      Parameters:
      listOptions - the calendars proposed
    • getLabel

      public String getLabel()
      Returns:
      the button text, empty for the default text
    • setLabel

      public void setLabel(String strLabel)
      Parameters:
      strLabel - the button text
    • getColor

      public String getColor()
      Returns:
      the Bootstrap color of the button, also the accent of the predefined styles
    • setColor

      public void setColor(String strColor)
      Parameters:
      strColor - the Bootstrap color of the button
    • getDisplayMode

      public String getDisplayMode()
      Returns:
      how the calendars are proposed: dropdown, buttons (one button per calendar) or calendar (event card with a "+" menu)
    • setDisplayMode

      public void setDisplayMode(String strDisplayMode)
      Parameters:
      strDisplayMode - how the calendars are proposed
    • getButtonsLayout

      public String getButtonsLayout()
      Returns:
      row or column: the layout of the buttons when one button per calendar is displayed
    • setButtonsLayout

      public void setButtonsLayout(String strButtonsLayout)
      Parameters:
      strButtonsLayout - row or column
    • getTrigger

      public String getTrigger()
      Returns:
      click or hover: what opens the menu of the "dropdown" and "calendar" displays
    • setTrigger

      public void setTrigger(String strTrigger)
      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

      public String getButtonStyle()
      Returns:
      the predefined style of the buttons; bootstrap uses the Bootstrap button of the color
    • setButtonStyle

      public void setButtonStyle(String strButtonStyle)
      Parameters:
      strButtonStyle - the predefined style of the buttons
    • getLocation

      public String getLocation()
      Returns:
      the event location, empty for the address of the form
    • setLocation

      public void setLocation(String strLocation)
      Parameters:
      strLocation - the event location
    • getAvailability

      public String getAvailability()
      Returns:
      busy or free, empty for the setting of the calendar of the user
    • setAvailability

      public void setAvailability(String strAvailability)
      Parameters:
      strAvailability - busy or free