|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--planetj.html.HTMLOperationGenerator
Class that can be used to auto-generate HTML in order to execute Operations.
Method Summary | |
StringBuffer |
appendOperationInstructions(Operation operation,
StringBuffer html)
Appends the givin operation's instructions. |
StringBuffer |
appendOperationInstructions(String instructions,
StringBuffer html)
Appends the givin operation's instructions. |
StringBuffer |
appendOperationLink(Operation operation,
String styleClass,
StringBuffer html,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Appends a html link to run the given Operation. |
StringBuffer |
appendTOCLinks(Application app,
StringBuffer html,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Appends a HTML table containing all the displayable Operations for the given Application. |
boolean |
containsGeneratableOperationLinks(Application application,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
String |
generateOperation(Operation operation,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Deprecated. (6/27/2003 1:04:59 PM) - this method has been here since Jan 28, 2003 and hasn't changed. |
String |
generateOperationLinks(Application application,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Generates links for the Application's Operations. |
String |
generateOperationLinks(List operations,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Generates links for the given Operations. |
String |
generateOperationSets(Application application,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Generates links for the Application's Operations. |
void |
includeChildOperations(Operation operation,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Includes the Operation's JSP file. |
void |
includeOperation(Operation operation,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Includes the Operation's JSP file. |
void |
includeOperation(Row row,
Operation operation,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Includes the Operation's JSP file. |
static HTMLOperationGenerator |
singleton()
Gets the singleton instance. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String className
public static final String OPERATION_SET_HEADER
public static final String TOC_BUTTON_OFF_LEFT
public static final String TOC_BUTTON_OFF_MIDDLE
public static final String TOC_BUTTON_OFF_RIGHT
public static final String TOC_BUTTON_ON_LEFT
public static final String TOC_BUTTON_ON_MIDDLE
public static final String TOC_BUTTON_ON_RIGHT
public static final String NAV_SET_ON
public static final String NAV_SET_OFF
public static final String NAV_HEADER_ON
public static final String NAV_HEADER_OFF
public static final String NAV_HEADER_LEFT_ON
public static final String NAV_HEADER_LEFT_OFF
public static final String NAV_HEADER_CENTER_ON
public static final String NAV_HEADER_CENTER_OFF
public static final String NAV_HEADER_RIGHT_ON
public static final String NAV_HEADER_RIGHT_OFF
public static final String NAV_BODY_ON
public static final String NAV_BODY_OFF
public static final String NAV_BODY_LEFT_ON
public static final String NAV_BODY_LEFT_OFF
public static final String NAV_BODY_CENTER_ON
public static final String NAV_BODY_CENTER_OFF
public static final String NAV_BODY_RIGHT_ON
public static final String NAV_BODY_RIGHT_OFF
public static final String NAV_FOOTER_ON
public static final String NAV_FOOTER_OFF
public static final String NAV_FOOTER_LEFT_ON
public static final String NAV_FOOTER_LEFT_OFF
public static final String NAV_FOOTER_CENTER_ON
public static final String NAV_FOOTER_CENTER_OFF
public static final String NAV_FOOTER_RIGHT_ON
public static final String NAV_FOOTER_RIGHT_OFF
Method Detail |
public StringBuffer appendOperationInstructions(String instructions, StringBuffer html) throws CMException
CMException
public StringBuffer appendOperationInstructions(Operation operation, StringBuffer html) throws CMException
CMException
public StringBuffer appendOperationLink(Operation operation, String styleClass, StringBuffer html, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws CMException
operation
- Operation to generate link forhtml
- StringBuffer to append link torequest
- HttpServletRequest from clientresponse
- HttpServletResponse to client
CMException
public StringBuffer appendTOCLinks(Application app, StringBuffer html, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws CMException
html
- Buffer to append generated HTML code torequest
- HttpServletRequest from the clientresponse
- HttpServletResponse to the client
CMException
public boolean containsGeneratableOperationLinks(Application application, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
public String generateOperation(Operation operation, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
operation
- Operation to generate HTML code for.public String generateOperationLinks(List operations, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws CMException
operations
- List of Operations to generate links for.
CMException
public String generateOperationLinks(Application application, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
application
- Application containing Operations to generate links for.public String generateOperationSets(Application application, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
application
- Application containing Operations to generate links for.public void includeChildOperations(Operation operation, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws CMException
operation
- Operation to generate HTML code for.
CMException
public void includeOperation(Row row, Operation operation, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws CMException
operation
- Operation to generate HTML code for.
CMException
public void includeOperation(Operation operation, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws CMException
operation
- Operation to generate HTML code for.
CMException
public static HTMLOperationGenerator singleton()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |