com.extjs.gxt.ui.client.widget.table
Class Table

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.extjs.gxt.ui.client.widget.Component
              extended by com.extjs.gxt.ui.client.widget.BoxComponent
                  extended by com.extjs.gxt.ui.client.widget.Container<TableItem>
                      extended by com.extjs.gxt.ui.client.widget.table.Table
All Implemented Interfaces:
Observable, Selectable<TableItem>, BaseTable, com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.IsWidget

Deprecated. see Grid

public class Table
extends Container<TableItem>
implements BaseTable, Selectable<TableItem>

The table is used to display two-dimensional table of cells.

When using custom cell renderers or nested widgets within cells it may be nesseccary to increase the cell selector depth to account for the new nested elements within each cell. For example, if nesting a table structure in a cell, the selector depth should be increased to at least a value of 10 (@see TableView.setCellSelectorDepth(int).

Events:
BeforeAdd : TableEvent(table, item, rowIndex)
Fires before a item is added or inserted. Listeners can cancel the action by calling BaseEvent.setCancelled(boolean).
BeforeRemove : TableEvent(table, item, rowIndex)
Fires before a item is removed. Listeners can cancel the action by calling BaseEvent.setCancelled(boolean).
Add : TableEvent(table, item, rowIndex)
Fires after a item has been added or inserted.
Remove : TableEvent(table, item, rowIndex)
Fires after a item has been removed.
SelectionChange : TableEvent(table this)
Fired after the selection has changed
ContextMenu : TableEvent(table)
Fires before the tables context menu is shown. Listeners can cancel the action by calling BaseEvent.setCancelled(boolean).
CellClick : TableEvent(table, rowIndex, cellIndex, event)
Fires after a cell is clicked.
CellDoubleClick : TableEvent(table, rowIndex, cellIndex, event)
Fires after a cell is double clicked.
ColumnClick : TableEvent(table, columnIndex)
Fires after a column is clicked.
RowClick : TableEvent(table, rowIndex, cell index, event)
Fires after a row is clicked.
RowDoubleClick : TableEvent(table, rowIndex, cellIndex, event)
Fires after a row is double clicked.
SortChange : TableEvent(table, colIndex, sortDir)
Fires before the table is sorted. Listeners can cancel the action by calling BaseEvent.setCancelled(boolean).
BeforeSelect : TableEvent(table, item)
Fires before a item is selected. Listeners can cancel the action by calling BaseEvent.setCancelled(boolean).
SelectionChange : TableEvent(table, selected)
Fires after a item has been removed.
KeyPress : TableEvent(table)
Fires before the table is sorted. Listeners can cancel the action by calling BaseEvent.setCancelled(boolean).
HeaderContextMenu : TableEvent(table, colIndex, menu)
Fires right before the header's context menu is displayed.
Inherited Events:
BoxComponent Move
BoxComponent Resize
Component Enable
Component Disable
Component BeforeHide
Component Hide
Component BeforeShow
Component Show
Component Attach
Component Detach
Component BeforeRender
Component Render
Component BrowserEvent
Component BeforeStateRestore
Component StateRestore
Component BeforeStateSave
Component SaveState
CSS:
.my-tbl-col-[column id] { each column }
.my-tbl-td-[column index] { cell td }
.my-tbl-td-inner-[column index] { cell inner element }
.my-tbl-td-cell-[column index] { cell text element }

See Also:
TableColumn, TableColumnModel

Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
 
Field Summary
protected  boolean bulkRender
          Deprecated.  
protected  TableColumnModel cm
          Deprecated. The table's column model.
protected  TableHeader header
          Deprecated. The table header.
protected  TableSelectionModel sm
          Deprecated. The selection model.
 
Fields inherited from class com.extjs.gxt.ui.client.widget.Container
attachChildren, enableLayout, layoutExecuted, layoutNeeded, layoutOnAttach, layoutOnChange
 
Fields inherited from class com.extjs.gxt.ui.client.widget.BoxComponent
adjustSize, cacheSizes, ensureVisibilityOnSizing, height, layer, shim, width
 
Fields inherited from class com.extjs.gxt.ui.client.widget.Component
afterRender, attachables, baseStyle, disabled, disabledStyle, disableTextSelection, dummy, focusable, hidden, mask, maskMessage, maskMessageStyleName, monitorWindowResize, rendered, resizeHandler, setElementRender, stateId, swallowEvents, toolTip, windowResizeDelay, windowResizeTask
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
Table()
          Deprecated. Creates a new single select table.
Table(TableColumnModel cm)
          Deprecated. Creates a new table.
 
Method Summary
 boolean add(TableItem item)
          Deprecated. Adds a item to the container.
 void addTableListener(TableListener listener)
          Deprecated. Adds a table listener.
protected  ComponentEvent createComponentEvent(com.google.gwt.user.client.Event event)
          Deprecated.  
protected  ContainerEvent createContainerEvent(TableItem item)
          Deprecated.  
protected  void doAttachChildren()
          Deprecated.  
protected  void doDetachChildren()
          Deprecated.  
 TableItem findItem(com.google.gwt.user.client.Element elem)
          Deprecated. Returns the component whose element, or child element, matches the given element.
 boolean getBulkRender()
          Deprecated. Returns true if bulk rendering is enabled.
 TableColumn getColumn(int index)
          Deprecated. Returns the column at the specified index.
 TableColumn getColumn(java.lang.String id)
          Deprecated. Returns the column with the given id.
 boolean getColumnContextMenu()
          Deprecated. Returns the column context menu enabed state.
 int getColumnCount()
          Deprecated. Returns the number of columns contained in the table.
 TableColumnModel getColumnModel()
          Deprecated. Returns the table's column model.
 Menu getContextMenu()
          Deprecated. Returns the component's context menu.
 boolean getHighlight()
          Deprecated. Returns true if highlights are enabled.
 boolean getHorizontalScroll()
          Deprecated. Returns true if horizontal scrolling is enabled
protected  java.lang.String getRenderedValue(TableItem item, int column, java.lang.Object value)
          Deprecated.  
 TableItem getSelectedItem()
          Deprecated. Returns the selected item.
 java.util.List<TableItem> getSelectedItems()
          Deprecated. Returns the selected items.
 Style.SelectionMode getSelectionMode()
          Deprecated.  
 TableSelectionModel getSelectionModel()
          Deprecated. Returns the table's selection model.
 TableHeader getTableHeader()
          Deprecated. Returns the table's header.
 boolean getVerticalLines()
          Deprecated. Returns true if vertical lines are enabled.
 TableView getView()
          Deprecated. Returns the table's view.
 boolean insert(TableItem item, int index)
          Deprecated. Adds a item into the container.
 boolean isStripeRows()
          Deprecated. Returns true if row striping is enabled.
 void onAttach()
          Deprecated.  
 void onBrowserEvent(com.google.gwt.user.client.Event event)
          Deprecated. Components delegate event handling to Component.onComponentEvent(ComponentEvent).
 void onComponentEvent(ComponentEvent ce)
          Deprecated. Any events a component receives will be forwarded to this method.
protected  void onKeyPress(TableEvent te)
          Deprecated.  
protected  void onRender(com.google.gwt.user.client.Element target, int index)
          Deprecated. Subclasses must override and ensure setElement is called for lazy rendered components.
protected  void onResize(int width, int height)
          Deprecated. Called after the component is resized, this method is empty by default but can be implemented by any subclass that needs to perform custom logic after a resize occurs.
 void onSelectChange(TableItem item, boolean select)
          Deprecated. Called when the visual state of a item is changed.
protected  void onShowContextMenu(int x, int y)
          Deprecated.  
protected  ComponentEvent previewEvent(EventType type, ComponentEvent ce)
          Deprecated.  
 void recalculate()
          Deprecated. Called when the component is in a LayoutContainer and the container's layout executes.
 boolean remove(TableItem item)
          Deprecated. Removes the item from the container.
 void removeTableLisetener(TableListener listener)
          Deprecated. Remvoves a table listener.
 void scrollIntoView(TableItem item)
          Deprecated. Scrolls the item into view.
 void setBulkRender(boolean bulkRender)
          Deprecated. True to bulk render the table when first rendered (defaults to true).
 void setColumnContextMenu(boolean columnContextMenu)
          Deprecated. Sets whether the table header context menu is displayed (defaults to true).
 void setColumnModel(TableColumnModel cm)
          Deprecated. Sets the table's column model.
 void setContextMenu(Menu menu)
          Deprecated. Sets the component's context menu.
 void setHighlight(boolean highlight)
          Deprecated. True to highlight the current row (defaults to true).
 void setHorizontalScroll(boolean horizontalScroll)
          Deprecated. True to display a horizonatal scroll bar when needed (defaults to true).
 void setSelectedItem(TableItem item)
          Deprecated. Selects the item.
 void setSelectedItems(java.util.List<TableItem> items)
          Deprecated. Selects the items.
 void setSelectionMode(Style.SelectionMode mode)
          Deprecated. Sets the table's selection mode.
 void setSelectionModel(TableSelectionModel sm)
          Deprecated. Sets the table's selection model.
 void setStripeRows(boolean stripeRows)
          Deprecated. True to stripe the rows (defaults to false).
 void setTableHeader(TableHeader header)
          Deprecated. Sets the table's header.
 void setVerticalLines(boolean verticalLines)
          Deprecated. True to display vertical borders on the table data (defaults to false).
 void setView(TableView view)
          Deprecated. Sets the table's view.
 void sort(int index, Style.SortDir sortDir)
          Deprecated. Sorts the table using the specified column index.
 
Methods inherited from class com.extjs.gxt.ui.client.widget.Container
adjustIndex, adopt, disable, doLayout, doLayout, enable, getItem, getItemByItemId, getItemCount, getItems, getLayout, getLayoutTarget, getWidget, indexOf, isLayoutNeeded, iterator, layout, layout, notifyHide, notifyShow, onAfterLayout, onBeforeLayoutExcecuted, onInsert, onLayoutExcecuted, onRemove, orphan, remove, removeAll, removeAll, setLayout, setLayoutNeeded, setLayoutOnChange, wrapWidget
 
Methods inherited from class com.extjs.gxt.ui.client.widget.BoxComponent
adjustPosition, adjustSize, afterRender, getBounds, getHeight, getHeight, getPosition, getPositionEl, getResizeEl, getShadow, getShadowOffset, getShadowPosition, getSize, getWidth, getWidth, hideShadow, hideShim, hideUnders, isAutoHeight, isAutoWidth, isDeferHeight, isShim, onHide, onPosition, onShow, onUnload, setAutoHeight, setAutoWidth, setBounds, setBounds, setDeferHeight, setHeight, setHeight, setPagePosition, setPagePosition, setPixelSize, setPosition, setShadow, setShadowOffset, setShadowPosition, setShim, setSize, setSize, setWidth, setWidth, sync, syncSize
 
Methods inherited from class com.extjs.gxt.ui.client.widget.Component
addAttachable, addListener, addPlugin, addStyleName, addStyleOnOver, addWidgetListener, applyState, assertAfterRender, assertPreRender, beforeRender, blur, clearState, createObservable, createStyles, disableContextMenu, disableEvents, disableTextSelection, el, enableEvents, fireEvent, fireEvent, fireEvent, fly, focus, frame, getAriaSupport, getBaseStyle, getBorders, getData, getElement, getFocusEl, getFocusSupport, getHideMode, getId, getItemId, getListeners, getModel, getObservable, getPlugins, getState, getStateId, getTabIndex, getTitle, getToolTip, getWindowResizeDelay, hasListeners, hasListeners, hide, hideToolTip, initState, isDisabledEvents, isDisableTextSelection, isEnabled, isMasked, isMonitorWindowResize, isRendered, isStateful, isVisible, isVisible, mask, mask, mask, onDetach, onDetachHelper, onDisable, onEnable, onEnsureDebugId, onHideContextMenu, onLoad, onRightClick, onWindowResize, removeAllListeners, removeAttachagle, removeFromParent, removeListener, removeStyleName, removeStyleOnOver, removeSwallow, removeToolTip, removeWidgetListener, render, render, repaint, saveState, setAriaRole, setAriaState, setAriaSupport, setBorders, setData, setEl, setElement, setElement, setEnabled, setFiresEvents, setHideMode, setId, setIntStyleAttribute, setItemId, setModel, setMonitorWindowResize, setParent, setStateful, setStateId, setStyleAttribute, setStyleName, setTabIndex, setTitle, setToolTip, setToolTip, setVisible, setWindowResizeDelay, setZIndex, show, sinkEvents, swallowEvent, swallowEvent, toString, unframe, unmask
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, setLayoutData
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, removeStyleDependentName, setElement, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, sinkBitlessEvent, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

cm

protected TableColumnModel cm
Deprecated. 
The table's column model.


sm

protected TableSelectionModel sm
Deprecated. 
The selection model.


header

protected TableHeader header
Deprecated. 
The table header.


bulkRender

protected boolean bulkRender
Deprecated. 
Constructor Detail

Table

public Table()
Deprecated. 
Creates a new single select table. A column model must be set before the table is rendered.


Table

public Table(TableColumnModel cm)
Deprecated. 
Creates a new table.

Parameters:
cm - the column model
Method Detail

add

public boolean add(TableItem item)
Deprecated. 
Description copied from class: Container
Adds a item to the container. Fires the BeforeAdd event before inserting, then fires the Add event after the widget has been inserted.

Overrides:
add in class Container<TableItem>
Parameters:
item - the item to be added

addTableListener

public void addTableListener(TableListener listener)
Deprecated. 
Adds a table listener.

Parameters:
listener - thet able listener

findItem

public TableItem findItem(com.google.gwt.user.client.Element elem)
Deprecated. 
Description copied from class: Container
Returns the component whose element, or child element, matches the given element.

Overrides:
findItem in class Container<TableItem>
Parameters:
elem - the element
Returns:
the matching component or null if no match

getBulkRender

public boolean getBulkRender()
Deprecated. 
Returns true if bulk rendering is enabled.

Returns:
the bulk rendering state

getColumn

public TableColumn getColumn(int index)
Deprecated. 
Returns the column at the specified index.

Specified by:
getColumn in interface BaseTable
Parameters:
index - the column index
Returns:
the column

getColumn

public TableColumn getColumn(java.lang.String id)
Deprecated. 
Returns the column with the given id.

Parameters:
id - the column id
Returns:
the column

getColumnContextMenu

public boolean getColumnContextMenu()
Deprecated. 
Returns the column context menu enabed state.

Specified by:
getColumnContextMenu in interface BaseTable
Returns:
true if enabled, false otherwise.

getColumnCount

public int getColumnCount()
Deprecated. 
Returns the number of columns contained in the table.

Returns:
the number of columns

getColumnModel

public TableColumnModel getColumnModel()
Deprecated. 
Returns the table's column model.

Specified by:
getColumnModel in interface BaseTable
Returns:
the column model

getContextMenu

public Menu getContextMenu()
Deprecated. 
Description copied from class: Component
Returns the component's context menu.

Overrides:
getContextMenu in class Component
Returns:
the context menu

getHighlight

public boolean getHighlight()
Deprecated. 
Returns true if highlights are enabled.

Returns:
true if mouse overs are enable

getHorizontalScroll

public boolean getHorizontalScroll()
Deprecated. 
Returns true if horizontal scrolling is enabled

Returns:
the horizontal scroll state

getSelectedItem

public TableItem getSelectedItem()
Deprecated. 
Description copied from interface: Selectable
Returns the selected item.

Specified by:
getSelectedItem in interface Selectable<TableItem>
Returns:
the selected item

getSelectedItems

public java.util.List<TableItem> getSelectedItems()
Deprecated. 
Description copied from interface: Selectable
Returns the selected items. For single-select, the last selected item is returned.

Specified by:
getSelectedItems in interface Selectable<TableItem>
Returns:
the selected items

getSelectionMode

public Style.SelectionMode getSelectionMode()
Deprecated. 

getSelectionModel

public TableSelectionModel getSelectionModel()
Deprecated. 
Returns the table's selection model.

Returns:
the selection model

getTableHeader

public TableHeader getTableHeader()
Deprecated. 
Returns the table's header.

Specified by:
getTableHeader in interface BaseTable
Returns:
the table header

getVerticalLines

public boolean getVerticalLines()
Deprecated. 
Returns true if vertical lines are enabled.

Returns:
the vertical lines state

getView

public TableView getView()
Deprecated. 
Returns the table's view.

Returns:
the view

insert

public boolean insert(TableItem item,
                      int index)
Deprecated. 
Description copied from class: Container
Adds a item into the container. Fires the BeforeAdd event before inserting, then fires the Add event after the widget has been inserted.

Overrides:
insert in class Container<TableItem>
Parameters:
item - the item to insert
index - the insert location

isStripeRows

public boolean isStripeRows()
Deprecated. 
Returns true if row striping is enabled.

Returns:
the strip row state

onAttach

public void onAttach()
Deprecated. 
Overrides:
onAttach in class Container<TableItem>

onBrowserEvent

public void onBrowserEvent(com.google.gwt.user.client.Event event)
Deprecated. 
Description copied from class: Component
Components delegate event handling to Component.onComponentEvent(ComponentEvent). Subclasses should not override.

Specified by:
onBrowserEvent in interface com.google.gwt.user.client.EventListener
Overrides:
onBrowserEvent in class Component
Parameters:
event - the dom event

onComponentEvent

public void onComponentEvent(ComponentEvent ce)
Deprecated. 
Description copied from class: Component
Any events a component receives will be forwarded to this method. Subclasses should override as needed. The Component.onBrowserEvent(com.google.gwt.user.client.Event) method should not be overridden or modified.

Overrides:
onComponentEvent in class Component
Parameters:
ce - the base event

onSelectChange

public void onSelectChange(TableItem item,
                           boolean select)
Deprecated. 
Description copied from interface: Selectable
Called when the visual state of a item is changed.

Specified by:
onSelectChange in interface Selectable<TableItem>
Parameters:
item - the item
select - the select state

recalculate

public void recalculate()
Deprecated. 
Description copied from class: Component
Called when the component is in a LayoutContainer and the container's layout executes. This method will not be called on container instances. Default implementation does nothing.

Overrides:
recalculate in class Component

remove

public boolean remove(TableItem item)
Deprecated. 
Description copied from class: Container
Removes the item from the container. Fires the BeforeRemove event before removing, then fires the Remove event after the widget has been removed.

Overrides:
remove in class Container<TableItem>
Parameters:
item - the item to remove
Returns:
true if the item was removed

removeTableLisetener

public void removeTableLisetener(TableListener listener)
Deprecated. 
Remvoves a table listener.

Parameters:
listener - the table listener

scrollIntoView

public void scrollIntoView(TableItem item)
Deprecated. 
Description copied from class: Container
Scrolls the item into view.

Overrides:
scrollIntoView in class Container<TableItem>
Parameters:
item - the item

setBulkRender

public void setBulkRender(boolean bulkRender)
Deprecated. 
True to bulk render the table when first rendered (defaults to true). When true, widget are not supported in table cells.

Parameters:
bulkRender - true for bulk rendering

setColumnContextMenu

public void setColumnContextMenu(boolean columnContextMenu)
Deprecated. 
Sets whether the table header context menu is displayed (defaults to true).

Parameters:
columnContextMenu - the column context menu sate

setColumnModel

public void setColumnModel(TableColumnModel cm)
Deprecated. 
Sets the table's column model.

Parameters:
cm - the column model

setContextMenu

public void setContextMenu(Menu menu)
Deprecated. 
Description copied from class: Component
Sets the component's context menu.

Overrides:
setContextMenu in class Component
Parameters:
menu - the context menu

setHighlight

public void setHighlight(boolean highlight)
Deprecated. 
True to highlight the current row (defaults to true).

Parameters:
highlight - the highlight state

setHorizontalScroll

public void setHorizontalScroll(boolean horizontalScroll)
Deprecated. 
True to display a horizonatal scroll bar when needed (defaults to true).

Parameters:
horizontalScroll - the horizontal scroll state

setSelectedItem

public void setSelectedItem(TableItem item)
Deprecated. 
Description copied from interface: Selectable
Selects the item. Any existing selections are cleared.

Specified by:
setSelectedItem in interface Selectable<TableItem>
Parameters:
item - the item to select

setSelectedItems

public void setSelectedItems(java.util.List<TableItem> items)
Deprecated. 
Description copied from interface: Selectable
Selects the items. Only the first item is selected for single-select. Any existing selections are cleared.

Specified by:
setSelectedItems in interface Selectable<TableItem>
Parameters:
items - the items to select

setSelectionMode

public void setSelectionMode(Style.SelectionMode mode)
Deprecated. 
Sets the table's selection mode.

Parameters:
mode - the selection mode

setSelectionModel

public void setSelectionModel(TableSelectionModel sm)
Deprecated. 
Sets the table's selection model.

Parameters:
sm - the selection model

setStripeRows

public void setStripeRows(boolean stripeRows)
Deprecated. 
True to stripe the rows (defaults to false).

Parameters:
stripeRows - true to strip rows

setTableHeader

public void setTableHeader(TableHeader header)
Deprecated. 
Sets the table's header. Should only be called when providing a custom table header. Has no effect if called after the table has been rendered.

Parameters:
header - the table header

setVerticalLines

public void setVerticalLines(boolean verticalLines)
Deprecated. 
True to display vertical borders on the table data (defaults to false).

Parameters:
verticalLines - true for vertical lines

setView

public void setView(TableView view)
Deprecated. 
Sets the table's view. Provides a way to provide specialized views. table views.

Parameters:
view - the view

sort

public void sort(int index,
                 Style.SortDir sortDir)
Deprecated. 
Sorts the table using the specified column index.

Specified by:
sort in interface BaseTable
Parameters:
index - the column index
sortDir - the direction to sort (NONE, ASC, DESC)

createComponentEvent

protected ComponentEvent createComponentEvent(com.google.gwt.user.client.Event event)
Deprecated. 
Overrides:
createComponentEvent in class BoxComponent

createContainerEvent

protected ContainerEvent createContainerEvent(TableItem item)
Deprecated. 
Overrides:
createContainerEvent in class Container<TableItem>

doAttachChildren

protected void doAttachChildren()
Deprecated. 
Overrides:
doAttachChildren in class Container<TableItem>

doDetachChildren

protected void doDetachChildren()
Deprecated. 
Overrides:
doDetachChildren in class Container<TableItem>

getRenderedValue

protected java.lang.String getRenderedValue(TableItem item,
                                            int column,
                                            java.lang.Object value)
Deprecated. 

onKeyPress

protected void onKeyPress(TableEvent te)
Deprecated. 

onRender

protected void onRender(com.google.gwt.user.client.Element target,
                        int index)
Deprecated. 
Description copied from class: Component
Subclasses must override and ensure setElement is called for lazy rendered components.

Overrides:
onRender in class Component
Parameters:
target - the target element
index - the insert location

onResize

protected void onResize(int width,
                        int height)
Deprecated. 
Description copied from class: BoxComponent
Called after the component is resized, this method is empty by default but can be implemented by any subclass that needs to perform custom logic after a resize occurs.

Overrides:
onResize in class BoxComponent
Parameters:
width - the width
height - the height

onShowContextMenu

protected void onShowContextMenu(int x,
                                 int y)
Deprecated. 
Overrides:
onShowContextMenu in class Component

previewEvent

protected ComponentEvent previewEvent(EventType type,
                                      ComponentEvent ce)
Deprecated. 
Overrides:
previewEvent in class Component