com.plumtree.portaluiinfrastructure.editor.commonpages.objectproperties
Class ObjPropBrowseView

java.lang.Object
  extended by com.plumtree.uiinfrastructure.editor.EditorView
      extended by com.plumtree.uiinfrastructure.expandablelist.ExpListView
          extended by com.plumtree.portaluiinfrastructure.expandablelist.properties.ExpListPropBrowseView
              extended by com.plumtree.portaluiinfrastructure.editor.commonpages.objectproperties.ObjPropBrowseView
All Implemented Interfaces:
IManagedObject, IMVCObject, IView

public class ObjPropBrowseView
extends ExpListPropBrowseView

This is the implementation of the Expandable List for object properties

Author:
josephc

Field Summary
protected  java.lang.String m_strRowHeight
          Height of rows in list
static java.lang.String STR_MVC_CLASS_NAME
          Class name for the ObjPropBrowseView
 
Fields inherited from class com.plumtree.portaluiinfrastructure.expandablelist.properties.ExpListPropBrowseView
m_rowStyleClass
 
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
ObjPropBrowseView()
           
 
Method Summary
protected  boolean CheckRowIsVisible(int _nRowIndex)
          Helper method to determine whether or not row is visible.
 java.lang.Object Create()
          This method is used by the ASManager to return new instances of managed objects.
protected  HTMLTableCell GetHTMLForName(int _nRowIndex)
          Returns HTML for name of property.
protected  HTMLTableCell GetHTMLForPropertyValue(int _nRowIndex)
          Returns table cell for property value
 HTMLElement GetHTMLForRow(IPTGrowableSortedArrayWrapperRO _saData, int _nRowIndex)
          Returns the HTML for the row _nRowIndex.
protected  HTMLTableCell GetHTMLForRowAction(int _nRowIndex)
          Returns null because rows are read-only in browse-mode.
 java.lang.String GetName()
          Returns the Class name.
 
Methods inherited from class com.plumtree.portaluiinfrastructure.expandablelist.properties.ExpListPropBrowseView
CheckRowIsFirstForProperty, SetRowStyle
 
Methods inherited from class com.plumtree.uiinfrastructure.expandablelist.ExpListView
AddHTMLToActionBar, Display, DisplayJavascript, GetHiddenInputsForPagination, GetHTMLBelowActionBar, GetHTMLBelowMainTable, GetHTMLForActionBar, GetHTMLForAddAction, GetHTMLForAllRowsAdded, GetHTMLForBottomRow, GetHTMLForCheckBox, GetHTMLForDeleteAction, GetHTMLForEmptyCellInActionBar, GetHTMLForEmptyList, GetHTMLForMoveRowActions, GetHTMLForPaginationLinks, GetHTMLForSubHeader, GetJavaScriptsForPagination
 
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 ObjPropBrowseView

See Also:
Constant Field Values

m_strRowHeight

protected java.lang.String m_strRowHeight
Height of rows in list

Constructor Detail

ObjPropBrowseView

public ObjPropBrowseView()
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.

Specified by:
GetHTMLForRow in class ExpListView
Parameters:
_saData -
_nRowIndex - Row index
Returns:
HTML for row
Throws:
java.lang.Exception

GetHTMLForRowAction

protected HTMLTableCell GetHTMLForRowAction(int _nRowIndex)
Returns null because rows are read-only in browse-mode.

Parameters:
_nRowIndex - Current row index
Returns:
Table cell for action
Throws:
java.lang.Exception

GetHTMLForPropertyValue

protected HTMLTableCell GetHTMLForPropertyValue(int _nRowIndex)
Returns table cell for property value

Parameters:
_nRowIndex - Current row index
Returns:
Table cell for property value
Throws:
java.lang.Exception

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

CheckRowIsVisible

protected boolean CheckRowIsVisible(int _nRowIndex)
Helper method to determine whether or not row is visible. This method is used by Display(). This method overrides the default behavior of the ExpListView, where all rows are visible.

Overrides:
CheckRowIsVisible in class ExpListView
Parameters:
_nRowIndex -
Returns:
True if row should be displayed, otherwise false.
See Also:
ExpListView.CheckRowIsVisible(int)

GetHTMLForName

protected HTMLTableCell GetHTMLForName(int _nRowIndex)
Returns HTML for name of property. If the row is a new property then display name. If the row is another value in a multi-valued property, then don't display name. Distinguish mandatory properties from optional properties.

Parameters:
_nRowIndex - Row index
Returns:
HTML table cell for name
Throws:
HTMLException



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