com.plumtree.portalpages.common.browsingpropchooser
Class PropChooserView

java.lang.Object
  extended by com.plumtree.uiinfrastructure.editor.EditorView
      extended by com.plumtree.uiinfrastructure.expandablelist.ExpListView
          extended by com.plumtree.portalpages.common.browsingpropchooser.PropChooserView
All Implemented Interfaces:
IManagedObject, IMVCObject, IView

public class PropChooserView
extends ExpListView

This is the implementation of the Expandable List for editing properties displayed when browsing

Author:
stephenc

Field Summary
static java.lang.String HTMLINPUT_SELECT_NEW_PROP
           
static java.lang.String HTMLINPUT_SELECT_NEW_PROP_TAGID
           
static java.lang.String STR_MVC_CLASS_NAME
          Class name for the activity space
 
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
PropChooserView()
           
 
Method Summary
 java.lang.Object Create()
          This method is used by the ASManager to return new instances of managed objects.
protected  HTMLTableCell GetHTMLForCheckBox(int _nRowIndex)
          Returns the HTML for the checkbox on row _nRowIndex.
protected  HTMLTableCell GetHTMLForName(IPTGrowableSortedArrayWrapperRO _saData, int _nRowIndex)
           
 HTMLElement GetHTMLForRow(IPTGrowableSortedArrayWrapperRO _saData, int _nRowIndex)
          Returns the HTML for the row _nRowIndex.
 java.lang.String GetName()
          Returns the Class name.
protected  HTMLSelect GetUnusedPropertiesHTMLSelect()
          Generates a list of properties to be added.
protected  void SetRowStyle(HTMLTableRow _myRow, int _nRowIndex, int _nLastVisibleRow)
          Helper method to set the style of a row.
 
Methods inherited from class com.plumtree.uiinfrastructure.expandablelist.ExpListView
AddHTMLToActionBar, CheckRowIsVisible, Display, DisplayJavascript, GetHiddenInputsForPagination, GetHTMLBelowActionBar, GetHTMLBelowMainTable, GetHTMLForActionBar, GetHTMLForAddAction, GetHTMLForAllRowsAdded, GetHTMLForBottomRow, 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
Class name for the activity space

See Also:
Constant Field Values

HTMLINPUT_SELECT_NEW_PROP

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

HTMLINPUT_SELECT_NEW_PROP_TAGID

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

PropChooserView

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

GetHTMLForRow

public HTMLElement GetHTMLForRow(IPTGrowableSortedArrayWrapperRO _saData,
                                 int _nRowIndex)
Returns the HTML for the row _nRowIndex. Each row contains just an icon and input text.

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

GetHTMLForCheckBox

protected HTMLTableCell GetHTMLForCheckBox(int _nRowIndex)
Description copied from class: ExpListView
Returns the HTML for the checkbox on row _nRowIndex.

Overrides:
GetHTMLForCheckBox in class ExpListView
Parameters:
_nRowIndex -
Returns:
Throws:
HTMLException

GetHTMLForName

protected HTMLTableCell GetHTMLForName(IPTGrowableSortedArrayWrapperRO _saData,
                                       int _nRowIndex)
Parameters:
_saData -
_nRowIndex -
Returns:
Throws:
HTMLException

GetUnusedPropertiesHTMLSelect

protected HTMLSelect GetUnusedPropertiesHTMLSelect()
Generates a list of properties to be added. Only card props that have not been chosen are offered

Returns:
Throws:
HTMLException

SetRowStyle

protected void SetRowStyle(HTMLTableRow _myRow,
                           int _nRowIndex,
                           int _nLastVisibleRow)
Helper method to set the style of a row. This method is used by Display(). Overrides the ExpListView::SetExpListRowStyle().

Parameters:
_myRow -
_nRowIndex -
_nLastVisibleRow -
Throws:
HTMLException
See Also:
com.plumtree.uiinfrastructure.expandablelist.ExpListView#SetExpListRowStyle(HTMLTableRow, int, int)



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