com.vaadin.data
Class RpcDataProviderExtension.DetailComponentManager

java.lang.Object
  extended by com.vaadin.data.RpcDataProviderExtension.DetailComponentManager
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
RpcDataProviderExtension

public static final class RpcDataProviderExtension.DetailComponentManager
extends java.lang.Object
implements java.io.Serializable

A class that makes detail component related internal communication possible between RpcDataProviderExtension and grid.

Since:
7.5.0
Author:
Vaadin Ltd
See Also:
Serialized Form

Constructor Summary
RpcDataProviderExtension.DetailComponentManager()
           
 
Method Summary
 void createDetails(java.lang.Object itemId)
          Creates a details component by the request of the client side, with the help of the user-defined Grid.DetailsGenerator.
 void destroyDetails(java.lang.Object itemId)
          Destroys correctly a details component, by the request of the client side.
 java.util.Collection<Component> getComponents()
          Gets all details components that are currently attached to the grid.
 void refresh(java.lang.Object itemId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RpcDataProviderExtension.DetailComponentManager

public RpcDataProviderExtension.DetailComponentManager()
Method Detail

createDetails

public void createDetails(java.lang.Object itemId)
                   throws java.lang.IllegalStateException
Creates a details component by the request of the client side, with the help of the user-defined Grid.DetailsGenerator.

Also keeps internal bookkeeping up to date.

Parameters:
itemId - the item id for which to create the details component. Assumed not null and that a component is not currently present for this item previously
Throws:
java.lang.IllegalStateException - if the current details generator provides a component that was manually attached, or if the same instance has already been provided

destroyDetails

public void destroyDetails(java.lang.Object itemId)
Destroys correctly a details component, by the request of the client side.

Also keeps internal bookkeeping up to date.

Parameters:
itemId - the item id for which to destroy the details component

getComponents

public java.util.Collection<Component> getComponents()
Gets all details components that are currently attached to the grid.

Used internally by the Grid object.

Returns:
all details components that are currently attached to the grid

refresh

public void refresh(java.lang.Object itemId)


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