org.cruxframework.crux.core.rebind.screen.widget
Class LazyPanelFactory

java.lang.Object
  extended by org.cruxframework.crux.core.rebind.screen.widget.LazyPanelFactory

public class LazyPanelFactory
extends Object

A Factory that wraps an element with a panel which content is only rendered when it is accessed for the first time.

Author:
Thiago da Rosa de Bustamante

Constructor Summary
LazyPanelFactory(ViewFactoryCreator factory)
          Singleton constructor
 
Method Summary
 String getLazyPanel(AbstractProxyCreator.SourcePrinter factoryPrinter, JSONObject element, String targetPanelId, LazyPanelWrappingType wrappingType)
          Create an wrapper lazyPanel capable of creating an widget for the given CruxMetaData element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LazyPanelFactory

public LazyPanelFactory(ViewFactoryCreator factory)
Singleton constructor

Method Detail

getLazyPanel

public String getLazyPanel(AbstractProxyCreator.SourcePrinter factoryPrinter,
                           JSONObject element,
                           String targetPanelId,
                           LazyPanelWrappingType wrappingType)
Create an wrapper lazyPanel capable of creating an widget for the given CruxMetaData element.

Parameters:
factoryPrinter - Printer for the calling factory method.
element - CruxMetaData element that will be used to create the wrapped widget
targetPanelId - Identifier of the parent panel, that required the lazy wrapping operation.
wrappingType - the lazyPanel wrapping model.
Returns:


Copyright © 2014. All rights reserved.