Class HeaderMouseEvent

  • All Implemented Interfaces:
    Serializable

    public class HeaderMouseEvent
    extends org.zkoss.zk.ui.event.MouseEvent
    A class from handle event which about mouse event on a cell
    Author:
    Dennis.Chen
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class org.zkoss.zk.ui.event.MouseEvent

        ALT_KEY, CTRL_KEY, LEFT_CLICK, META_KEY, MIDDLE_CLICK, RIGHT_CLICK, SHIFT_KEY
    • Constructor Summary

      Constructors 
      Constructor Description
      HeaderMouseEvent​(String name, org.zkoss.zk.ui.Component target, int x, int y, int keys, SSheet sheet, HeaderType type, int index, int clientx, int clienty)  
    • Constructor Detail

      • HeaderMouseEvent

        public HeaderMouseEvent​(String name,
                                org.zkoss.zk.ui.Component target,
                                int x,
                                int y,
                                int keys,
                                SSheet sheet,
                                HeaderType type,
                                int index,
                                int clientx,
                                int clienty)
    • Method Detail

      • getSheet

        public SSheet getSheet()
        get Sheet
        Returns:
        sheet
      • getIndex

        public int getIndex()
        get index of the header, if the getType() return @link HeaderEvent#TOP_HEADER} then it is column index, otherwise it is row index
        Returns:
        row index
      • getType

        public HeaderType getType()
        get type of this event, it will be HeaderUpdateEvent#TOP_HEADER or (@link HeaderEvent#LEFT_HEADER}
        Returns:
        the type of header
      • getClientx

        public int getClientx()
        get x position of client
        Returns:
        x position
      • getClienty

        public int getClienty()
        get y position of client
        Returns:
        y position
      • toString

        public String toString()
        Overrides:
        toString in class org.zkoss.zk.ui.event.Event