Package com.vaadin.featurepack.ui
Class FGrid.AbstractGridExtension
java.lang.Object
com.vaadin.featurepack.ui.FGrid.AbstractGridExtension
- All Implemented Interfaces:
ClientConnector,FAbstractClientConnector,Serializable
- Direct Known Subclasses:
FGrid.AbstractRenderer
- Enclosing class:
FGrid
public abstract static class FGrid.AbstractGridExtension
extends Object
implements FAbstractClientConnector, Serializable
An abstract base class for server-side Grid extensions.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.vaadin.featurepack.server.ClientConnector
ClientConnector.AttachEvent, ClientConnector.AttachListener, ClientConnector.DetachEvent, ClientConnector.DetachListenerNested classes/interfaces inherited from interface com.vaadin.featurepack.server.FAbstractClientConnector
FAbstractClientConnector.LegacyMethodEvent -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new Grid extension.AbstractGridExtension(FGrid grid) Constructs a new Grid extension and extends given Grid. -
Method Summary
Modifier and TypeMethodDescriptionprotected FGrid.ColumnGets the column for a column id.protected Objectprotected ObjectGets the item id for a row key.protected FGridGets the parent Grid of the renderer.protected voidrefreshRow(Object itemId) Resends the row data for given item id to the client.voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.featurepack.server.FAbstractClientConnector
addLegacyAttachListener, addLegacyDetachListener, addListener, addListener, attach, beforeClientResponse, detach, doConnectorOnAttach, doConnectorOnDetach, fireEvent, fireEvent, getAllChildrenIterable, getFListeners, getFlowComponent, getResource, hasListeners, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeListener, removeListener, setResource
-
Constructor Details
-
AbstractGridExtension
public AbstractGridExtension()Constructs a new Grid extension. -
AbstractGridExtension
Constructs a new Grid extension and extends given Grid.- Parameters:
grid- a grid instance
-
-
Method Details
-
getFParent
- Specified by:
getFParentin interfaceClientConnector
-
getItemId
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
-
getItemId
-
getColumn
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
Gets the parent Grid of the renderer.- Returns:
- parent grid
- Throws:
IllegalStateException- if parent is not Grid
-
setParent
-
refreshRow
Resends the row data for given item id to the client.- Parameters:
itemId- row to refresh
-