public interface ControllerAdapter
ViewAction
,
ConvertForDisplay
,
ConvertForStorage
Modifier and Type | Method and Description |
---|---|
Object |
convertForDisplay(Controller controller,
String attributeName,
Object input)
Converts value before sending it to the view.
|
Object |
convertForDisplayAnnotation(Controller controller,
String attributeName,
Object input)
Converts value before sending it to the view.
|
Object |
convertForStorage(Controller controller,
String attributeName,
Object input)
Converts value before sending it to the model.
|
Object |
convertForStorageAnnotation(Controller controller,
String attributeName,
Object input)
Converts value before sending it to the model.
|
Map<String,Object> |
getAttributes()
Gets the attributes.
|
boolean |
isEnabled()
Checks if ControllerAdapter is enabled.
|
boolean |
isInitializing()
Checks if controller is in process of initialization.
|
void |
setEnabled(boolean enabled)
Sets the enabled flag.
|
void |
setIsInitializing(boolean value)
Sets the checks if is initializing.
|
boolean |
supportsActionAnnotation(String attributeName)
Returns true if ViewAction annotation is supported for the attribute.
|
boolean |
supportsConvertForDisplayAnnotation(String attributeName)
Returns true if ConvertForDisplay annotation is supported for the attribute.
|
boolean |
supportsConvertForStorageAnnotation(String attributeName)
Returns true if ConvertForStorage annotation is supported for the attribute.
|
boolean |
viewAction(Controller controller,
Object source,
String attributeName)
This is an event handler for all action events.
|
boolean |
viewAnnotationAction(Controller controller,
Object source,
String attributeName)
Event handler for the particular action event.
|
Object convertForDisplay(Controller controller, String attributeName, Object input)
controller
- the controllerattributeName
- the attribute nameinput
- the inputObject convertForDisplayAnnotation(Controller controller, String attributeName, Object input)
controller
- the controllerattributeName
- the attribute nameinput
- the inputObject convertForStorage(Controller controller, String attributeName, Object input)
controller
- the controllerattributeName
- the attribute nameinput
- the inputObject convertForStorageAnnotation(Controller controller, String attributeName, Object input)
controller
- the controllerattributeName
- the attribute nameinput
- the inputMap<String,Object> getAttributes()
boolean isEnabled()
boolean isInitializing()
void setEnabled(boolean enabled)
enabled
- the new enabledvoid setIsInitializing(boolean value)
value
- the new checks if is initializingboolean supportsActionAnnotation(String attributeName)
attributeName
- the attribute nameboolean supportsConvertForDisplayAnnotation(String attributeName)
attributeName
- the attribute nameboolean supportsConvertForStorageAnnotation(String attributeName)
attributeName
- the attribute nameboolean viewAction(Controller controller, Object source, String attributeName)
controller
- the controllersource
- the sourceattributeName
- the attribute nameboolean viewAnnotationAction(Controller controller, Object source, String attributeName)
controller
- the controllersource
- the sourceattributeName
- the attribute nameCopyright © 2010-2020 Toolsverse. All Rights Reserved.