PAJES 2.3.9

org.pajes.db.entity
Class ViewerTemplate

java.lang.Object
  extended byorg.pajes.html.PajeTemplate
      extended byorg.pajes.db.entity.ViewerTemplate
Direct Known Subclasses:
EditorTemplate

public class ViewerTemplate
extends PajeTemplate

Generates an Paje instance to view an Entity. The source HTML file from which the Paje is generated must contain an Container object (such as a table cell (<td>)) which has an ID attribute of entityContainer.


Field Summary
static java.lang.String CANCEL_BUTTON
          Constant for accessing the document element with the ID attribute of "cancelButton".
static java.lang.String ENTITY_CONTAINER_ID
          Constant for accessing the document element with the ID attribute of "entityContainer".
 
Constructor Summary
ViewerTemplate()
           
 
Method Summary
static SubmitButton getCancelButton(Container container)
          Retrieves the tag identified with an ID attribute of CANCEL_BUTTON.
static Container getEntityContainer(Container container)
          Retrieves the tag identified with an ID attribute of ENTITY_CONTAINER_ID.
 
Methods inherited from class org.pajes.html.PajeTemplate
addToContainer, addToContainer, addToContainer, clearWarnings, dumpAttributes, generate, generate, getAttributeIndex, getAttributeValue, getCurrentContainer, getCurrentForm, getWarning, handleEmptyTag, handleTag_a, handleTag_applet, handleTag_area, handleTag_b, handleTag_base, handleTag_big, handleTag_body, handleTag_br, handleTag_center, handleTag_cite, handleTag_code, handleTag_dfn, handleTag_div, handleTag_em, handleTag_embed, handleTag_font, handleTag_form, handleTag_frame, handleTag_frameset, handleTag_h1, handleTag_h2, handleTag_h3, handleTag_h4, handleTag_h5, handleTag_h6, handleTag_head, handleTag_hr, handleTag_html, handleTag_i, handleTag_iframe, handleTag_img, handleTag_input_button, handleTag_input_checkbox, handleTag_input_file, handleTag_input_hidden, handleTag_input_image, handleTag_input_password, handleTag_input_radio, handleTag_input_reset, handleTag_input_submit, handleTag_input_text, handleTag_input, handleTag_kbd, handleTag_label, handleTag_li, handleTag_link, handleTag_map, handleTag_meta, handleTag_nobr, handleTag_noembed, handleTag_noframes, handleTag_noscript, handleTag_object, handleTag_ol, handleTag_optgroup, handleTag_option, handleTag_p, handleTag_param, handleTag_pre, handleTag_s, handleTag_samp, handleTag_script, handleTag_select, handleTag_small, handleTag_span, handleTag_strike, handleTag_strong, handleTag_style, handleTag_sub, handleTag_sup, handleTag_table, handleTag_tbody, handleTag_td, handleTag_textarea, handleTag_tfoot, handleTag_th, handleTag_thead, handleTag_title, handleTag_tr, handleTag_tt, handleTag_u, handleTag_ul, handleTag_var, handleTag, handleText, handleUnclosedFormattedTextTags, handleUnclosedTag_li, handleUnclosedTag_option, handleUnclosedTag_p, log, log, log, log, log, log, log, modifyLineBreaks, popCurrentContainer, postProcessDocument, postProcessTag, setLogging, setSuppressWarning, setWarning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CANCEL_BUTTON

public static final java.lang.String CANCEL_BUTTON
Constant for accessing the document element with the ID attribute of "cancelButton".

See Also:
Constant Field Values

ENTITY_CONTAINER_ID

public static final java.lang.String ENTITY_CONTAINER_ID
Constant for accessing the document element with the ID attribute of "entityContainer".

See Also:
Constant Field Values
Constructor Detail

ViewerTemplate

public ViewerTemplate()
Method Detail

getCancelButton

public static final SubmitButton getCancelButton(Container container)
Retrieves the tag identified with an ID attribute of CANCEL_BUTTON.

Parameters:
container - the Container object in which the tag is to be located. This should be the lowest possible container within the document hierarchy to enable the most efficient retrieval.
Returns:
the CANCEL_BUTTON Tag instance, or null if if a tag with an ID attribute of CANCEL_BUTTON cannot be located within the specifed container.

getEntityContainer

public static final Container getEntityContainer(Container container)
Retrieves the tag identified with an ID attribute of ENTITY_CONTAINER_ID.

Parameters:
container - the Container object in which the tag is to be located. This should be the lowest possible container within the document hierarchy to enable the most efficient retrieval.
Returns:
the ENTITY_CONTAINER_ID Tag instance, or null if if a tag with an ID attribute of ENTITY_CONTAINER_ID cannot be located within the specifed container.

PAJES 2.3.9

Copyright © 2002-2003 Viridian Pty Limited. All Rights Reserved.