| java.lang.Object org.zkoss.zk.ui.event.Event org.zkoss.zul.event.ColSizeEvent
ColSizeEvent | public class ColSizeEvent extends Event (Code) | | Used to notify that the widths of two adjacent column are changed.
When an user drags the border of sizable columns, the width of the
adjacent columns are changed accordingly -
one is enlarged, the other is shrinked and the total width is not changed.
The event is sent to the parent (e.g.,
org.zkoss.zul.Columns and
org.zkoss.zul.Treecols ).
author: tomyeh |
Field Summary | |
final public static int | ALT_KEY Indicates whether the Alt key is pressed. | final public static int | CTRL_KEY Indicates whether the Ctrl key is pressed. | final public static int | SHIFT_KEY Indicates whether the Shift key is pressed. |
Method Summary | |
public int | getColIndex() Return the column index of the first column whose width is changed. | public Component | getColumn() Returns the column whose width is changed. | public Component | getColumn1() Returns the first column whose width is changed. | public Component | getColumn2() Returns the second column whose width is changed. | final public int | getKeys() Returns what keys were pressed when the column is resized, or 0 if
none of them was pressed. |
ALT_KEY | final public static int ALT_KEY(Code) | | Indicates whether the Alt key is pressed.
It might be returned as part of
ColSizeEvent.getKeys .
|
CTRL_KEY | final public static int CTRL_KEY(Code) | | Indicates whether the Ctrl key is pressed.
It might be returned as part of
ColSizeEvent.getKeys .
|
SHIFT_KEY | final public static int SHIFT_KEY(Code) | | Indicates whether the Shift key is pressed.
It might be returned as part of
ColSizeEvent.getKeys .
|
ColSizeEvent | public ColSizeEvent(String evtnm, Component target, int icol, Component col, int keys)(Code) | | Constructs an instance of
ColSizeEvent .
Parameters: icol - the index of the first colum whose width is changed.The second column is icol+1. |
ColSizeEvent | public ColSizeEvent(String evtnm, Component target, int icol, Component col1, Component col2, int keys)(Code) | | Parameters: icol - the index of the first colum whose width is changed.The second column is icol+1. |
getColIndex | public int getColIndex()(Code) | | Return the column index of the first column whose width is changed.
The other column is the returned index plus one.
In other words, it is the index (starting from 0) of
ColSizeEvent.getColumn1 .
|
getColumn | public Component getColumn()(Code) | | Returns the column whose width is changed.
since: 3.0.0 |
getColumn2 | public Component getColumn2()(Code) | | Returns the second column whose width is changed.
|
|
|