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:
  • Constructor Details

    • EventSource

      public EventSource()
      Constructor
  • Method Details

    • 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 this EventSource
      Overrides:
      toString in class Object