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

java.lang.Object
  extended by org.cruxframework.crux.core.rebind.screen.widget.WidgetCreatorContext
Direct Known Subclasses:
CellPanelContext, HTMLTableFactoryContext, ListBoxContext

public class WidgetCreatorContext
extends Object

Author:
Thiago da Rosa de Bustamante

Constructor Summary
WidgetCreatorContext()
           
 
Method Summary
 JSONObject getChildElement()
           
 String getWidget()
           
 ViewFactoryCreator.WidgetConsumer getWidgetConsumer()
           
 JSONObject getWidgetElement()
           
 String getWidgetId()
           
 boolean readBooleanChildProperty(String propertyName, boolean defaultValue)
           
 boolean readBooleanWidgetProperty(String propertyName, boolean defaultValue)
           
 String readChildProperty(String propertyName)
           
 String readChildProperty(String propertyName, String defaultValue)
           
 String readWidgetProperty(String propertyName)
           
 String readWidgetProperty(String propertyName, String defaultValue)
           
 void setChildElement(JSONObject childElement)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WidgetCreatorContext

public WidgetCreatorContext()
Method Detail

getWidgetElement

public JSONObject getWidgetElement()

getWidget

public String getWidget()

getWidgetId

public String getWidgetId()

readWidgetProperty

public String readWidgetProperty(String propertyName)

readWidgetProperty

public String readWidgetProperty(String propertyName,
                                 String defaultValue)

readBooleanWidgetProperty

public boolean readBooleanWidgetProperty(String propertyName,
                                         boolean defaultValue)

readChildProperty

public String readChildProperty(String propertyName)

readChildProperty

public String readChildProperty(String propertyName,
                                String defaultValue)

readBooleanChildProperty

public boolean readBooleanChildProperty(String propertyName,
                                        boolean defaultValue)

setChildElement

public void setChildElement(JSONObject childElement)

getChildElement

public JSONObject getChildElement()

getWidgetConsumer

public ViewFactoryCreator.WidgetConsumer getWidgetConsumer()


Copyright © 2014. All rights reserved.