Class AbstractView


  • public abstract class AbstractView
    extends Object
    A superclass of MVC views. It contains a name of the view template, that is resolved outside of the view. AbstractView (or rather its concrete subclass) is used as a root context for resolving the template. So subclasses would normally define getters that allow to access the underlying model objects.
    • Field Detail

      • templateName

        protected String templateName
      • encoding

        protected Charset encoding
    • Constructor Detail

      • AbstractView

        public AbstractView​(String templateName)
      • AbstractView

        public AbstractView​(String templateName,
                            Charset encoding)
    • Method Detail

      • getTemplateName

        public String getTemplateName()
      • getEncoding

        public Charset getEncoding()