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 Details

  • Constructor Details

  • Method Details

    • getPivotUIEvent

      public static final PivotUIEvent getPivotUIEvent(org.zkoss.zk.au.AuRequest request)
      Converts an AU request to an pivot UI event.
    • getFieldType

      public PivotField.Type getFieldType()
      Return the field type on which the Event occurs.
      See Also:
    • getRowContext

      public PivotHeaderContext getRowContext()
      Return the PivotHeaderContext corresponding to the row slot on which the Event occurs, null if happens on columns.
      See Also:
    • getColumnContext

      public PivotHeaderContext getColumnContext()
      Return the PivotHeaderContext corresponding to the column slot on which the Event occurs, null if happens on rows.
      See Also:
    • getDataField

      public PivotField 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

      public static PivotHeaderContext getContext(PivotHeaderTree tree, String key, int dispIndex)