com.vaadin.ui
Class Table.ColumnResizeEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.vaadin.ui.Component.Event
          extended by com.vaadin.ui.Table.ColumnResizeEvent
All Implemented Interfaces:
Serializable
Enclosing class:
Table

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:
Serialized Form

Field Summary
static Method COLUMN_RESIZE_METHOD
           
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
Table.ColumnResizeEvent(Component source, Object propertyId, int previous, int current)
          Constructor
 
Method Summary
 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 java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

COLUMN_RESIZE_METHOD

public static final Method COLUMN_RESIZE_METHOD
Constructor Detail

Table.ColumnResizeEvent

public Table.ColumnResizeEvent(Component source,
                               Object propertyId,
                               int previous,
                               int current)
Constructor

Parameters:
source - The source of the event
propertyId - The columns property id
previous - The width in pixels of the column before the resize event
current - 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


Copyright © 2000-2011 Vaadin Ltd. All Rights Reserved.