Package com.blackrook.small
Class SmallModelView
java.lang.Object
com.blackrook.small.SmallModelView
A view model-and-view container.
Can be returned on
View
-annotated Controller
methods.- Author:
- Matthew Tropiano
-
Method Summary
Modifier and TypeMethodDescriptionstatic SmallModelView
Creates a new model-view container.static SmallModelView
Creates a new model-view container.getModel()
-
Method Details
-
create
Creates a new model-view container. No model.- Parameters:
viewName
- the name of the view to resolve and use.- Returns:
- a new
SmallModelView
. - Since:
- 1.1.0
-
create
Creates a new model-view container.- Parameters:
model
- the model to render.viewName
- the name of the view to resolve and use.- Returns:
- a new
SmallModelView
.
-
getModel
- Returns:
- the view model.
-
getViewName
- Returns:
- the view name.
-