org.activemath.webapp.controller
Class ViewPageItem

java.lang.Object
  extended by org.infohazard.maverick.ctl.Throwaway2
      extended by org.infohazard.maverick.ctl.ThrowawayBean2
          extended by org.activemath.webapp.base.ControllerBase
              extended by org.activemath.webapp.controller.ViewBook
                  extended by org.activemath.webapp.controller.ViewPageItem
All Implemented Interfaces:
Controller

public class ViewPageItem
extends ViewBook

Generate a bean for a page item. Additional request parameters:


Field Summary
protected  int itemIndex
           
 
Fields inherited from class org.activemath.webapp.base.ControllerBase
appContext, defaultContentType, JSON, REDIRECT, REDIRECT_LOGIN, request, response, stopwatch
 
Fields inherited from class org.infohazard.maverick.ctl.Throwaway2
ERROR, SUCCESS
 
Constructor Summary
ViewPageItem()
           
 
Method Summary
protected  String action()
          View a page of a book We distinguish between a textual and binary layout format.
 void setItem(String string)
           
 
Methods inherited from class org.activemath.webapp.controller.ViewBook
setBook, setChapter, setPage, setSlide
 
Methods inherited from class org.activemath.webapp.base.ControllerBase
addError, addError, enableNoCache, escapeForHtmlSafety, getAccountManager, getAppSession, getCmdName, getCurrentUser, getErrors, getHttpSession, getLanguage, getModel, getOutputFormat, getRequest, getResponse, getSkin, hasErrors, perform, publishControllerEvent, sendError, sendError, sendJson, sendLoginRequired, sendRedirect, sendRedirect, setPasswd, setUser
 
Methods inherited from class org.infohazard.maverick.ctl.ThrowawayBean2
go
 
Methods inherited from class org.infohazard.maverick.ctl.Throwaway2
getCtx, go
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

itemIndex

protected int itemIndex
Constructor Detail

ViewPageItem

public ViewPageItem()
Method Detail

setItem

public void setItem(String string)

action

protected String action()
                 throws Exception
Description copied from class: ViewBook
View a page of a book We distinguish between a textual and binary layout format. Textual formats are created by a Velocity template and are rendered to the Servlets PrintWriter. For binary formats, we first create the required assembly format (which is usually textual) by Veloctiy, then pass on the result to the presentation formatter. This will render to the Servlet's OutputStream. In both cases, callbacks into the presentation formatting systems are done by a TransformerTool.

Overrides:
action in class ViewBook
Throws:
Exception
See Also:
org.activemath.presentation.servlets.controller.AMController#action()