org.cruxframework.crux.core.rebind.screen.widget
Class LazyPanelFactory
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LazyPanelFactory
public LazyPanelFactory(ViewFactoryCreator factory)
- Singleton constructor
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 widgettargetPanelId - Identifier of the parent panel, that required the lazy wrapping operation.wrappingType - the lazyPanel wrapping model.
- Returns:
Copyright © 2014. All rights reserved.