Package org.primefaces.model
Class DefaultScheduleEvent<T>
- java.lang.Object
-
- org.primefaces.model.DefaultScheduleEvent<T>
-
- All Implemented Interfaces:
Serializable
,ScheduleEvent<T>
public class DefaultScheduleEvent<T> extends Object implements ScheduleEvent<T>, Serializable
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DefaultScheduleEvent.Builder<T>
-
Constructor Summary
Constructors Constructor Description DefaultScheduleEvent()
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.primefaces.model.ScheduleEvent
isEditable
-
-
-
-
Method Detail
-
getId
public String getId()
- Specified by:
getId
in interfaceScheduleEvent<T>
-
setId
public void setId(String id)
- Specified by:
setId
in interfaceScheduleEvent<T>
-
getGroupId
public String getGroupId()
- Specified by:
getGroupId
in interfaceScheduleEvent<T>
-
setGroupId
public void setGroupId(String groupId)
-
getTitle
public String getTitle()
- Specified by:
getTitle
in interfaceScheduleEvent<T>
-
setTitle
public void setTitle(String title)
-
getStartDate
public LocalDateTime getStartDate()
- Specified by:
getStartDate
in interfaceScheduleEvent<T>
-
setStartDate
public void setStartDate(LocalDateTime startDate)
- Specified by:
setStartDate
in interfaceScheduleEvent<T>
-
getEndDate
public LocalDateTime getEndDate()
- Specified by:
getEndDate
in interfaceScheduleEvent<T>
-
setEndDate
public void setEndDate(LocalDateTime endDate)
- Specified by:
setEndDate
in interfaceScheduleEvent<T>
-
isAllDay
public boolean isAllDay()
- Specified by:
isAllDay
in interfaceScheduleEvent<T>
-
setAllDay
public void setAllDay(boolean allDay)
- Specified by:
setAllDay
in interfaceScheduleEvent<T>
-
setStyleClass
public void setStyleClass(String styleClass)
-
getStyleClass
public String getStyleClass()
- Specified by:
getStyleClass
in interfaceScheduleEvent<T>
-
getData
public T getData()
- Specified by:
getData
in interfaceScheduleEvent<T>
-
setData
public void setData(T data)
-
isDraggable
public Boolean isDraggable()
- Specified by:
isDraggable
in interfaceScheduleEvent<T>
- Returns:
- Whether the event should be draggable. Returning
null
means that the default of the schedule is applied. Otherwise, this setting overrides the default of the schedule.
-
isResizable
public Boolean isResizable()
- Specified by:
isResizable
in interfaceScheduleEvent<T>
- Returns:
- Whether the event should be resizable. Returning
null
means that the default of the schedule is applied. Otherwise, this setting overrides the default of the schedule.
-
isOverlapAllowed
public boolean isOverlapAllowed()
- Specified by:
isOverlapAllowed
in interfaceScheduleEvent<T>
-
setOverlapAllowed
public void setOverlapAllowed(boolean overlapAllowed)
-
setEditable
public void setEditable(boolean editable)
Shortcut for calling bothsetDraggable(Boolean)
andsetResizable(Boolean)
.
-
setDraggable
public void setDraggable(Boolean draggable)
- Parameters:
draggable
- Whether the event should be draggable. Settingnull
means that the default of the schedule is applied. Otherwise, this setting overrides the default of the schedule.
-
setResizable
public void setResizable(Boolean resizable)
- Parameters:
resizable
- Whether the event should be resizable. Settingnull
means that the default of the schedule is applied. Otherwise, this setting overrides the default of the schedule.
-
getDescription
public String getDescription()
- Specified by:
getDescription
in interfaceScheduleEvent<T>
-
setDescription
public void setDescription(String description)
-
getUrl
public String getUrl()
- Specified by:
getUrl
in interfaceScheduleEvent<T>
-
setUrl
public void setUrl(String url)
-
getDisplay
public String getDisplay()
Description copied from interface:ScheduleEvent
The 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:
getDisplay
in interfaceScheduleEvent<T>
-
setDisplay
public void setDisplay(String display)
-
getBackgroundColor
public String getBackgroundColor()
- Specified by:
getBackgroundColor
in interfaceScheduleEvent<T>
-
setBackgroundColor
public void setBackgroundColor(String backgroundColor)
-
getBorderColor
public String getBorderColor()
- Specified by:
getBorderColor
in interfaceScheduleEvent<T>
-
setBorderColor
public void setBorderColor(String borderColor)
-
getTextColor
public String getTextColor()
- Specified by:
getTextColor
in interfaceScheduleEvent<T>
-
setTextColor
public void setTextColor(String textColor)
-
getRenderingMode
public ScheduleRenderingMode getRenderingMode()
- Specified by:
getRenderingMode
in interfaceScheduleEvent<T>
-
setRenderingMode
public void setRenderingMode(ScheduleRenderingMode renderingMode)
-
getDynamicProperties
public Map<String,Object> getDynamicProperties()
- Specified by:
getDynamicProperties
in interfaceScheduleEvent<T>
-
builder
public static <T> DefaultScheduleEvent.Builder<T> builder()
-
-