com.vaadin.ui.
Class Table.ColumnResizeEvent
- java.lang.Object
-
- java.util.EventObject
-
- com.vaadin.event.ConnectorEvent
-
- com.vaadin.ui.Component.Event
-
- com.vaadin.ui.Table.ColumnResizeEvent
-
All Implemented Interfaces:
Enclosing class:
public static class Table.ColumnResizeEvent extends Component.Event
This event is fired when a column is resized. The event contains the columns property id which was fired, the previous width of the column and the width of the column after the resize.
See Also:
-
-
Field Summary
Fields Modifier and Type Field and Description static Method
COLUMN_RESIZE_METHOD
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor and Description ColumnResizeEvent(Component source, Object propertyId, int previous, int current)
Constructor
-
Method Summary
All Methods Modifier and Type Method and Description int
getCurrentWidth()
Get the width in pixels of the column after the resize event
int
getPreviousWidth()
Get the width in pixels of the column before the resize event
Object
getPropertyId()
Get the column property id of the column that was resized.
-
Methods inherited from class com.vaadin.ui.Component.Event
getComponent
-
Methods inherited from class com.vaadin.event.ConnectorEvent
getConnector
-
Methods inherited from class java.util.EventObject
getSource, toString
-
-
-
-
Field Detail
-
COLUMN_RESIZE_METHOD
public static final Method COLUMN_RESIZE_METHOD
-
-
Constructor Detail
-
ColumnResizeEvent
public ColumnResizeEvent(Component source, Object propertyId, int previous, int current)
Constructor
Parameters:
source
- The source of the eventpropertyId
- The columns property idprevious
- The width in pixels of the column before the resize eventcurrent
- The width in pixels of the column after the resize event
-
-
Method Detail
-
getPropertyId
public Object getPropertyId()
Get the column property id of the column that was resized.
Returns:
The column property id
-
getPreviousWidth
public int getPreviousWidth()
Get the width in pixels of the column before the resize event
Returns:
Width in pixels
-
getCurrentWidth
public int getCurrentWidth()
Get the width in pixels of the column after the resize event
Returns:
Width in pixels
-
-