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
Provides an event source Object
- Author:
- Sebastien Briquet - sebfz1
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected com.googlecode.wicket.jquery.core.OptionsGets the allDayDefault option, but only for this source.Gets Event Object's backgroundColor for this source.Gets Event Object's borderColor for this source.Gets Event Object's className for this source.getColor()Gets Event Object's color for this source.Gets Event Object's constraint for this source.Gets every Event Object's durationEditable for this source.Gets Event Object's editable for this source.Gets the eventDataTransform callback, but only for this source.Gets Event Object's overlap for this source.Gets Event Object's rendering for this source.Gets every Event Object's startEditable for this source.Gets Event Object's textColor for this source.setAllDayDefault(Boolean allDay) Sets the allDayDefault option, but only for this source.setBackgroundColor(String color) Sets every Event Object's backgroundColor for this source.setBorderColor(String color) Sets every Event Object's borderColor for this source.setClassName(String name) Sets every Event Object's className for this source.Sets every Event Object's color for this source.setConstraint(String constraint) Sets every Event Object's constraint for this source.setDurationEditable(Boolean editable) Sets every Event Object's durationEditable for this source.setEditable(Boolean editable) Sets every Event Object's editable for this source.setEventDataTransform(String function) Sets the eventDataTransform callback, but only for this source.setOverlap(Boolean overlap) Sets every Event Object's overlap for this source.setRendering(String rendering) Sets every Event Object's rendering for this source.setStartEditable(Boolean editable) Sets every Event Object's startEditable for this source.setTextColor(String color) Sets every Event Object's textColor for this source.toString()Gets the JSON representation of thisEventSource
-
Constructor Details
-
EventSource
public EventSource()Constructor
-
-
Method Details
-
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
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
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
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
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
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
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
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
Gets Event Object's className for this source.- Returns:
- the CSS class name, can be an array.
-
setClassName
Sets every Event Object's className for this source.- Parameters:
name- the CSS class name, can be an array.- Returns:
- this, for chaining
-
getEditable
Gets Event Object's editable for this source.- Returns:
- true or false
-
setEditable
Sets every Event Object's editable for this source.- Parameters:
editable- true or false- Returns:
- this, for chaining
-
getStartEditable
Gets every Event Object's startEditable for this source.- Returns:
- true or false
-
setStartEditable
Sets every Event Object's startEditable for this source.- Parameters:
editable- true or false- Returns:
- this, for chaining
-
getDurationEditable
Gets every Event Object's durationEditable for this source.- Returns:
- true or false
-
setDurationEditable
Sets every Event Object's durationEditable for this source.- Parameters:
editable- true or false- Returns:
- this, for chaining
-
getRendering
Gets Event Object's rendering for this source.- Returns:
- empty, "background", or "inverse-background"
-
setRendering
Sets every Event Object's rendering for this source.- Parameters:
rendering- empty, "background", or "inverse-background"- Returns:
- this, for chaining
-
getOverlap
Gets Event Object's overlap for this source.- Returns:
- true or false
-
setOverlap
Sets every Event Object's overlap for this source.- Parameters:
overlap- true or false- Returns:
- this, for chaining
-
getConstraint
Gets Event Object's constraint for this source.- Returns:
- an event ID, "businessHours", object.
-
setConstraint
Sets every Event Object's constraint for this source.- Parameters:
constraint- an event ID, "businessHours", object.- Returns:
- this, for chaining
-
getAllDayDefault
Gets the allDayDefault option, but only for this source.- Returns:
- true or false
-
setAllDayDefault
Sets the allDayDefault option, but only for this source.- Parameters:
allDay- true or false- Returns:
- this, for chaining
-
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
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
Gets the JSON representation of thisEventSource
-