com.plumtree.portaluiinfrastructure.expandablelist.template
Class TemplateListView

java.lang.Object
  extended by com.plumtree.uiinfrastructure.editor.EditorView
      extended by com.plumtree.uiinfrastructure.expandablelist.ExpListView
          extended by com.plumtree.portaluiinfrastructure.expandablelist.template.TemplateListView
All Implemented Interfaces:
IManagedObject, IMVCObject, IView

public class TemplateListView
extends ExpListView

Author:
michaeld

Field Summary
static java.lang.String HTMLINPUT_TEMPLATETREEASID
          Template Tree Space ID
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_asOwner, m_model, SPACE
 
Constructor Summary
TemplateListView()
           
 
Method Summary
 java.lang.Object Create()
          This method is used by the ASManager to return new instances of managed objects.
 HTMLScript DisplayJavascript()
          Returns Java Script for goToPage function.
protected  HTMLTable GetHTMLForActionBar()
          Returns the HTML for the Action bar.
protected  HTMLTableCell GetHTMLForAddAction()
          Returns the HTML for the add cell in the action bar.
protected  HTMLTableCell GetHTMLForEmptyCellInActionBar()
          Helper method for empty cell between actions in the action bar.
protected  HTMLTableCell GetHTMLForNameColumn(IPTGrowableSortedArrayWrapperRO _saData, int _nRowIndex)
          Returns the HTML for the row _nRowIndex.
 HTMLElement GetHTMLForRow(IPTGrowableSortedArrayWrapperRO _saData, int _nRowIndex)
          Will be called for each row.
protected  HTMLImg GetIcon(PTImageType _imgRowIcon)
          Helper method to get the HTML for the icon.
 java.lang.String GetName()
          Returns the Class name.
 
Methods inherited from class com.plumtree.uiinfrastructure.expandablelist.ExpListView
AddHTMLToActionBar, CheckRowIsVisible, Display, GetHiddenInputsForPagination, GetHTMLBelowActionBar, GetHTMLBelowMainTable, GetHTMLForAllRowsAdded, GetHTMLForBottomRow, GetHTMLForCheckBox, GetHTMLForDeleteAction, GetHTMLForEmptyList, GetHTMLForMoveRowActions, GetHTMLForPaginationLinks, GetHTMLForSubHeader, GetJavaScriptsForPagination, SetRowStyle
 
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
 

Field Detail

STR_MVC_CLASS_NAME

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

HTMLINPUT_TEMPLATETREEASID

public static final java.lang.String HTMLINPUT_TEMPLATETREEASID
Template Tree Space ID

See Also:
Constant Field Values
Constructor Detail

TemplateListView

public TemplateListView()
Method Detail

GetHTMLForActionBar

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

Overrides:
GetHTMLForActionBar in class ExpListView
Returns:
HTMLTable

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

GetHTMLForEmptyCellInActionBar

protected HTMLTableCell GetHTMLForEmptyCellInActionBar()
Helper method for empty cell between actions in the action bar.

Overrides:
GetHTMLForEmptyCellInActionBar in class ExpListView
Returns:
HTMLTableCell

GetHTMLForRow

public HTMLElement GetHTMLForRow(IPTGrowableSortedArrayWrapperRO _saData,
                                 int _nRowIndex)
Description copied from class: ExpListView
Will be called for each row. Should return the HTML for row _nRowIndex.

Specified by:
GetHTMLForRow in class ExpListView
Returns:
HTMLElement
See Also:
ExpListView.GetHTMLForRow(com.plumtree.uiinfrastructure.arraywrapper.IPTGrowableSortedArrayWrapperRO, int)

GetHTMLForNameColumn

protected HTMLTableCell GetHTMLForNameColumn(IPTGrowableSortedArrayWrapperRO _saData,
                                             int _nRowIndex)
Returns the HTML for the row _nRowIndex.

Parameters:
_saData -
_nRowIndex -
Returns:
HTMLTableCell
Throws:
java.lang.Exception

DisplayJavascript

public HTMLScript DisplayJavascript()
Description copied from class: ExpListView
Returns Java Script for goToPage function.

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

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

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()

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()



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