com.plumtree.portalpages.admin.sendinvitation
Class InvCodesListView

java.lang.Object
  extended by com.plumtree.uiinfrastructure.editor.EditorView
      extended by com.plumtree.uiinfrastructure.expandablelist.ExpListView
          extended by com.plumtree.portalpages.admin.sendinvitation.InvCodesListView
All Implemented Interfaces:
IManagedObject, IMVCObject, IView

public class InvCodesListView
extends ExpListView

Author:
dustina

Field Summary
static java.lang.String CONTROLARGUMENT_INVCODE
          invite argument processed by CreateAccountControl and Invite control; make sure they match
static java.lang.String JS_CREATE_POPUP
           
protected  AActivitySpace m_asOwner
           
protected  HTMLImg m_imgInvitation
           
static java.lang.String STR_MVC_CLASS_NAME
           
 
Fields inherited from class com.plumtree.uiinfrastructure.expandablelist.ExpListView
HTMLBUTTON_DELETE, HTMLCHECKBOX_CHECKALL, HTMLCHECKBOX_DELROW, HTMLHIDDEN_COLUMNID, HTMLHIDDEN_MOVEACTION, HTMLHIDDEN_ROWINDEX, HTMLID_EXPLIST, m_nLastVisibleRow
 
Fields inherited from class com.plumtree.uiinfrastructure.editor.EditorView
m_model, SPACE
 
Constructor Summary
InvCodesListView()
           
 
Method Summary
 java.lang.Object Create()
          This method is used by the ASManager to return new instances of managed objects.
 HTMLElement Display()
          Returns the HTML for the Section.
 HTMLScript DisplayJavascript()
          This method returns the HTMLScript that encompasses the Javascript on the page.
 HTMLElement GetHeaderView(java.lang.String _sHeaderTitle)
          We ned to overwrite this method because because SendInvitationAS extends from PlumtreeAS and not EditorAS.
protected  HTMLTable GetHTMLBelowActionBar()
          Returns the HTML for the space below the Action bar.
protected  HTMLTable GetHTMLForActionBar()
          Returns the HTML for the Action bar.
protected  HTMLTableCell GetHTMLForAddAction()
          Returns the HTML for the add cell in the action bar.
 HTMLElement GetHTMLForRow(IPTGrowableSortedArrayWrapperRO _saData, int _nRowIndex)
          Will be called for each row.
protected  HTMLTableRow GetHTMLForSubHeader()
          Returns the HTML for the sub header.
protected  HTMLImg GetIcon(PTImageType _imgRowIcon)
          Helper method to get the HTML for the icon.
 java.lang.String GetName()
          Returns the Class name.
 void Init(IModelRO model, AActivitySpace parent)
          Inits the Section with the read-only Model and the Activity Space.
 
Methods inherited from class com.plumtree.uiinfrastructure.expandablelist.ExpListView
AddHTMLToActionBar, CheckRowIsVisible, GetHiddenInputsForPagination, GetHTMLBelowMainTable, GetHTMLForAllRowsAdded, GetHTMLForBottomRow, GetHTMLForCheckBox, GetHTMLForDeleteAction, GetHTMLForEmptyCellInActionBar, GetHTMLForEmptyList, GetHTMLForMoveRowActions, GetHTMLForPaginationLinks, GetJavaScriptsForPagination, SetRowStyle
 
Methods inherited from class com.plumtree.uiinfrastructure.editor.EditorView
AddEmptyCellToRow, AddEmptyCellToRow, AddEmptyRowToTable, AddEmptyRowToTable, GetHeaderViewHelper, GetShortSpacerTable, GetSpacerTable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STR_MVC_CLASS_NAME

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

CONTROLARGUMENT_INVCODE

public static final java.lang.String CONTROLARGUMENT_INVCODE
invite argument processed by CreateAccountControl and Invite control; make sure they match

See Also:
Constant Field Values

JS_CREATE_POPUP

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

m_asOwner

protected AActivitySpace m_asOwner

m_imgInvitation

protected HTMLImg m_imgInvitation
Constructor Detail

InvCodesListView

public InvCodesListView()
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()
Returns the HTML for the Section.

Specified by:
Display in interface IView
Overrides:
Display in class ExpListView
Returns:
HTMLElement

DisplayJavascript

public HTMLScript DisplayJavascript()
This method returns the HTMLScript that encompasses the Javascript on the page.

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

GetHTMLForRow

public HTMLElement GetHTMLForRow(IPTGrowableSortedArrayWrapperRO _saData,
                                 int _nRowIndex)
Will be called for each row. Should return the HTML for row _nRowIndex.

Specified by:
GetHTMLForRow in class ExpListView
Parameters:
_saData -
_nRowIndex -
Returns:
HTMLElement
Throws:
java.lang.Exception

GetName

public java.lang.String GetName()
Returns the Class name.

Specified by:
GetName in interface IMVCObject
Specified by:
GetName in class EditorView
Returns:
String

Init

public void Init(IModelRO model,
                 AActivitySpace parent)
Inits the Section with the read-only Model and the Activity Space.

Specified by:
Init in interface IView
Overrides:
Init in class EditorView
Parameters:
model -
parent -

GetHTMLBelowActionBar

protected HTMLTable GetHTMLBelowActionBar()
Returns the HTML for the space below the Action bar. (The one with the add and delete icons).

Overrides:
GetHTMLBelowActionBar in class ExpListView
Returns:
HTMLTable
Throws:
java.lang.Exception

GetHTMLForActionBar

protected HTMLTable GetHTMLForActionBar()
Returns the HTML for the Action bar. (The one with the add icons). copied from JulieF's ExpListView but got rid of the delete Action cause invitation instances can't be deleted.

Overrides:
GetHTMLForActionBar in class ExpListView
Returns:
HTMLTable
Throws:
java.lang.Exception

GetHTMLForAddAction

protected HTMLTableCell GetHTMLForAddAction()
Returns the HTML for the add cell in the action bar.

Overrides:
GetHTMLForAddAction in class ExpListView
Returns:
HTMLTableCell
Throws:
java.lang.Exception

GetHTMLForSubHeader

protected HTMLTableRow GetHTMLForSubHeader()
Returns the HTML for the sub header.

Overrides:
GetHTMLForSubHeader in class ExpListView
Returns:
HTMLTableRow
Throws:
java.lang.Exception

GetIcon

protected HTMLImg GetIcon(PTImageType _imgRowIcon)
Helper method to get the HTML for the icon. (Each row has an icon before the input text.)

Returns:
HTMLImg
Throws:
java.lang.Exception

GetHeaderView

public HTMLElement GetHeaderView(java.lang.String _sHeaderTitle)
We ned to overwrite this method because because SendInvitationAS extends from PlumtreeAS and not EditorAS. However, we are still using EditorView to display headers, and that requires our activity space to be extended from EditorAS. Instead, we will circumvent that dependency.

Overrides:
GetHeaderView in class EditorView
Parameters:
_sHeaderTitle - Title you want to display in the header.
Returns:
HTMLTable
See Also:
IView.DisplayJavascript()



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