public class CalendarsEvent
extends org.zkoss.zk.ui.event.Event
The event is able to stop or clear the dragging ghost from server to client,
that is, when application developer doesn't invoke the stopClearGhost()
,
the dragging ghost will be cleared by default. Otherwise, application developer
has to responsibly invoke the clearGhost()
.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ON_DAY_CLICK |
static java.lang.String |
ON_ITEM_CREATE |
static java.lang.String |
ON_ITEM_EDIT |
static java.lang.String |
ON_ITEM_TOOLTIP |
static java.lang.String |
ON_ITEM_UPDATE |
static java.lang.String |
ON_WEEK_CLICK |
Constructor and Description |
---|
CalendarsEvent(java.lang.String name,
org.zkoss.zk.ui.Component target,
CalendarItem ce,
java.util.Date beginDate,
java.util.Date endDate,
int x,
int y,
int dtwd,
int dthgh) |
Modifier and Type | Method and Description |
---|---|
void |
clearGhost()
Clears the dragging ghost from server to client.
|
java.util.Date |
getBeginDate()
Returns the update beginning date.
|
CalendarItem |
getCalendarItem()
Returns the calendar item.
|
static org.zkoss.zk.ui.event.Event |
getClickEvent(org.zkoss.zk.au.AuRequest request,
java.lang.String cmd) |
static CalendarsEvent |
getCreateEvent(org.zkoss.zk.au.AuRequest request)
Creates an instance of
Event based on the specified request. |
int |
getDesktopHeight()
Returns the pixel height of the client's desktop.
|
int |
getDesktopWidth()
Returns the pixel width of the client's desktop.
|
static CalendarsEvent |
getEditEvent(org.zkoss.zk.au.AuRequest request) |
java.util.Date |
getEndDate()
Returns the update end date.
|
static org.zkoss.zk.ui.event.Event |
getTooltipEvent(org.zkoss.zk.au.AuRequest request) |
static CalendarsEvent |
getUpdateEvent(org.zkoss.zk.au.AuRequest request) |
int |
getX()
Returns the x coordination of the mouse pointer relevant to the
component.
|
int |
getY()
Returns the y coordination of the mouse pointer relevant to the
component.
|
void |
stopClearGhost()
Stops to clear the dragging ghost command from server to client.
|
public static final java.lang.String ON_ITEM_CREATE
public static final java.lang.String ON_ITEM_EDIT
public static final java.lang.String ON_ITEM_UPDATE
public static final java.lang.String ON_DAY_CLICK
public static final java.lang.String ON_WEEK_CLICK
public static final java.lang.String ON_ITEM_TOOLTIP
public CalendarsEvent(java.lang.String name, org.zkoss.zk.ui.Component target, CalendarItem ce, java.util.Date beginDate, java.util.Date endDate, int x, int y, int dtwd, int dthgh)
public static CalendarsEvent getCreateEvent(org.zkoss.zk.au.AuRequest request)
Event
based on the specified request.public static CalendarsEvent getEditEvent(org.zkoss.zk.au.AuRequest request)
public static CalendarsEvent getUpdateEvent(org.zkoss.zk.au.AuRequest request)
public static org.zkoss.zk.ui.event.Event getClickEvent(org.zkoss.zk.au.AuRequest request, java.lang.String cmd)
public static org.zkoss.zk.ui.event.Event getTooltipEvent(org.zkoss.zk.au.AuRequest request)
public void stopClearGhost()
Note: If the method is invoked, application developer has to invoke
clearGhost()
to clear the dragging ghost.
public void clearGhost()
The CalendarsEvent will clear the ghost by default, except invoking
stopClearGhost()
.
public java.util.Date getBeginDate()
public java.util.Date getEndDate()
public CalendarItem getCalendarItem()
public final int getX()
public final int getY()
public int getDesktopWidth()
public int getDesktopHeight()
Copyright © 2021. All Rights Reserved.