com.vaadin.ui
Class Grid.AbstractGridExtension

java.lang.Object
  extended by com.vaadin.server.AbstractClientConnector
      extended by com.vaadin.server.AbstractExtension
          extended by com.vaadin.ui.Grid.AbstractGridExtension
All Implemented Interfaces:
MethodEventSource, ClientConnector, Extension, com.vaadin.shared.Connector, java.io.Serializable
Direct Known Subclasses:
Grid.AbstractRenderer
Enclosing class:
Grid

public abstract static class Grid.AbstractGridExtension
extends AbstractExtension

An abstract base class for server-side Grid extensions.

Since:
7.5
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.vaadin.server.ClientConnector
ClientConnector.AttachEvent, ClientConnector.AttachListener, ClientConnector.ConnectorErrorEvent, ClientConnector.DetachEvent, ClientConnector.DetachListener
 
Constructor Summary
Grid.AbstractGridExtension()
          Constructs a new Grid extension.
Grid.AbstractGridExtension(Grid grid)
          Constructs a new Grid extension and extends given Grid.
 
Method Summary
protected  Grid.Column getColumn(java.lang.String columnId)
          Gets the column for a column id.
protected  java.lang.Object getItemId(java.lang.String rowKey)
          Gets the item id for a row key.
protected  Grid getParentGrid()
          Gets the parent Grid of the renderer.
 
Methods inherited from class com.vaadin.server.AbstractExtension
extend, getParent, getSupportedParentType, remove, setParent
 
Methods inherited from class com.vaadin.server.AbstractClientConnector
addAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, addMethodInvocationToQueue, attach, beforeClientResponse, createState, detach, encodeState, equals, fireEvent, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getListeners, getResource, getRpcManager, getRpcProxy, getSession, getState, getState, getStateType, getUI, handleConnectorRequest, hashCode, hasListeners, isAttached, isConnectorEnabled, isThis, markAsDirty, markAsDirtyRecursive, registerRpc, registerRpc, removeAttachListener, removeDetachListener, removeExtension, removeListener, removeListener, removeListener, removeListener, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler, setResource
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.vaadin.server.ClientConnector
addAttachListener, addDetachListener, attach, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, getUI, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
 
Methods inherited from interface com.vaadin.shared.Connector
getConnectorId
 

Constructor Detail

Grid.AbstractGridExtension

public Grid.AbstractGridExtension()
Constructs a new Grid extension.


Grid.AbstractGridExtension

public Grid.AbstractGridExtension(Grid grid)
Constructs a new Grid extension and extends given Grid.

Parameters:
grid - a grid instance
Method Detail

getItemId

protected java.lang.Object getItemId(java.lang.String rowKey)
Gets the item id for a row key.

A key is used to identify a particular row on both a server and a client. This method can be used to get the item id for the row key that the client has sent.

Parameters:
rowKey - the row key for which to retrieve an item id
Returns:
the item id corresponding to key

getColumn

protected Grid.Column getColumn(java.lang.String columnId)
Gets the column for a column id.

An id is used to identify a particular column on both a server and a client. This method can be used to get the column for the column id that the client has sent.

Parameters:
columnId - the column id for which to retrieve a column
Returns:
the column corresponding to columnId

getParentGrid

protected Grid getParentGrid()
Gets the parent Grid of the renderer.

Returns:
parent grid
Throws:
java.lang.IllegalStateException - if parent is not Grid


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