|
||||||||||
| 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
com.vaadin.ui.Grid.DetailComponentManager
public static final class Grid.DetailComponentManager
A class that manages details components by calling
Grid.DetailsGenerator as needed. Details components are attached by
this class when the RpcDataProviderExtension is sending data to
the client. Details components are detached and forgotten when client
informs that it has dropped the corresponding item.
| 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.DetailComponentManager(Grid grid)
|
|
Grid.DetailComponentManager(Grid grid,
Grid.DetailsGenerator detailsGenerator)
|
|
| Method Summary | |
|---|---|
void |
destroyData(java.lang.Object itemId)
Informs the DataGenerator that an item id has been dropped and is no longer needed. |
void |
generateData(java.lang.Object itemId,
Item item,
elemental.json.JsonObject rowData)
Adds data to row object for given item and item id being sent to client. |
Grid.DetailsGenerator |
getDetailsGenerator()
Gets the current details generator for row details. |
boolean |
isDetailsVisible(java.lang.Object itemId)
Checks whether details are visible for the given item. |
void |
refreshDetails()
Recreates all visible details components. |
void |
setDetailsGenerator(Grid.DetailsGenerator detailsGenerator)
Sets a new details generator for row details. |
void |
setDetailsVisible(java.lang.Object itemId,
boolean visible)
Sets details visiblity status of given item id. |
| Methods inherited from class com.vaadin.ui.Grid.AbstractGridExtension |
|---|
addComponentToGrid, extend, getColumn, getItemId, getParentGrid, refreshRow, remove, removeComponentFromGrid |
| 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.DetailComponentManager(Grid grid)
public Grid.DetailComponentManager(Grid grid,
Grid.DetailsGenerator detailsGenerator)
| Method Detail |
|---|
public void refreshDetails()
public void setDetailsVisible(java.lang.Object itemId,
boolean visible)
itemId - item id to setvisible - true if visible; false if not
public void generateData(java.lang.Object itemId,
Item item,
elemental.json.JsonObject rowData)
DataGenerator
generateData in interface DataGeneratoritemId - item id of itemitem - item being sent to clientrowData - row object being sent to clientpublic void destroyData(java.lang.Object itemId)
DataGenerator
destroyData in interface DataGeneratoritemId - removed item id
public void setDetailsGenerator(Grid.DetailsGenerator detailsGenerator)
throws java.lang.IllegalArgumentException
The currently opened row details will be re-rendered.
detailsGenerator - the details generator to set
java.lang.IllegalArgumentException - if detailsGenerator is null;public Grid.DetailsGenerator getDetailsGenerator()
public boolean isDetailsVisible(java.lang.Object itemId)
itemId - the id of the item for which to check details visibility
true iff the details are visible
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||