org.cruxframework.crux.widgets.client.grid
Class RowDetailsManager

java.lang.Object
  extended by org.cruxframework.crux.widgets.client.grid.RowDetailsManager

public class RowDetailsManager
extends Object

Manages the logic for create, index and destroy the widgets used as row's details.

Author:
Gesse Dafe

Constructor Summary
RowDetailsManager(RowDetailWidgetCreator rowDetailWidgetCreator)
           
 
Method Summary
 com.google.gwt.user.client.ui.Widget createWidget(DataRow row)
          Creates the widget to be used as a row detail
 boolean isDetailLoaded(DataSourceRecord<?> record)
           
 void reset()
          Clears the index of loaded details and destroys the related widgets.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RowDetailsManager

public RowDetailsManager(RowDetailWidgetCreator rowDetailWidgetCreator)
Parameters:
rowDetailsDefinition -
Method Detail

reset

public void reset()
Clears the index of loaded details and destroys the related widgets.


createWidget

public com.google.gwt.user.client.ui.Widget createWidget(DataRow row)
Creates the widget to be used as a row detail

Returns:

isDetailLoaded

public boolean isDetailLoaded(DataSourceRecord<?> record)
Returns:
true if the details related to this record have already being loaded.


Copyright © 2014. All rights reserved.