Class ScreenData
java.lang.Object
com.almis.awe.model.entities.screen.data.ScreenData
Screen data Class
Used to retrieve screen data in JSON format
- Author:
- Pablo GARCIA - 28/JUN/2010
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddAction
(ClientAction action) Add an actionaddComponent
(ScreenComponent component) Add a componentaddComponent
(String key, Component controller, ComponentModel model) Add a componentaddError
(AWException error) Add a erroraddMessage
(String key, Message message) Add a messageaddScreenProperty
(String key, String property) Add a screen propertyGetter for screen properties (to retrieve it empty if not defined)
-
Constructor Details
-
ScreenData
public ScreenData()
-
-
Method Details
-
addComponent
Add a component- Parameters:
component
- Component- Returns:
- this
-
addComponent
Add a component- Parameters:
key
- Component keycontroller
- Component controllermodel
- Component model- Returns:
- this
-
addMessage
Add a message- Parameters:
key
- Message keymessage
- Message text- Returns:
- this
-
getScreen
Getter for screen properties (to retrieve it empty if not defined)- Returns:
- Screen properties
-
addScreenProperty
Add a screen property- Parameters:
key
- Property keyproperty
- Property text- Returns:
- this
-
addError
Add a error- Parameters:
error
- Error to add as message- Returns:
- this
-
addAction
Add an action- Parameters:
action
- Action to add- Returns:
- this
-