API Overview API Index Package Overview Direct link to this page
JavaOnTracks 0.1.2
  net.jot.web.view. JOTView View Source
Author(s)
thibautc
Since
Version
Serial
Hierarchy
 Object
      JOTView
Implements
 JOTViewParserData
Subclasses
Description
publicabstract abstract class JOTView
  Abstract Base of a View (provides an empty view) The View is where you add variables to be used by the view.
See also:   
Constructors
public JOTView ()
Methods
Hide/Show inherited methods
protected void addBlock (String id, JOTViewBlock element)
  Defines a page block to be "defined" on the fly at runtime For example blah will be replaced by the data provided in the view element with dataId "toto" if it exists.
protected void addForm (JOTForm form)
  Adds a Form to this View.
protected void addTag (String id, JOTViewBlock element)
  Defines an HTML tag to be "redefined" on the fly at runtime For example
, content will be replaced by the data provided in the view element with dataId "toto" if it exists.
public void addVariable (String id, Object value)
  Adds a variable to this View Then you can use the varibale in the view: Ex: jot:var value="id"
public Hashtable getBlocks () [Specified in JOTViewParserData]
public String getBuiltinTemplate ()
protected JOTDataHolder getDataHolder ()
public JOTForm getForm (Class formClass)
  Use this method to get/create a form object Will provide either : - a new form object if this form is newly used - the existing form if used earlier in this request (ie: validation failed) This allows you to get the form and put it in the View(using addForm), or to populate/validate it in your controller.
public Hashtable getForms () [Specified in JOTViewParserData]
public JOTView getFullView () [Specified in JOTViewParserData]
public JOTMasterController getMaster ()
public Hashtable getTags () [Specified in JOTViewParserData]
public Hashtable getVariables () [Specified in JOTViewParserData]
public void init (JOTMasterController master)
  Will be called by the mastercontroller.
public boolean isProvideRequestParameters ()
publicabstract void prepareViewData () throws Exception
  To be implemented by subclass Loads the View data by calling add* etc ...
publicfinal String process () throws Exception
  called by mastercontroller
public void setBuiltinTemplate (String template)
  You can call this method to use a "hardcode" template rather tha use one loaded from a template as usual.
protected void setProvideRequestParameters (boolean b)
  Wether to automatically provide all the request parameters & attributes to the view TODO: is that implemented ? Defaults to false.
publicabstract boolean validatePermissions ()
  Implements this to check wether the user is allowed to use your controller.
Fields
Hide/Show inherited fields
public FilterChain filterChain
Gives you easy acess to filterChain should you need it
public FilterConfig filterConfig
Gives you easy acess to filterConfig should you need it
public JOTFlowRequest request
Gives you easy access to the request
public HttpServletResponse response
Gives you easy access to the Response
public HttpSession session
Gives you easy acess to the "Session" object
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.5     ©Thibaut Colar