Package org.zkoss.pivot.event
Class PivotUIEvent
java.lang.Object
org.zkoss.zk.ui.event.Event
org.zkoss.pivot.event.PivotUIEvent
- All Implemented Interfaces:
Serializable
public class PivotUIEvent
extends org.zkoss.zk.ui.event.Event
UI Event on a Pivottable, including
onPivotPopup, onPivotContext,
onPivotToolTip, onPivotNodeOpen.- Author:
- jumperchen
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPivotUIEvent(String name, org.zkoss.zk.ui.Component pivottable, boolean open, PivotField.Type pfType, PivotHeaderContext colContext, PivotHeaderContext rowContext, PivotField dataField) Construct PivotUIEvent for open event.PivotUIEvent(String name, org.zkoss.zk.ui.Component pivottable, int x, int y, PivotField.Type pfType, PivotHeaderContext colContext, PivotHeaderContext rowContext, PivotField dataField) Construct PivotUIEvent for popup, tooltip, and context. -
Method Summary
Modifier and TypeMethodDescriptionReturn the PivotHeaderContext corresponding to the column slot on which the Event occurs, null if happens on rows.static PivotHeaderContextgetContext(PivotHeaderTree tree, String key, int dispIndex) Return the data field on which the Event occurs, null if not applicable.Return the field type on which the Event occurs.static final PivotUIEventgetPivotUIEvent(org.zkoss.zk.au.AuRequest request) Converts an AU request to an pivot UI event.Return the PivotHeaderContext corresponding to the row slot on which the Event occurs, null if happens on columns.final intgetX()Return the horizontal coordinate of the mouse pointer relative to the component.final intgetY()Return the vertical coordinate of the mouse pointer relative to the component.booleanisOpen()Returns whether the event indicates opening a node.Methods inherited from class org.zkoss.zk.ui.event.Event
getData, getEvent, getName, getPage, getTarget, isPropagatable, stopPropagation, toString
-
Field Details
-
ON_PIVOT_POPUP
- See Also:
-
ON_PIVOT_CONTEXT
- See Also:
-
ON_PIVOT_TOOLTIP
- See Also:
-
ON_PIVOT_NODE_OPEN
- See Also:
-
-
Constructor Details
-
PivotUIEvent
public PivotUIEvent(String name, org.zkoss.zk.ui.Component pivottable, boolean open, PivotField.Type pfType, PivotHeaderContext colContext, PivotHeaderContext rowContext, PivotField dataField) Construct PivotUIEvent for open event. -
PivotUIEvent
public PivotUIEvent(String name, org.zkoss.zk.ui.Component pivottable, int x, int y, PivotField.Type pfType, PivotHeaderContext colContext, PivotHeaderContext rowContext, PivotField dataField) Construct PivotUIEvent for popup, tooltip, and context.
-
-
Method Details
-
getPivotUIEvent
Converts an AU request to an pivot UI event. -
getFieldType
Return the field type on which the Event occurs.- See Also:
-
getRowContext
Return the PivotHeaderContext corresponding to the row slot on which the Event occurs, null if happens on columns.- See Also:
-
getColumnContext
Return the PivotHeaderContext corresponding to the column slot on which the Event occurs, null if happens on rows.- See Also:
-
getDataField
Return the data field on which the Event occurs, null if not applicable. -
isOpen
public boolean isOpen()Returns whether the event indicates opening a node. Return false if the event is not a node open event. -
getX
public final int getX()Return the horizontal coordinate of the mouse pointer relative to the component. -
getY
public final int getY()Return the vertical coordinate of the mouse pointer relative to the component. -
getContext
-