Class CalendarEvent
- java.lang.Object
-
- com.googlecode.wicket.jquery.ui.calendar.CalendarEvent
-
- All Implemented Interfaces:
Serializable
public class CalendarEvent extends Object implements Serializable
Provides a base bean that can be used with aCalendarModel- Author:
- Sebastien Briquet - sebfz1
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CalendarEvent(String id, String title, LocalDateTime date)CalendarEvent(String id, String title, LocalDateTime start, LocalDateTime end)CalendarEvent(String title, LocalDateTime date)CalendarEvent(String title, LocalDateTime start, LocalDateTime end)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(ICalendarVisitor visitor)Visitor accept methodprotected com.googlecode.wicket.jquery.core.OptionscreateOptions()Create anOptionsJSON-object that will embed the (default) properties of thisCalendarEventStringgetBackgroundColor()StringgetBorderColor()StringgetClassName()StringgetColor()LocalDateTimegetEnd()StringgetId()StringgetSource()LocalDateTimegetStart()StringgetTextColor()StringgetTitle()CharSequencegetUrl()BooleanisAllDay()BooleanisEditable()Overrides the master editable option for this single event.voidsetAllDay(Boolean allDay)voidsetBackgroundColor(String backgroundColor)voidsetBorderColor(String borderColor)voidsetClassName(String className)voidsetColor(String color)voidsetColor(String backgroundColor, String borderColor)voidsetEditable(Boolean editable)voidsetEnd(LocalDateTime end)voidsetId(String id)voidsetSource(String source)voidsetStart(LocalDateTime start)voidsetTextColor(String textColor)voidsetTitle(String title)voidsetUrl(CharSequence url)StringtoString()Gets the JSON representation of thisCalendarEvent
-
-
-
Constructor Detail
-
CalendarEvent
public CalendarEvent(String title, LocalDateTime date)
-
CalendarEvent
public CalendarEvent(String title, LocalDateTime start, LocalDateTime end)
-
CalendarEvent
public CalendarEvent(String id, String title, LocalDateTime date)
-
CalendarEvent
public CalendarEvent(String id, String title, LocalDateTime start, LocalDateTime end)
-
-
Method Detail
-
getId
public String getId()
-
setId
public void setId(String id)
-
getUrl
public CharSequence getUrl()
-
setUrl
public void setUrl(CharSequence url)
-
getTitle
public String getTitle()
-
setTitle
public void setTitle(String title)
-
getSource
public String getSource()
-
setSource
public void setSource(String source)
-
isAllDay
public Boolean isAllDay()
-
setAllDay
public void setAllDay(Boolean allDay)
-
getStart
public LocalDateTime getStart()
-
setStart
public void setStart(LocalDateTime start)
-
getEnd
public LocalDateTime getEnd()
-
setEnd
public void setEnd(LocalDateTime end)
-
isEditable
public Boolean isEditable()
Overrides the master editable option for this single event.- Returns:
- true or false
-
setEditable
public void setEditable(Boolean editable)
-
getClassName
public String getClassName()
-
setClassName
public void setClassName(String className)
-
getColor
public String getColor()
-
setColor
public void setColor(String color)
-
getBackgroundColor
public String getBackgroundColor()
-
setBackgroundColor
public void setBackgroundColor(String backgroundColor)
-
getBorderColor
public String getBorderColor()
-
setBorderColor
public void setBorderColor(String borderColor)
-
getTextColor
public String getTextColor()
-
setTextColor
public void setTextColor(String textColor)
-
createOptions
protected com.googlecode.wicket.jquery.core.Options createOptions()
Create anOptionsJSON-object that will embed the (default) properties of thisCalendarEvent- Returns:
- a new
Optionsobject
-
toString
public String toString()
Gets the JSON representation of thisCalendarEvent
-
accept
public final void accept(ICalendarVisitor visitor)
Visitor accept method- Parameters:
visitor- theICalendarVisitor
-
-