|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.wicket.behavior.Behavior
com.googlecode.wicket.jquery.core.JQueryAbstractBehavior
com.googlecode.wicket.jquery.core.JQueryBehavior
com.googlecode.wicket.jquery.ui.calendar.CalendarBehavior
public abstract class CalendarBehavior
Provides the jQuery fullCalendar behavior
| Nested Class Summary | |
|---|---|
protected static class |
CalendarBehavior.ClickEvent
An event object that will be broadcasted when the user clicks on an event |
protected static class |
CalendarBehavior.DayClickEvent
An event object that will be broadcasted when the user clicks on a day cell |
protected static class |
CalendarBehavior.DeltaEvent
A base event object that contains a delta time |
protected static class |
CalendarBehavior.DropEvent
An event object that will be broadcasted when the user moves (drag & drop) an event |
protected static class |
CalendarBehavior.ResizeEvent
An event object that will be broadcasted when the user resizes an event |
protected static class |
CalendarBehavior.SelectEvent
An event object that will be broadcasted when the user select a cell range |
| Field Summary |
|---|
| Fields inherited from class com.googlecode.wicket.jquery.core.JQueryBehavior |
|---|
method, options, selector |
| Constructor Summary | |
|---|---|
CalendarBehavior(String selector)
|
|
CalendarBehavior(String selector,
Options options)
|
|
| Method Summary | |
|---|---|
void |
bind(org.apache.wicket.Component component)
|
boolean |
isEditable()
Indicates whether the event can be edited (ie, clicked). IIF true, an event can override this global setting to false by using CalendarEvent#setEditable(boolean); If true, the onEventClick(AjaxRequestTarget, CalendarView, int) event and onDayClick(AjaxRequestTarget, CalendarView, Date) event will be triggered |
boolean |
isEventDropEnabled()
Indicates whether the event can be dragged & dropped. |
boolean |
isEventResizeEnabled()
Indicates whether the event can be resized. |
boolean |
isSelectable()
Indicated whether a cell can be selected. If true, the onSelect(AjaxRequestTarget, CalendarView, Date, Date, boolean) event will be triggered |
protected JQueryAjaxBehavior |
newOnDayClickBehavior()
Gets the ajax behavior that will be triggered when the user clicks on a day cell |
protected JQueryAjaxBehavior |
newOnEventClickBehavior()
Gets the ajax behavior that will be triggered when the user clicks on an event |
protected JQueryAjaxBehavior |
newOnEventDropBehavior()
Gets the ajax behavior that will be triggered when the user moves (drag & drop) an event |
protected JQueryAjaxBehavior |
newOnEventResizeBehavior()
Gets the ajax behavior that will be triggered when the user resizes an event |
protected JQueryAjaxBehavior |
newOnSelectBehavior()
Gets the ajax behavior that will be triggered when the user select a cell range |
void |
onAjax(org.apache.wicket.ajax.AjaxRequestTarget target,
JQueryEvent event)
|
void |
onConfigure(org.apache.wicket.Component component)
|
void |
onDayClick(org.apache.wicket.ajax.AjaxRequestTarget target,
CalendarView view,
Date date)
Triggered when a calendar day is clicked |
void |
onEventClick(org.apache.wicket.ajax.AjaxRequestTarget target,
CalendarView view,
int eventId)
Triggered when an event is clicked. isEditable() should return true for this event to be triggered. |
void |
onEventDrop(org.apache.wicket.ajax.AjaxRequestTarget target,
int eventId,
long delta,
boolean allDay)
Triggered when an event is dropped (after being dragged). isEventDropEnabled() should return true for this event to be triggered. |
void |
onEventResize(org.apache.wicket.ajax.AjaxRequestTarget target,
int eventId,
long delta)
Triggered when an event is dropped (after being dragged). isEventResizeEnabled() should return true for this event to be triggered. |
void |
onSelect(org.apache.wicket.ajax.AjaxRequestTarget target,
CalendarView view,
Date start,
Date end,
boolean allDay)
Triggered when an cell is selected. isSelectable() should return true for this event to be triggered. |
void |
renderHead(org.apache.wicket.Component component,
org.apache.wicket.markup.html.IHeaderResponse response)
|
| Methods inherited from class com.googlecode.wicket.jquery.core.JQueryBehavior |
|---|
$, $, $, getOption, on, on, setOption, setOptions |
| Methods inherited from class com.googlecode.wicket.jquery.core.JQueryAbstractBehavior |
|---|
add, beforeRender, toString |
| Methods inherited from class org.apache.wicket.behavior.Behavior |
|---|
afterRender, canCallListenerInterface, canCallListenerInterface, detach, getStatelessHint, isEnabled, isTemporary, onComponentTag, onEvent, onException, unbind |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CalendarBehavior(String selector)
public CalendarBehavior(String selector,
Options options)
| Method Detail |
|---|
public void bind(org.apache.wicket.Component component)
bind in class org.apache.wicket.behavior.Behavior
public void renderHead(org.apache.wicket.Component component,
org.apache.wicket.markup.html.IHeaderResponse response)
renderHead in interface org.apache.wicket.markup.html.IComponentAwareHeaderContributorrenderHead in class JQueryBehaviorpublic void onConfigure(org.apache.wicket.Component component)
onConfigure in class org.apache.wicket.behavior.Behavior
public void onAjax(org.apache.wicket.ajax.AjaxRequestTarget target,
JQueryEvent event)
onAjax in interface IJQueryAjaxAwareprotected JQueryAjaxBehavior newOnDayClickBehavior()
JQueryAjaxBehaviorprotected JQueryAjaxBehavior newOnSelectBehavior()
JQueryAjaxBehaviorprotected JQueryAjaxBehavior newOnEventClickBehavior()
JQueryAjaxBehaviorprotected JQueryAjaxBehavior newOnEventDropBehavior()
JQueryAjaxBehaviorprotected JQueryAjaxBehavior newOnEventResizeBehavior()
JQueryAjaxBehaviorpublic boolean isEditable()
onEventClick(AjaxRequestTarget, CalendarView, int) event and onDayClick(AjaxRequestTarget, CalendarView, Date) event will be triggered
public boolean isSelectable()
onSelect(AjaxRequestTarget, CalendarView, Date, Date, boolean) event will be triggered
public boolean isEventDropEnabled()
onEventDrop(AjaxRequestTarget, int, long, boolean) event will be triggered
public boolean isEventResizeEnabled()
onEventResize(AjaxRequestTarget, int, long) event will be triggered
public void onSelect(org.apache.wicket.ajax.AjaxRequestTarget target,
CalendarView view,
Date start,
Date end,
boolean allDay)
isSelectable() should return true for this event to be triggered.
target - the AjaxRequestTargetview - the current calendar viewstart - the event start Dateend - the event end DateallDay - the event all-day property
public void onDayClick(org.apache.wicket.ajax.AjaxRequestTarget target,
CalendarView view,
Date date)
target - the AjaxRequestTargetview - the current calendar viewdate - the day
public void onEventClick(org.apache.wicket.ajax.AjaxRequestTarget target,
CalendarView view,
int eventId)
isEditable() should return true for this event to be triggered.
target - the AjaxRequestTargetview - the current calendar vieweventId - the CalendarEvent id
public void onEventDrop(org.apache.wicket.ajax.AjaxRequestTarget target,
int eventId,
long delta,
boolean allDay)
isEventDropEnabled() should return true for this event to be triggered.
target - the AjaxRequestTargeteventId - the CalendarEvent iddelta - the delta (time) with the original event dateallDay - the event all-day property
public void onEventResize(org.apache.wicket.ajax.AjaxRequestTarget target,
int eventId,
long delta)
isEventResizeEnabled() should return true for this event to be triggered.
target - the AjaxRequestTargeteventId - the CalendarEvent iddelta - the delta (time) with the original event date
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||