Class SmallModelView

java.lang.Object
com.blackrook.small.SmallModelView

public class SmallModelView extends Object
A view model-and-view container. Can be returned on View-annotated Controller methods.
Author:
Matthew Tropiano
  • Method Details

    • create

      public static SmallModelView create(String viewName)
      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

      public static SmallModelView create(Object model, String viewName)
      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

      public Object getModel()
      Returns:
      the view model.
    • getViewName

      public String getViewName()
      Returns:
      the view name.