Class CalendarBehavior

java.lang.Object
org.apache.wicket.behavior.Behavior
com.googlecode.wicket.jquery.core.JQueryAbstractBehavior
com.googlecode.wicket.jquery.core.JQueryBehavior
com.googlecode.wicket.jquery.ui.calendar.CalendarBehavior
All Implemented Interfaces:
com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware, Serializable, org.apache.wicket.IComponentAwareEventSink, org.apache.wicket.markup.html.IComponentAwareHeaderContributor, org.apache.wicket.util.io.IClusterable

public class CalendarBehavior extends com.googlecode.wicket.jquery.core.JQueryBehavior implements com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware
Provides the jQuery fullCalendar behavior
Author:
Sebastien Briquet - sebfz1
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    protected static class 
    Provides an event object that will be broadcasted by the CalendarBehavior.OnEventClickAjaxBehavior callback
    protected static class 
    Provides an event object that will be broadcasted by the CalendarBehavior.OnDayClickAjaxBehavior callback
    protected static class 
    Provides a base class for CalendarBehavior event objects that contain a delta time
    protected static class 
    Provides an event object that will be broadcasted by the CalendarBehavior.OnEventDropAjaxBehavior callback
    protected static class 
    Provides an event object that will be broadcasted by the CalendarBehavior.OnObjectDropAjaxBehavior callback
    protected static class 
    Provides a JQueryAjaxBehavior that aims to be wired to the 'dayClick' event
    protected static class 
    Provides a JQueryAjaxBehavior that aims to be wired to the 'eventClick' event
    protected static class 
    Provides a JQueryAjaxBehavior that aims to be wired to the 'eventDrop' event
    protected static class 
    Provides a JQueryAjaxBehavior that aims to be wired to the 'eventResize' event
    protected static class 
    Provides a JQueryAjaxBehavior that aims to be wired to the 'drop' event
    protected static class 
    Provides a JQueryAjaxBehavior that aims to be wired to the 'select' event
    protected static class 
    Provides a JQueryAjaxBehavior that aims to be wired to the 'viewRender' event
    protected static class 
    Provides an event object that will be broadcasted by the CalendarBehavior.OnEventResizeAjaxBehavior callback
    protected static class 
    Provides an event object that will be broadcasted by the CalendarBehavior.OnSelectAjaxBehavior callback
    protected static class 
    Provides an event object that will be broadcasted by the CalendarBehavior.OnViewRenderAjaxBehavior callback
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     

    Fields inherited from class com.googlecode.wicket.jquery.core.JQueryBehavior

    method, options, selector
  • Constructor Summary

    Constructors
    Constructor
    Description
    CalendarBehavior(String selector, com.googlecode.wicket.jquery.core.Options options, ICalendarListener listener)
    Constructor
    Constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    bind(org.apache.wicket.Component component)
     
    protected boolean
    Indicates whether the Calendar will be editable
    protected com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior
    newOnDayClickAjaxBehavior(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source)
    Gets a new JQueryAjaxBehavior that will be wired to the 'dayClick' event, triggered when the user clicks on a day cell
    protected com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior
    newOnEventClickAjaxBehavior(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source)
    Gets a new JQueryAjaxBehavior that will be wired to the 'eventClick' event, triggered when the user clicks on an event
    protected com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior
    newOnEventDropAjaxBehavior(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source, CharSequence precondition)
    Gets a new JQueryAjaxBehavior that will be wired to the 'eventDrop' event, triggered when the user moves (drag & drop) an event
    protected com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior
    newOnEventResizeAjaxBehavior(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source, CharSequence precondition)
    Gets a new JQueryAjaxBehavior that will be wired to the 'eventResize' event, triggered when the user resizes an event
    protected com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior
    newOnObjectDropAjaxBehavior(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source)
    Gets a new JQueryAjaxBehavior that will be wired to the 'drop' event, triggered when the user drops an event object
    protected com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior
    newOnSelectAjaxBehavior(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source)
    Gets a new JQueryAjaxBehavior that will be wired to the 'select' event, triggered when the user select a cell range
    protected com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior
    newOnViewRenderAjaxBehavior(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source)
    Gets a new JQueryAjaxBehavior that will be wired to the 'viewRender' event, triggered when the user changes the view, or when any of the date navigation methods are called.
    void
    onAjax(org.apache.wicket.ajax.AjaxRequestTarget target, com.googlecode.wicket.jquery.core.JQueryEvent event)
     
    void
    onConfigure(org.apache.wicket.Component component)
     
    void
    renderHead(org.apache.wicket.Component component, org.apache.wicket.markup.head.IHeaderResponse response)
     

    Methods inherited from class com.googlecode.wicket.jquery.core.JQueryBehavior

    $, $, $, $, beforeRender, detach, getMethod, getOption, getOptions, getSelector, off, on, on, register, remove, setOption, setOption, setOption, setOptions, setSelector

    Methods inherited from class com.googlecode.wicket.jquery.core.JQueryAbstractBehavior

    add, getJQueryLibrarySettings, renderOnDomReadyScript, renderPriorityHeaderItem, toString

    Methods inherited from class org.apache.wicket.behavior.Behavior

    afterRender, canCallListener, detach, getStatelessHint, isEnabled, isTemporary, onAttribute, onComponentTag, onEvent, onException, onRemove, onTag, unbind

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

    • CalendarBehavior

      public CalendarBehavior(String selector, ICalendarListener listener)
      Constructor
      Parameters:
      selector - the html selector (ie: "#myId")
      listener - the ICalendarListener
    • CalendarBehavior

      public CalendarBehavior(String selector, com.googlecode.wicket.jquery.core.Options options, ICalendarListener listener)
      Constructor
      Parameters:
      selector - the html selector (ie: "#myId")
      options - the Options
      listener - the ICalendarListener
  • Method Details

    • bind

      public void bind(org.apache.wicket.Component component)
      Overrides:
      bind in class org.apache.wicket.behavior.Behavior
    • renderHead

      public void renderHead(org.apache.wicket.Component component, org.apache.wicket.markup.head.IHeaderResponse response)
      Specified by:
      renderHead in interface org.apache.wicket.markup.html.IComponentAwareHeaderContributor
      Overrides:
      renderHead in class com.googlecode.wicket.jquery.core.JQueryBehavior
    • isEditable

      protected boolean isEditable()
      Indicates whether the Calendar will be editable
      Returns:
      by default, true if ICalendarListener.isDayClickEnabled() is true or ICalendarListener.isEventClickEnabled() is true
    • onConfigure

      public void onConfigure(org.apache.wicket.Component component)
      Overrides:
      onConfigure in class com.googlecode.wicket.jquery.core.JQueryBehavior
    • onAjax

      public void onAjax(org.apache.wicket.ajax.AjaxRequestTarget target, com.googlecode.wicket.jquery.core.JQueryEvent event)
      Specified by:
      onAjax in interface com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware
    • newOnSelectAjaxBehavior

      protected com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior newOnSelectAjaxBehavior(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source)
      Gets a new JQueryAjaxBehavior that will be wired to the 'select' event, triggered when the user select a cell range
      Parameters:
      source - the IJQueryAjaxAware
      Returns:
      a new OnSelectAjaxBehavior by default
    • newOnDayClickAjaxBehavior

      protected com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior newOnDayClickAjaxBehavior(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source)
      Gets a new JQueryAjaxBehavior that will be wired to the 'dayClick' event, triggered when the user clicks on a day cell
      Parameters:
      source - the IJQueryAjaxAware
      Returns:
      a new OnDayClickAjaxBehavior by default
    • newOnEventClickAjaxBehavior

      protected com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior newOnEventClickAjaxBehavior(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source)
      Gets a new JQueryAjaxBehavior that will be wired to the 'eventClick' event, triggered when the user clicks on an event
      Parameters:
      source - the IJQueryAjaxAware
      Returns:
      a new OnEventClickAjaxBehavior by default
    • newOnEventDropAjaxBehavior

      protected com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior newOnEventDropAjaxBehavior(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source, CharSequence precondition)
      Gets a new JQueryAjaxBehavior that will be wired to the 'eventDrop' event, triggered when the user moves (drag & drop) an event
      Parameters:
      source - the IJQueryAjaxAware
      precondition - the JavaScript precondition
      Returns:
      a new OnEventDropAjaxBehavior by default
    • newOnEventResizeAjaxBehavior

      protected com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior newOnEventResizeAjaxBehavior(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source, CharSequence precondition)
      Gets a new JQueryAjaxBehavior that will be wired to the 'eventResize' event, triggered when the user resizes an event
      Parameters:
      source - the IJQueryAjaxAware
      precondition - the JavaScript precondition
      Returns:
      a new OnEventResizeAjaxBehavior by default
    • newOnObjectDropAjaxBehavior

      protected com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior newOnObjectDropAjaxBehavior(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source)
      Gets a new JQueryAjaxBehavior that will be wired to the 'drop' event, triggered when the user drops an event object
      Parameters:
      source - the IJQueryAjaxAware
      Returns:
      a new OnObjectDropAjaxBehavior by default
    • newOnViewRenderAjaxBehavior

      protected com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior newOnViewRenderAjaxBehavior(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source)
      Gets a new JQueryAjaxBehavior that will be wired to the 'viewRender' event, triggered when the user changes the view, or when any of the date navigation methods are called.
      Parameters:
      source - the IJQueryAjaxAware
      Returns:
      a new OnViewRenderAjaxBehavior by default