org.cruxframework.crux.core.client.screen.views
Interface ViewFactory


public interface ViewFactory

Create the view, based on the .crux.xml page. Do not use this class directly.

Author:
Thiago da Rosa de Bustamante

Nested Class Summary
static interface ViewFactory.CreateCallback
          A callback called when the requested view is created
 
Method Summary
 void createView(String viewName, String viewId, ViewFactory.CreateCallback callback)
          Create the view for the informed view Name
 void createView(String viewName, ViewFactory.CreateCallback callback)
          Create the view for the informed view Name
 DeviceAdaptive.Device getCurrentDevice()
          Retrieve the device that runs the application
 

Method Detail

createView

void createView(String viewName,
                ViewFactory.CreateCallback callback)
                throws InterfaceConfigException
Create the view for the informed view Name

Parameters:
viewName - the view name
callback - called when the view is created
Throws:
InterfaceConfigException

createView

void createView(String viewName,
                String viewId,
                ViewFactory.CreateCallback callback)
                throws InterfaceConfigException
Create the view for the informed view Name

Parameters:
viewName - the view name
viewId - the view identifier
callback - called when the view is created
Throws:
InterfaceConfigException

getCurrentDevice

DeviceAdaptive.Device getCurrentDevice()
Retrieve the device that runs the application

Returns:


Copyright © 2014. All rights reserved.