Class 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:
    Serialized Form
    • Constructor Detail

      • 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 Detail

      • 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
      • 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