Open SiteSearch 4.1.1
Final

ORG.oclc.mantis
Class TemplateEditor

java.lang.Object
  |
  +--ORG.oclc.webz.Verb
        |
        +--ORG.oclc.mantis.TemplateEditor

public class TemplateEditor
extends Verb


Fields inherited from class ORG.oclc.webz.Verb
user, widgets
 
Constructor Summary
TemplateEditor()
          Constructor.
TemplateEditor(RequestManager rMngr, String URLCmd, UserStateObject user)
          Constructor.
 
Method Summary
protected  void createDocument()
          Create an XML Document object from scratch with a starting root element.
protected  void displayAddPage(StringBuffer out)
           
protected  void displayEditPage(StringBuffer out)
           
protected  void displayGetRoot(StringBuffer out)
           
protected  void getAction(StringBuffer out)
          Get the action from the widgets object and set up some internal variables.
protected  String getXML()
           
protected  void getXMLFile()
          Create an XML Document object from a specified file or URL.
protected  void makeBody(StringBuffer out)
           
 void runit(RequestManager rMngr)
          Initialization method as well as start of execution.
protected  void showSubmit(StringBuffer out)
           
 void stripIDs(Element el)
           
protected  void submit(StringBuffer out)
          Write the XML Document back to the file where it originated.
protected  boolean takeAction(StringBuffer out)
          Execute all specified actions.
protected  void viewXML(StringBuffer out)
           
 
Methods inherited from class ORG.oclc.webz.Verb
setUpPage, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TemplateEditor

public TemplateEditor()
Constructor.

TemplateEditor

public TemplateEditor(RequestManager rMngr,
                      String URLCmd,
                      UserStateObject user)
Constructor.
Parameters:
rMngr - - The session specific object that contains user information, session information, and the widgets from the calling web page.
URLCmd - - The full URL pointing to this class.
user - - The UserStateObject containing all session information.
Method Detail

runit

public void runit(RequestManager rMngr)
Initialization method as well as start of execution.
Parameters:
rMngr - - The session specific object that contains user information, session information, and the widgets from the calling web page.
Overrides:
runit in class Verb

getAction

protected void getAction(StringBuffer out)
Get the action from the widgets object and set up some internal variables.
Parameters:
out - - A StringBuffer to receive any output directed to the new web page.

takeAction

protected boolean takeAction(StringBuffer out)
Execute all specified actions.
Parameters:
out - - A StringBuffer to receive any output directed to the new web page.
Returns:
- True if no further action needs to be taken, false otherwise.

createDocument

protected void createDocument()
Create an XML Document object from scratch with a starting root element.

getXMLFile

protected void getXMLFile()
Create an XML Document object from a specified file or URL.

submit

protected void submit(StringBuffer out)
Write the XML Document back to the file where it originated. This will not work when the Document originated from a web site. In this case, the user must use some export method.

stripIDs

public void stripIDs(Element el)

getXML

protected String getXML()

viewXML

protected void viewXML(StringBuffer out)

showSubmit

protected void showSubmit(StringBuffer out)

displayEditPage

protected void displayEditPage(StringBuffer out)

displayAddPage

protected void displayAddPage(StringBuffer out)

displayGetRoot

protected void displayGetRoot(StringBuffer out)

makeBody

protected void makeBody(StringBuffer out)

Open SiteSearch 4.1.1
Final