com.plumtree.portalpages.admin.editors.savedsearch
Class CollabExpListView

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

public class CollabExpListView
extends ExpListView

Author:
joseq This is the expandable list view that displays collab project names. It extends ExpListView so that we can override what the add method does (which is open the project picker from collab)

Field Summary
static java.lang.String HTMLINPUT_HI_SELECTEDIDS
          HTML ELLEMENTS constants
static java.lang.String JAVASCRIPT_CHOOSEPROJECTS
          javascript function constants
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
CollabExpListView()
           
 
Method Summary
protected  void AddHTMLToActionBar(HTMLTableRow _row)
          Empty method that sub classes can override to add actions to the action bar (like a create object action).
 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  HTMLTableCell GetHTMLForAddAction()
          Returns the HTML for the add cell 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.
 java.lang.String GetName()
          Returns the Class name.
 
Methods inherited from class com.plumtree.uiinfrastructure.expandablelist.ExpListView
CheckRowIsVisible, Display, GetHiddenInputsForPagination, GetHTMLBelowActionBar, GetHTMLBelowMainTable, GetHTMLForActionBar, GetHTMLForAllRowsAdded, GetHTMLForBottomRow, GetHTMLForCheckBox, GetHTMLForDeleteAction, GetHTMLForEmptyCellInActionBar, 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_HI_SELECTEDIDS

public static final java.lang.String HTMLINPUT_HI_SELECTEDIDS
HTML ELLEMENTS constants

See Also:
Constant Field Values

JAVASCRIPT_CHOOSEPROJECTS

public static final java.lang.String JAVASCRIPT_CHOOSEPROJECTS
javascript function constants

See Also:
Constant Field Values
Constructor Detail

CollabExpListView

public CollabExpListView()
Method Detail

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

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

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

AddHTMLToActionBar

protected void AddHTMLToActionBar(HTMLTableRow _row)
Description copied from class: ExpListView
Empty method that sub classes can override to add actions to the action bar (like a create object action).

Overrides:
AddHTMLToActionBar in class ExpListView
Parameters:
_row - Action bar row object.
See Also:
ExpListView.AddHTMLToActionBar(com.plumtree.xpshared.htmlelements.HTMLTableRow)

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

GetHTMLForAddAction

protected HTMLTableCell GetHTMLForAddAction()
Description copied from class: ExpListView
Returns the HTML for the add cell in the action bar.

Overrides:
GetHTMLForAddAction in class ExpListView
Returns:
HTMLTableCell

GetHTMLForNameColumn

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

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



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