Package org.primefaces.model
Class DefaultScheduleEvent<T>
java.lang.Object
org.primefaces.model.DefaultScheduleEvent<T>
- All Implemented Interfaces:
Serializable,ScheduleEvent<T>
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> DefaultScheduleEvent.Builder<T>builder()booleangetData()The rendering type of this event.getId()getTitle()getUrl()inthashCode()booleanisAllDay()booleanvoidsetAllDay(boolean allDay) voidsetBackgroundColor(String backgroundColor) voidsetBorderColor(String borderColor) voidvoidsetDescription(String description) voidsetDisplay(ScheduleDisplayMode display) voidsetDraggable(Boolean draggable) setDynamicProperty(String key, Object value) voidsetEditable(boolean editable) Shortcut for calling bothsetDraggable(Boolean)andsetResizable(Boolean).voidsetEndDate(LocalDateTime endDate) voidsetGroupId(String groupId) voidvoidsetOverlapAllowed(boolean overlapAllowed) voidsetResizable(Boolean resizable) voidsetStartDate(LocalDateTime startDate) voidsetStyleClass(String styleClass) voidsetTextColor(String textColor) voidvoidtoString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.primefaces.model.ScheduleEvent
isEditable
-
Constructor Details
-
DefaultScheduleEvent
public DefaultScheduleEvent()
-
-
Method Details
-
getId
- Specified by:
getIdin interfaceScheduleEvent<T>
-
setId
- Specified by:
setIdin interfaceScheduleEvent<T>
-
getGroupId
- Specified by:
getGroupIdin interfaceScheduleEvent<T>
-
setGroupId
-
getTitle
- Specified by:
getTitlein interfaceScheduleEvent<T>
-
setTitle
-
getStartDate
- Specified by:
getStartDatein interfaceScheduleEvent<T>
-
setStartDate
- Specified by:
setStartDatein interfaceScheduleEvent<T>
-
getEndDate
- Specified by:
getEndDatein interfaceScheduleEvent<T>
-
setEndDate
- Specified by:
setEndDatein interfaceScheduleEvent<T>
-
isAllDay
public boolean isAllDay()- Specified by:
isAllDayin interfaceScheduleEvent<T>
-
setAllDay
public void setAllDay(boolean allDay) - Specified by:
setAllDayin interfaceScheduleEvent<T>
-
setStyleClass
-
getStyleClass
- Specified by:
getStyleClassin interfaceScheduleEvent<T>
-
getData
- Specified by:
getDatain interfaceScheduleEvent<T>
-
setData
-
isDraggable
- Specified by:
isDraggablein interfaceScheduleEvent<T>- Returns:
- Whether the event should be draggable. Returning
nullmeans that the default of the schedule is applied. Otherwise, this setting overrides the default of the schedule.
-
isResizable
- Specified by:
isResizablein interfaceScheduleEvent<T>- Returns:
- Whether the event should be resizable. Returning
nullmeans that the default of the schedule is applied. Otherwise, this setting overrides the default of the schedule.
-
isOverlapAllowed
public boolean isOverlapAllowed()- Specified by:
isOverlapAllowedin interfaceScheduleEvent<T>
-
setOverlapAllowed
public void setOverlapAllowed(boolean overlapAllowed) -
setEditable
public void setEditable(boolean editable) Shortcut for calling bothsetDraggable(Boolean)andsetResizable(Boolean). -
setDraggable
- Parameters:
draggable- Whether the event should be draggable. Settingnullmeans that the default of the schedule is applied. Otherwise, this setting overrides the default of the schedule.
-
setResizable
- Parameters:
resizable- Whether the event should be resizable. Settingnullmeans that the default of the schedule is applied. Otherwise, this setting overrides the default of the schedule.
-
getDescription
- Specified by:
getDescriptionin interfaceScheduleEvent<T>
-
setDescription
-
getUrl
- Specified by:
getUrlin interfaceScheduleEvent<T>
-
setUrl
-
getDisplay
Description copied from interface:ScheduleEventThe rendering type of this event. Can be 'auto', 'block', 'list-item', 'background', 'inverse-background', or 'none'. Events that appear as background highlights can be achieved by setting an Event Object’s display property to "background" or "inverse-background".- Specified by:
getDisplayin interfaceScheduleEvent<T>
-
setDisplay
-
getBackgroundColor
- Specified by:
getBackgroundColorin interfaceScheduleEvent<T>
-
setBackgroundColor
-
getBorderColor
- Specified by:
getBorderColorin interfaceScheduleEvent<T>
-
setBorderColor
-
getTextColor
- Specified by:
getTextColorin interfaceScheduleEvent<T>
-
setTextColor
-
getDynamicProperties
- Specified by:
getDynamicPropertiesin interfaceScheduleEvent<T>
-
setDynamicProperty
-
equals
-
hashCode
public int hashCode() -
toString
-
builder
-