com.plumtree.uiinfrastructure.approval
Class ApprovalView

java.lang.Object
  extended by com.plumtree.uiinfrastructure.editor.EditorView
      extended by com.plumtree.uiinfrastructure.approval.ApprovalView
All Implemented Interfaces:
IManagedObject, IMVCObject, IView
Direct Known Subclasses:
DocumentApprovalView

public class ApprovalView
extends EditorView
implements IView

View class for approving items

Author:
BenG

Field Summary
static java.lang.String COMMENT_PREFIX
          Comment textarea
static java.lang.String DESCRIPTION_PREFIX
          Description text area
static java.lang.String HTMLBUTTON_GOTORANGE
           
static java.lang.String HTMLINPUT_FROM
          HTML navigation fields
static java.lang.String HTMLINPUT_TO
           
static java.lang.String INSTANCE_RADIO_PREFIX
          Instance radio button
static java.lang.String ITEM_CLEAR_PREFIX
          Item clear radio button
static java.lang.String ITEM_RADIO_PREFIX
          Item radio button
static java.lang.String JAVASCRIPT_CARDRANGE
           
static java.lang.String NAME_PREFIX
          Name text box
static java.lang.String STR_MVC_CLASS_NAME
          The unique identifier for the class
static java.lang.String VAL_APPROVE
          Approve constant
static java.lang.String VAL_HOLD
          Hold constant
static java.lang.String VAL_REJECT
          Reject constant
 
Fields inherited from class com.plumtree.uiinfrastructure.editor.EditorView
m_asOwner, m_model, SPACE
 
Constructor Summary
ApprovalView()
           
 
Method Summary
 void AddActionButtons(PTConstruct _actionConstruct, PTBannerType _bannerType)
          JHQ: This method will be called by AddActionBar() and will add action buttons to the action bar.
 void AddEditItemLink(HTMLTable myTable, ApprovalItemType type, java.lang.String strSelectedItems, AItemDescriptor item)
           
 java.lang.Object Create()
          This method is used by the ASManager to return new instances of managed objects.
 HTMLElement Display()
          Displays the HTML for the view
 HTMLElement Display(ApprovalItemType type)
           
 HTMLScript DisplayJavascript()
          This method returns the HTMLScript that encompasses the Javascript on the page.
protected  PTImageType GetItemURLImgType()
          Returns the URL Image type
 java.lang.String GetName()
          Returns the Class name.
 
Methods inherited from class com.plumtree.uiinfrastructure.editor.EditorView
AddEmptyCellToRow, AddEmptyCellToRow, AddEmptyRowToTable, AddEmptyRowToTable, GetHeaderView, GetHeaderViewHelper, GetShortSpacerTable, GetSpacerTable, Init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.plumtree.uiinfrastructure.activityspace.IView
Init
 

Field Detail

STR_MVC_CLASS_NAME

public static final java.lang.String STR_MVC_CLASS_NAME
The unique identifier for the class

See Also:
Constant Field Values

COMMENT_PREFIX

public static final java.lang.String COMMENT_PREFIX
Comment textarea

See Also:
Constant Field Values

NAME_PREFIX

public static final java.lang.String NAME_PREFIX
Name text box

See Also:
Constant Field Values

DESCRIPTION_PREFIX

public static final java.lang.String DESCRIPTION_PREFIX
Description text area

See Also:
Constant Field Values

INSTANCE_RADIO_PREFIX

public static final java.lang.String INSTANCE_RADIO_PREFIX
Instance radio button

See Also:
Constant Field Values

ITEM_RADIO_PREFIX

public static final java.lang.String ITEM_RADIO_PREFIX
Item radio button

See Also:
Constant Field Values

ITEM_CLEAR_PREFIX

public static final java.lang.String ITEM_CLEAR_PREFIX
Item clear radio button

See Also:
Constant Field Values

VAL_APPROVE

public static final java.lang.String VAL_APPROVE
Approve constant

See Also:
Constant Field Values

VAL_REJECT

public static final java.lang.String VAL_REJECT
Reject constant

See Also:
Constant Field Values

VAL_HOLD

public static final java.lang.String VAL_HOLD
Hold constant

See Also:
Constant Field Values

HTMLINPUT_FROM

public static final java.lang.String HTMLINPUT_FROM
HTML navigation fields

See Also:
Constant Field Values

HTMLINPUT_TO

public static final java.lang.String HTMLINPUT_TO
See Also:
Constant Field Values

HTMLBUTTON_GOTORANGE

public static final java.lang.String HTMLBUTTON_GOTORANGE
See Also:
Constant Field Values

JAVASCRIPT_CARDRANGE

public static final java.lang.String JAVASCRIPT_CARDRANGE
See Also:
Constant Field Values
Constructor Detail

ApprovalView

public ApprovalView()
Method Detail

Create

public java.lang.Object Create()
Description copied from class: EditorView
This method is used by the ASManager to return new instances of managed objects.

Specified by:
Create in interface IManagedObject
Specified by:
Create in class EditorView
Returns:
A new instance of the managed class (i.e. return new Foo();)
See Also:
IManagedObject.Create()

Display

public HTMLElement Display()
Displays the HTML for the view

Specified by:
Display in interface IView
Specified by:
Display in class EditorView
Returns:
HTMLElement

Display

public HTMLElement Display(ApprovalItemType type)
See Also:
IView.Display()

DisplayJavascript

public HTMLScript DisplayJavascript()
Description copied from class: EditorView
This method returns the HTMLScript that encompasses the Javascript on the page.

Specified by:
DisplayJavascript in interface IView
Overrides:
DisplayJavascript in class EditorView
Returns:
HTMLScript
See Also:
IView.DisplayJavascript()

GetName

public java.lang.String GetName()
Description copied from class: EditorView
Returns the Class name.

Specified by:
GetName in interface IMVCObject
Specified by:
GetName in class EditorView
Returns:
String
See Also:
IMVCObject.GetName()

GetItemURLImgType

protected PTImageType GetItemURLImgType()
Returns the URL Image type

Returns:
PTImageType

AddActionButtons

public void AddActionButtons(PTConstruct _actionConstruct,
                             PTBannerType _bannerType)
JHQ: This method will be called by AddActionBar() and will add action buttons to the action bar. This allows an editor that is extending this class to add extra functionality to the approve view. This method should be overridden.

Parameters:
_actionBarConstruct -

AddEditItemLink

public void AddEditItemLink(HTMLTable myTable,
                            ApprovalItemType type,
                            java.lang.String strSelectedItems,
                            AItemDescriptor item)



Copyright 2002,2003,2004,2005 Plumtree Software, Inc., All Rights Reserved.