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.IJQueryAjaxAwareProvides the jQuery fullCalendar behavior- Author:
- Sebastien Briquet - sebfz1
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classCalendarBehavior.ClickEventProvides an event object that will be broadcasted by theCalendarBehavior.OnEventClickAjaxBehaviorcallbackprotected static classCalendarBehavior.DayClickEventProvides an event object that will be broadcasted by theCalendarBehavior.OnDayClickAjaxBehaviorcallbackprotected static classCalendarBehavior.DeltaEventProvides a base class forCalendarBehaviorevent objects that contain a delta timeprotected static classCalendarBehavior.DropEventProvides an event object that will be broadcasted by theCalendarBehavior.OnEventDropAjaxBehaviorcallbackprotected static classCalendarBehavior.ObjectDropEventProvides an event object that will be broadcasted by theCalendarBehavior.OnObjectDropAjaxBehaviorcallbackprotected static classCalendarBehavior.OnDayClickAjaxBehaviorProvides aJQueryAjaxBehaviorthat aims to be wired to the 'dayClick' eventprotected static classCalendarBehavior.OnEventClickAjaxBehaviorProvides aJQueryAjaxBehaviorthat aims to be wired to the 'eventClick' eventprotected static classCalendarBehavior.OnEventDropAjaxBehaviorProvides aJQueryAjaxBehaviorthat aims to be wired to the 'eventDrop' eventprotected static classCalendarBehavior.OnEventResizeAjaxBehaviorProvides aJQueryAjaxBehaviorthat aims to be wired to the 'eventResize' eventprotected static classCalendarBehavior.OnObjectDropAjaxBehaviorProvides aJQueryAjaxBehaviorthat aims to be wired to the 'drop' eventprotected static classCalendarBehavior.OnSelectAjaxBehaviorProvides aJQueryAjaxBehaviorthat aims to be wired to the 'select' eventprotected static classCalendarBehavior.OnViewRenderAjaxBehaviorProvides aJQueryAjaxBehaviorthat aims to be wired to the 'viewRender' eventprotected static classCalendarBehavior.ResizeEventProvides an event object that will be broadcasted by theCalendarBehavior.OnEventResizeAjaxBehaviorcallbackprotected static classCalendarBehavior.SelectEventProvides an event object that will be broadcasted by theCalendarBehavior.OnSelectAjaxBehaviorcallbackprotected static classCalendarBehavior.ViewRenderEventProvides an event object that will be broadcasted by theCalendarBehavior.OnViewRenderAjaxBehaviorcallback
-
Constructor Summary
Constructors Constructor Description CalendarBehavior(String selector, com.googlecode.wicket.jquery.core.Options options, ICalendarListener listener)ConstructorCalendarBehavior(String selector, ICalendarListener listener)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbind(org.apache.wicket.Component component)protected booleanisEditable()Indicates 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, setSelector
-
Methods inherited from class com.googlecode.wicket.jquery.core.JQueryAbstractBehavior
add, getJQueryLibrarySettings, renderOnDomReadyScript, renderPriorityHeaderItem, toString
-
-
-
-
Field Detail
-
METHOD
public static final String METHOD
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CalendarBehavior
public CalendarBehavior(String selector, ICalendarListener listener)
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 Detail
-
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
-
-