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 ClassesModifier and TypeClassDescriptionprotected static classProvides an event object that will be broadcasted by theCalendarBehavior.OnEventClickAjaxBehaviorcallbackprotected static classProvides an event object that will be broadcasted by theCalendarBehavior.OnDayClickAjaxBehaviorcallbackprotected static classProvides a base class forCalendarBehaviorevent objects that contain a delta timeprotected static classProvides an event object that will be broadcasted by theCalendarBehavior.OnEventDropAjaxBehaviorcallbackprotected static classProvides an event object that will be broadcasted by theCalendarBehavior.OnObjectDropAjaxBehaviorcallbackprotected static classProvides aJQueryAjaxBehaviorthat aims to be wired to the 'dayClick' eventprotected static classProvides aJQueryAjaxBehaviorthat aims to be wired to the 'eventClick' eventprotected static classProvides aJQueryAjaxBehaviorthat aims to be wired to the 'eventDrop' eventprotected static classProvides aJQueryAjaxBehaviorthat aims to be wired to the 'eventResize' eventprotected static classProvides aJQueryAjaxBehaviorthat aims to be wired to the 'drop' eventprotected static classProvides aJQueryAjaxBehaviorthat aims to be wired to the 'select' eventprotected static classProvides aJQueryAjaxBehaviorthat aims to be wired to the 'viewRender' eventprotected static classProvides an event object that will be broadcasted by theCalendarBehavior.OnEventResizeAjaxBehaviorcallbackprotected static classProvides an event object that will be broadcasted by theCalendarBehavior.OnSelectAjaxBehaviorcallbackprotected static classProvides an event object that will be broadcasted by theCalendarBehavior.OnViewRenderAjaxBehaviorcallback -
Field Summary
FieldsFields inherited from class com.googlecode.wicket.jquery.core.JQueryBehavior
method, options, selector -
Constructor Summary
ConstructorsConstructorDescriptionCalendarBehavior(String selector, com.googlecode.wicket.jquery.core.Options options, ICalendarListener listener) ConstructorCalendarBehavior(String selector, ICalendarListener listener) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoidbind(org.apache.wicket.Component component) protected booleanIndicates whether the Calendar will be editableprotected com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehaviornewOnDayClickAjaxBehavior(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source) Gets a newJQueryAjaxBehaviorthat will be wired to the 'dayClick' event, triggered when the user clicks on a day cellprotected com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehaviornewOnEventClickAjaxBehavior(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source) Gets a newJQueryAjaxBehaviorthat will be wired to the 'eventClick' event, triggered when the user clicks on an eventprotected com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehaviornewOnEventDropAjaxBehavior(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source, CharSequence precondition) Gets a newJQueryAjaxBehaviorthat will be wired to the 'eventDrop' event, triggered when the user moves (drag & drop) an eventprotected com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehaviornewOnEventResizeAjaxBehavior(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source, CharSequence precondition) Gets a newJQueryAjaxBehaviorthat will be wired to the 'eventResize' event, triggered when the user resizes an eventprotected com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehaviornewOnObjectDropAjaxBehavior(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source) Gets a newJQueryAjaxBehaviorthat will be wired to the 'drop' event, triggered when the user drops an event objectprotected com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehaviornewOnSelectAjaxBehavior(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source) Gets a newJQueryAjaxBehaviorthat will be wired to the 'select' event, triggered when the user select a cell rangeprotected com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehaviornewOnViewRenderAjaxBehavior(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source) Gets a newJQueryAjaxBehaviorthat will be wired to the 'viewRender' event, triggered when the user changes the view, or when any of the date navigation methods are called.voidonAjax(org.apache.wicket.ajax.AjaxRequestTarget target, com.googlecode.wicket.jquery.core.JQueryEvent event) voidonConfigure(org.apache.wicket.Component component) voidrenderHead(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, setSelectorMethods inherited from class com.googlecode.wicket.jquery.core.JQueryAbstractBehavior
add, getJQueryLibrarySettings, renderOnDomReadyScript, renderPriorityHeaderItem, toStringMethods inherited from class org.apache.wicket.behavior.Behavior
afterRender, canCallListener, detach, getStatelessHint, isEnabled, isTemporary, onAttribute, onComponentTag, onEvent, onException, onRemove, onTag, unbind
-
Field Details
-
METHOD
- See Also:
-
-
Constructor Details
-
CalendarBehavior
Constructor- Parameters:
selector- the html selector (ie: "#myId")listener- theICalendarListener
-
CalendarBehavior
public CalendarBehavior(String selector, com.googlecode.wicket.jquery.core.Options options, ICalendarListener listener) Constructor- Parameters:
selector- the html selector (ie: "#myId")options- theOptionslistener- theICalendarListener
-
-
Method Details
-
bind
public void bind(org.apache.wicket.Component component) - Overrides:
bindin classorg.apache.wicket.behavior.Behavior
-
renderHead
public void renderHead(org.apache.wicket.Component component, org.apache.wicket.markup.head.IHeaderResponse response) - Specified by:
renderHeadin interfaceorg.apache.wicket.markup.html.IComponentAwareHeaderContributor- Overrides:
renderHeadin classcom.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 orICalendarListener.isEventClickEnabled()is true
-
onConfigure
public void onConfigure(org.apache.wicket.Component component) - Overrides:
onConfigurein classcom.googlecode.wicket.jquery.core.JQueryBehavior
-
onAjax
public void onAjax(org.apache.wicket.ajax.AjaxRequestTarget target, com.googlecode.wicket.jquery.core.JQueryEvent event) - Specified by:
onAjaxin interfacecom.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 newJQueryAjaxBehaviorthat will be wired to the 'select' event, triggered when the user select a cell range- Parameters:
source- theIJQueryAjaxAware- Returns:
- a new
OnSelectAjaxBehaviorby default
-
newOnDayClickAjaxBehavior
protected com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior newOnDayClickAjaxBehavior(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source) Gets a newJQueryAjaxBehaviorthat will be wired to the 'dayClick' event, triggered when the user clicks on a day cell- Parameters:
source- theIJQueryAjaxAware- Returns:
- a new
OnDayClickAjaxBehaviorby default
-
newOnEventClickAjaxBehavior
protected com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior newOnEventClickAjaxBehavior(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source) Gets a newJQueryAjaxBehaviorthat will be wired to the 'eventClick' event, triggered when the user clicks on an event- Parameters:
source- theIJQueryAjaxAware- Returns:
- a new
OnEventClickAjaxBehaviorby default
-
newOnEventDropAjaxBehavior
protected com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior newOnEventDropAjaxBehavior(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source, CharSequence precondition) Gets a newJQueryAjaxBehaviorthat will be wired to the 'eventDrop' event, triggered when the user moves (drag & drop) an event- Parameters:
source- theIJQueryAjaxAwareprecondition- the JavaScript precondition- Returns:
- a new
OnEventDropAjaxBehaviorby default
-
newOnEventResizeAjaxBehavior
protected com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior newOnEventResizeAjaxBehavior(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source, CharSequence precondition) Gets a newJQueryAjaxBehaviorthat will be wired to the 'eventResize' event, triggered when the user resizes an event- Parameters:
source- theIJQueryAjaxAwareprecondition- the JavaScript precondition- Returns:
- a new
OnEventResizeAjaxBehaviorby default
-
newOnObjectDropAjaxBehavior
protected com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior newOnObjectDropAjaxBehavior(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source) Gets a newJQueryAjaxBehaviorthat will be wired to the 'drop' event, triggered when the user drops an event object- Parameters:
source- theIJQueryAjaxAware- Returns:
- a new
OnObjectDropAjaxBehaviorby default
-
newOnViewRenderAjaxBehavior
protected com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior newOnViewRenderAjaxBehavior(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source) Gets a newJQueryAjaxBehaviorthat 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- theIJQueryAjaxAware- Returns:
- a new
OnViewRenderAjaxBehaviorby default
-