Class ScreenData

java.lang.Object
com.almis.awe.model.entities.screen.data.ScreenData

public class ScreenData extends Object
Screen data Class

Used to retrieve screen data in JSON format

Author:
Pablo GARCIA - 28/JUN/2010
  • Constructor Details

    • ScreenData

      public ScreenData()
  • Method Details

    • addComponent

      public ScreenData addComponent(ScreenComponent component)
      Add a component
      Parameters:
      component - Component
      Returns:
      this
    • addComponent

      public ScreenData addComponent(String key, Component controller, ComponentModel model)
      Add a component
      Parameters:
      key - Component key
      controller - Component controller
      model - Component model
      Returns:
      this
    • addMessage

      public ScreenData addMessage(String key, Message message)
      Add a message
      Parameters:
      key - Message key
      message - Message text
      Returns:
      this
    • getScreen

      public Map<String,String> getScreen()
      Getter for screen properties (to retrieve it empty if not defined)
      Returns:
      Screen properties
    • addScreenProperty

      public ScreenData addScreenProperty(String key, String property)
      Add a screen property
      Parameters:
      key - Property key
      property - Property text
      Returns:
      this
    • addError

      public ScreenData addError(AWException error)
      Add a error
      Parameters:
      error - Error to add as message
      Returns:
      this
    • addAction

      public ScreenData addAction(ClientAction action)
      Add an action
      Parameters:
      action - Action to add
      Returns:
      this