Class EventSource
- java.lang.Object
-
- com.googlecode.wicket.jquery.ui.calendar.EventSource
-
- All Implemented Interfaces:
Serializable,org.apache.wicket.util.io.IClusterable
- Direct Known Subclasses:
EventSource.GoogleCalendar
public class EventSource extends Object implements org.apache.wicket.util.io.IClusterable
Provides an event source Object- Author:
- Sebastien Briquet - sebfz1
- See Also:
- http://fullcalendar.io/docs/event_data/Event_Source_Object/, Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEventSource.GoogleCalendarProvides a Google CalendarEventSource
-
Constructor Summary
Constructors Constructor Description EventSource()Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.googlecode.wicket.jquery.core.OptionscreateOptions()BooleangetAllDayDefault()Gets the allDayDefault option, but only for this source.StringgetBackgroundColor()Gets Event Object's backgroundColor for this source.StringgetBorderColor()Gets Event Object's borderColor for this source.StringgetClassName()Gets Event Object's className for this source.StringgetColor()Gets Event Object's color for this source.StringgetConstraint()Gets Event Object's constraint for this source.BooleangetDurationEditable()Gets every Event Object's durationEditable for this source.BooleangetEditable()Gets Event Object's editable for this source.StringgetEventDataTransform()Gets the eventDataTransform callback, but only for this source.BooleangetOverlap()Gets Event Object's overlap for this source.StringgetRendering()Gets Event Object's rendering for this source.BooleangetStartEditable()Gets every Event Object's startEditable for this source.StringgetTextColor()Gets Event Object's textColor for this source.EventSourcesetAllDayDefault(Boolean allDay)Sets the allDayDefault option, but only for this source.EventSourcesetBackgroundColor(String color)Sets every Event Object's backgroundColor for this source.EventSourcesetBorderColor(String color)Sets every Event Object's borderColor for this source.EventSourcesetClassName(String name)Sets every Event Object's className for this source.EventSourcesetColor(String color)Sets every Event Object's color for this source.EventSourcesetConstraint(String constraint)Sets every Event Object's constraint for this source.EventSourcesetDurationEditable(Boolean editable)Sets every Event Object's durationEditable for this source.EventSourcesetEditable(Boolean editable)Sets every Event Object's editable for this source.EventSourcesetEventDataTransform(String function)Sets the eventDataTransform callback, but only for this source.EventSourcesetOverlap(Boolean overlap)Sets every Event Object's overlap for this source.EventSourcesetRendering(String rendering)Sets every Event Object's rendering for this source.EventSourcesetStartEditable(Boolean editable)Sets every Event Object's startEditable for this source.EventSourcesetTextColor(String color)Sets every Event Object's textColor for this source.StringtoString()Gets the JSON representation of thisEventSource
-
-
-
Method Detail
-
getColor
public String getColor()
Gets Event Object's color for this source.- Returns:
- any of the CSS color formats such #f00, #ff0000, rgb(255,0,0), or red.
-
setColor
public EventSource setColor(String color)
Sets every Event Object's color for this source.- Parameters:
color- any of the CSS color formats such #f00, #ff0000, rgb(255,0,0), or red.- Returns:
- this, for chaining
-
getBackgroundColor
public String getBackgroundColor()
Gets Event Object's backgroundColor for this source.- Returns:
- any of the CSS color formats such #f00, #ff0000, rgb(255,0,0), or red.
-
setBackgroundColor
public EventSource setBackgroundColor(String color)
Sets every Event Object's backgroundColor for this source.- Parameters:
color- any of the CSS color formats such #f00, #ff0000, rgb(255,0,0), or red.- Returns:
- this, for chaining
-
getBorderColor
public String getBorderColor()
Gets Event Object's borderColor for this source.- Returns:
- any of the CSS color formats such #f00, #ff0000, rgb(255,0,0), or red.
-
setBorderColor
public EventSource setBorderColor(String color)
Sets every Event Object's borderColor for this source.- Parameters:
color- any of the CSS color formats such #f00, #ff0000, rgb(255,0,0), or red.- Returns:
- this, for chaining
-
getTextColor
public String getTextColor()
Gets Event Object's textColor for this source.- Returns:
- any of the CSS color formats such #f00, #ff0000, rgb(255,0,0), or red.
-
setTextColor
public EventSource setTextColor(String color)
Sets every Event Object's textColor for this source.- Parameters:
color- any of the CSS color formats such #f00, #ff0000, rgb(255,0,0), or red.- Returns:
- this, for chaining
-
getClassName
public String getClassName()
Gets Event Object's className for this source.- Returns:
- the CSS class name, can be an array.
-
setClassName
public EventSource setClassName(String name)
Sets every Event Object's className for this source.- Parameters:
name- the CSS class name, can be an array.- Returns:
- this, for chaining
-
getEditable
public Boolean getEditable()
Gets Event Object's editable for this source.- Returns:
- true or false
-
setEditable
public EventSource setEditable(Boolean editable)
Sets every Event Object's editable for this source.- Parameters:
editable- true or false- Returns:
- this, for chaining
-
getStartEditable
public Boolean getStartEditable()
Gets every Event Object's startEditable for this source.- Returns:
- true or false
-
setStartEditable
public EventSource setStartEditable(Boolean editable)
Sets every Event Object's startEditable for this source.- Parameters:
editable- true or false- Returns:
- this, for chaining
-
getDurationEditable
public Boolean getDurationEditable()
Gets every Event Object's durationEditable for this source.- Returns:
- true or false
-
setDurationEditable
public EventSource setDurationEditable(Boolean editable)
Sets every Event Object's durationEditable for this source.- Parameters:
editable- true or false- Returns:
- this, for chaining
-
getRendering
public String getRendering()
Gets Event Object's rendering for this source.- Returns:
- empty, "background", or "inverse-background"
-
setRendering
public EventSource setRendering(String rendering)
Sets every Event Object's rendering for this source.- Parameters:
rendering- empty, "background", or "inverse-background"- Returns:
- this, for chaining
-
getOverlap
public Boolean getOverlap()
Gets Event Object's overlap for this source.- Returns:
- true or false
-
setOverlap
public EventSource setOverlap(Boolean overlap)
Sets every Event Object's overlap for this source.- Parameters:
overlap- true or false- Returns:
- this, for chaining
-
getConstraint
public String getConstraint()
Gets Event Object's constraint for this source.- Returns:
- an event ID, "businessHours", object.
-
setConstraint
public EventSource setConstraint(String constraint)
Sets every Event Object's constraint for this source.- Parameters:
constraint- an event ID, "businessHours", object.- Returns:
- this, for chaining
-
getAllDayDefault
public Boolean getAllDayDefault()
Gets the allDayDefault option, but only for this source.- Returns:
- true or false
-
setAllDayDefault
public EventSource setAllDayDefault(Boolean allDay)
Sets the allDayDefault option, but only for this source.- Parameters:
allDay- true or false- Returns:
- this, for chaining
-
getEventDataTransform
public String getEventDataTransform()
Gets the eventDataTransform callback, but only for this source.- Returns:
- a function that must return a new object in the Event Object format.
-
setEventDataTransform
public EventSource setEventDataTransform(String function)
Sets the eventDataTransform callback, but only for this source.- Parameters:
function- a function that must return a new object in the Event Object format.- Returns:
- this, for chaining
-
createOptions
protected com.googlecode.wicket.jquery.core.Options createOptions()
-
toString
public String toString()
Gets the JSON representation of thisEventSource
-
-