Package io.keikai.ui.event
Class HeaderMouseEvent
- java.lang.Object
-
- org.zkoss.zk.ui.event.Event
-
- org.zkoss.zk.ui.event.MouseEvent
-
- io.keikai.ui.event.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
-
-
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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getClientx()
get x position of clientint
getClienty()
get y position of clientint
getIndex()
get index of the header, if thegetType()
return @link HeaderEvent#TOP_HEADER} then it is column index, otherwise it is row indexSSheet
getSheet()
get SheetHeaderType
getType()
get type of this event, it will beHeaderUpdateEvent#TOP_HEADER
or (@link HeaderEvent#LEFT_HEADER}String
toString()
-
Methods inherited from class org.zkoss.zk.ui.event.MouseEvent
getArea, getAreaComponent, getKeys, getMouseEvent, getPageX, getPageY, getX, getY
-
-
-
-
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 thegetType()
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 beHeaderUpdateEvent#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 classorg.zkoss.zk.ui.event.Event
-
-