Package org.zkoss.stateless.action.data
Class ColSizeData
java.lang.Object
org.zkoss.stateless.action.data.ColSizeData
- All Implemented Interfaces:
Serializable,ActionData
Used to notify that the width of a column is changed.
When a user drags the border of a sizable column, only the width of the column itself is changed, other columns are not affected.
- Author:
- jumperchen
- See Also:
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionintReturn the column index of the first column whose width is changed.final intgetKeys()Returns what keys were pressed when the column is resized, or 0 if none of them was pressed.getWidth()Returns the column widthgetWidth(int col) Returns the column width of the specified column index.
-
Field Details
-
ALT_KEY
public static final int ALT_KEYIndicates whether the Alt key is pressed. It might be returned as part ofgetKeys().- See Also:
-
CTRL_KEY
public static final int CTRL_KEYIndicates whether the Ctrl key is pressed. It might be returned as part ofgetKeys().- See Also:
-
SHIFT_KEY
public static final int SHIFT_KEYIndicates whether the Shift key is pressed. It might be returned as part ofgetKeys().- See Also:
-
-
Method Details
-
getWidth
Returns the column width -
getWidth
Returns the column width of the specified column index.- Parameters:
col- the column index
-
getColIndex
public int getColIndex()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).
-
getKeys
public final int getKeys()
-