PAJES 2.3.9

org.pajes.db.entity
Class EditorTemplate

java.lang.Object
  extended byorg.pajes.html.PajeTemplate
      extended byorg.pajes.db.entity.ViewerTemplate
          extended byorg.pajes.db.entity.EditorTemplate

public class EditorTemplate
extends ViewerTemplate

Generates an Paje instance to edit 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 DELETE_BUTTON
          Constant for accessing the document element with the ID attribute of "deleteButton".
static java.lang.String EDIT_FORM
          Constant for accessing the document element with the ID attribute of "editor".
static java.lang.String EDIT_FORM_ENTITY_CONTAINER_ID
          Deprecated. use ViewerTemplate.ENTITY_CONTAINER_ID.
static java.lang.String SAVE_BUTTON
          Constant for accessing the document element with the ID attribute of "saveButton".
 
Fields inherited from class org.pajes.db.entity.ViewerTemplate
CANCEL_BUTTON, ENTITY_CONTAINER_ID
 
Constructor Summary
EditorTemplate()
           
 
Method Summary
static SubmitButton getDeleteButton(Container container)
          Retrieves the tag identified with an ID attribute of DELETE_BUTTON.
static Form getEditForm(Container container)
          Retrieves the tag identified with an ID attribute of EDIT_FORM.
static Container getEditFormContainer(Container container)
          Retrieves the tag identified with an ID attribute of EDIT_FORM_ENTITY_CONTAINER_ID.
static SubmitButton getSaveButton(Container container)
          Retrieves the tag identified with an ID attribute of SAVE_BUTTON.
 
Methods inherited from class org.pajes.db.entity.ViewerTemplate
getCancelButton, getEntityContainer
 
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

DELETE_BUTTON

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

See Also:
Constant Field Values

EDIT_FORM

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

See Also:
Constant Field Values

EDIT_FORM_ENTITY_CONTAINER_ID

public static final java.lang.String EDIT_FORM_ENTITY_CONTAINER_ID
Deprecated. use ViewerTemplate.ENTITY_CONTAINER_ID.

Constant for accessing the document element with the ID attribute of "entityContainer".

See Also:
Constant Field Values

SAVE_BUTTON

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

See Also:
Constant Field Values
Constructor Detail

EditorTemplate

public EditorTemplate()
Method Detail

getDeleteButton

public static final SubmitButton getDeleteButton(Container container)
Retrieves the tag identified with an ID attribute of DELETE_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 DELETE_BUTTON Tag instance, or null if if a tag with an ID attribute of DELETE_BUTTON cannot be located within the specifed container.

getEditForm

public static final Form getEditForm(Container container)
Retrieves the tag identified with an ID attribute of EDIT_FORM.

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 EDIT_FORM Tag instance, or null if if a tag with an ID attribute of EDIT_FORM cannot be located within the specifed container.

getEditFormContainer

public static final Container getEditFormContainer(Container container)
Retrieves the tag identified with an ID attribute of EDIT_FORM_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 EDIT_FORM_ENTITY_CONTAINER_ID Tag instance, or null if if a tag with an ID attribute of EDIT_FORM_ENTITY_CONTAINER_ID cannot be located within the specifed container.

getSaveButton

public static final SubmitButton getSaveButton(Container container)
Retrieves the tag identified with an ID attribute of SAVE_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 SAVE_BUTTON Tag instance, or null if if a tag with an ID attribute of SAVE_BUTTON cannot be located within the specifed container.

PAJES 2.3.9

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