org.cruxframework.crux.core.client.screen
Class ScreenFactory

java.lang.Object
  extended by org.cruxframework.crux.core.client.screen.ScreenFactory

public class ScreenFactory
extends Object

Factory for CRUX screen.

Author:
Thiago da Rosa de Bustamante

Method Summary
 DataSource<?> createDataSource(String dataSource)
          Deprecated. Use View.createDataSource()
 Formatter getClientFormatter(String formatter)
          Deprecated. 
 DeviceAdaptive.Device getCurrentDevice()
          Retrieve the device type for the client running the application
 DataSource<?> getDataSource(String dataSource)
          Deprecated. - Use createDataSource(java.lang.String) instead.
static ScreenFactory getInstance()
          Retrieve the ScreenFactory instance.
 RegisteredControllers getRegisteredControllers()
          Deprecated. Use View.getRegisteredControllers()
 Screen getScreen()
          Get the screen associated with current page.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ScreenFactory getInstance()
Retrieve the ScreenFactory instance.

Returns:

getScreen

public Screen getScreen()
Get the screen associated with current page. If not created yet, create it.

Returns:

getCurrentDevice

public DeviceAdaptive.Device getCurrentDevice()
Retrieve the device type for the client running the application

Returns:

getClientFormatter

@Deprecated
public Formatter getClientFormatter(String formatter)
Deprecated. 

Parameters:
formatter -
Returns:

createDataSource

@Deprecated
public DataSource<?> createDataSource(String dataSource)
Deprecated. Use View.createDataSource()

Create a new DataSource instance

Parameters:
dataSource - dataSource name, declared with @DataSource annotation
Returns:
new dataSource instance

getDataSource

@Deprecated
public DataSource<?> getDataSource(String dataSource)
Deprecated. - Use createDataSource(java.lang.String) instead.

Parameters:
dataSource -
Returns:

getRegisteredControllers

@Deprecated
public RegisteredControllers getRegisteredControllers()
Deprecated. Use View.getRegisteredControllers()

Retrieve the list of controllers registered into this screen

Returns:


Copyright © 2014. All rights reserved.