|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vaadin.server.AbstractClientConnector
com.vaadin.server.AbstractExtension
com.vaadin.ui.Grid.AbstractGridExtension
public abstract static class Grid.AbstractGridExtension
An abstract base class for server-side Grid extensions.
Note: If the extension is an instance of DataGenerator it will
automatically register itself to RpcDataProviderExtension of
extended Grid. On remove this registration is automatically removed.
| 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 void |
addComponentToGrid(Component c)
Informs the parent Grid that this Extension wants to add a child component to it. |
protected void |
extend(AbstractClientConnector target)
Add this extension to the target connector. |
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. |
protected void |
refreshRow(java.lang.Object itemId)
Resends the row data for given item id to the client. |
void |
remove()
Remove this extension from its target. |
protected void |
removeComponentFromGrid(Component c)
Informs the parent Grid that this Extension wants to remove a child component from it. |
| Methods inherited from class com.vaadin.server.AbstractExtension |
|---|
getParent, getSupportedParentType, setParent |
| 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 |
|---|
public Grid.AbstractGridExtension()
public Grid.AbstractGridExtension(Grid grid)
grid - a grid instance| Method Detail |
|---|
protected void extend(AbstractClientConnector target)
AbstractExtension
extend in class AbstractExtensiontarget - the connector to attach this extension topublic void remove()
Extension
remove in interface Extensionremove in class AbstractExtensionprotected java.lang.Object getItemId(java.lang.String rowKey)
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.
rowKey - the row key for which to retrieve an item id
keyprotected Grid.Column getColumn(java.lang.String columnId)
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.
columnId - the column id for which to retrieve a column
columnIdprotected Grid getParentGrid()
java.lang.IllegalStateException - if parent is not Gridprotected void refreshRow(java.lang.Object itemId)
itemId - row to refreshprotected void addComponentToGrid(Component c)
c - componentprotected void removeComponentFromGrid(Component c)
c - component
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||