public class ViewFactory extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
clearViewCache()
Clear the screen cache
|
static ViewFactory |
getInstance()
Singleton method
|
View |
getView(String id,
String device)
Factory method for views.
|
View |
getView(String id,
String device,
Document view,
boolean rootView)
Factory method for views.
|
boolean |
isValidWidget(JSONObject cruxObject)
Test if a target json object represents a widget definition for Crux.
|
public static ViewFactory getInstance()
public void clearViewCache()
public View getView(String id, String device) throws ScreenConfigException
id - viewIddevice - device property for this permutation being compiledScreenConfigExceptionpublic View getView(String id, String device, Document view, boolean rootView) throws ScreenConfigException
id - view - rootView - ScreenConfigExceptionpublic boolean isValidWidget(JSONObject cruxObject) throws JSONException
cruxObject - JSONExceptionCopyright © 2015. All rights reserved.