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

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.expandablelist.properties.ExpListPropEditView
                  extended by com.plumtree.portaluiinfrastructure.editor.commonpages.objectproperties.ObjPropEditView
All Implemented Interfaces:
IManagedObject, IMVCObject, IView
Direct Known Subclasses:
GeneralInfoView

public class ObjPropEditView
extends ExpListPropEditView

This is the implementation of the Expandable List for object properties

Author:
josephc

Field Summary
static java.lang.String HTMLHIDDEN_CLEARVALUE
          HTML Object name: clear value (set to true to clear the property value)
static java.lang.String HTMLINPUT_SELECT_PICKLIST_PREFIX
          Prefix for picklist input
static java.lang.String HTMLINPUT_SELECT_PICKLIST_TAGID
          TagID for picklist
protected  java.lang.String m_strRowHeight
          Height of rows in list
static java.lang.String STR_MVC_CLASS_NAME
          Class name for the ObjPropEditView
 
Fields inherited from class com.plumtree.portaluiinfrastructure.expandablelist.properties.ExpListPropEditView
HTMLINPUT_ITEM, HTMLINPUT_PASSWORD, INPUT_MAXLENGTH_STRING, INPUT_MAXSIZE_DOUBLE, INPUT_MAXSIZE_LONG, INPUT_MAXSIZE_STRING
 
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
ObjPropEditView()
           
 
Method Summary
protected  boolean CheckRowIsRemovable(int _nRowIndex)
          Checks to see if the row can be removed.
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.
 HTMLElement Display()
          Returns the HTML for the View.
 HTMLScript DisplayJavascript()
          JavaScript for opening tree selectors and retrieving values on return from tree.
protected  HTMLAnchor GetAddAnchor(int _nRowIndex)
          Returns anchor for add button
protected  HTMLAnchor GetDeleteAnchor(int _nRowIndex)
          Returns anchor for delete button
protected  HTMLTable GetHTMLBelowActionBar()
          We don't have an action bar in our edit mode, but we will display a button to link to the global object properties map below where the action bar would have been.
protected  HTMLTable GetHTMLBelowMainTable()
          Displays HTML below action bar.
protected  HTMLTableCell GetHTMLForEditMappings()
          Returns the HTML for the editing mappings
protected  HTMLTableCell GetHTMLForName(int _nRowIndex)
          Returns HTML for name of property.
protected  HTMLElementCollection GetHTMLForPickList(int _nRowIndex, java.lang.String _strValue)
          Returns HTML for pick list
protected  HTMLElement GetHTMLForPickTree(int _nRowIndex, java.lang.String _strValue)
          Returns HTML for pick tree
protected  HTMLTableCell GetHTMLForPropertyValue(int _nRowIndex)
          Returns table cell for property value
protected  HTMLElement GetHTMLForReferenceTree(int _nRowIndex, java.lang.String _strValue)
          Returns HTML for reference tree
 HTMLElement GetHTMLForRow(IPTGrowableSortedArrayWrapperRO _saData, int _nRowIndex)
          Returns the HTML for the row _nRowIndex.
protected  HTMLTableCell GetHTMLForRowAction(int _nRowIndex)
          Returns table cell for adding a value or deleting a value.
 java.lang.String GetName()
          Returns the Class name.
 
Methods inherited from class com.plumtree.portaluiinfrastructure.expandablelist.properties.ExpListPropEditView
GetHTMLElementForRow, GetHTMLEncryptedInput, GetHTMLForDate, GetHTMLTextInput
 
Methods inherited from class com.plumtree.portaluiinfrastructure.expandablelist.properties.ExpListPropBrowseView
CheckRowIsFirstForProperty, SetRowStyle
 
Methods inherited from class com.plumtree.uiinfrastructure.expandablelist.ExpListView
AddHTMLToActionBar, GetHiddenInputsForPagination, 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 ObjPropEditView

See Also:
Constant Field Values

HTMLINPUT_SELECT_PICKLIST_PREFIX

public static final java.lang.String HTMLINPUT_SELECT_PICKLIST_PREFIX
Prefix for picklist input

See Also:
Constant Field Values

HTMLINPUT_SELECT_PICKLIST_TAGID

public static final java.lang.String HTMLINPUT_SELECT_PICKLIST_TAGID
TagID for picklist

See Also:
Constant Field Values

HTMLHIDDEN_CLEARVALUE

public static final java.lang.String HTMLHIDDEN_CLEARVALUE
HTML Object name: clear value (set to true to clear the property value)

See Also:
Constant Field Values

m_strRowHeight

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

Constructor Detail

ObjPropEditView

public ObjPropEditView()
Method Detail

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)

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 View.

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

DisplayJavascript

public HTMLScript DisplayJavascript()
JavaScript for opening tree selectors and retrieving values on return from tree.

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

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

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

GetHTMLBelowMainTable

protected HTMLTable GetHTMLBelowMainTable()
Displays HTML below action bar. If the table contained any mandatory properties, then we want to display "*RequiredText".

Overrides:
GetHTMLBelowMainTable in class ExpListView
Returns:
HTML below action bar
Throws:
java.lang.Exception
See Also:
ExpListView.GetHTMLBelowMainTable()

GetHTMLForPickList

protected HTMLElementCollection GetHTMLForPickList(int _nRowIndex,
                                                   java.lang.String _strValue)
Returns HTML for pick list

Parameters:
_nRowIndex - Row index
_strValue - Property value as string
Returns:
HTML for pick list
Throws:
HTMLException

GetHTMLForPickTree

protected HTMLElement GetHTMLForPickTree(int _nRowIndex,
                                         java.lang.String _strValue)
Returns HTML for pick tree

Parameters:
_nRowIndex - Row index
_strValue - Property value as string
Returns:
HTML for pick tree
Throws:
java.lang.Exception

GetHTMLForReferenceTree

protected HTMLElement GetHTMLForReferenceTree(int _nRowIndex,
                                              java.lang.String _strValue)
Returns HTML for reference tree

Overrides:
GetHTMLForReferenceTree in class ExpListPropEditView
Parameters:
_nRowIndex - Row index
_strValue - Reference value as string
Returns:
HTML for pick tree
Throws:
java.lang.Exception

CheckRowIsRemovable

protected boolean CheckRowIsRemovable(int _nRowIndex)
Checks to see if the row can be removed.

Parameters:
_nRowIndex - Current row index
Returns:
Returns true if row can be removed. Otherwise returns false.
See Also:
com.plumtree.portaluiinfrastructure.editor.commonpages.objectproperties.IObjPropModelRO#CheckRowIsRemovable(int, boolean)

GetAddAnchor

protected HTMLAnchor GetAddAnchor(int _nRowIndex)
Returns anchor for add button

Parameters:
_nRowIndex - Current row index
Returns:
Anchor for add button
Throws:
java.lang.Exception

GetDeleteAnchor

protected HTMLAnchor GetDeleteAnchor(int _nRowIndex)
Returns anchor for delete button

Parameters:
_nRowIndex - Current row index
Returns:
Anchor for delete button
Throws:
java.lang.Exception

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

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

GetHTMLForRowAction

protected HTMLTableCell GetHTMLForRowAction(int _nRowIndex)
Returns table cell for adding a value or deleting a value.

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

GetHTMLForEditMappings

protected HTMLTableCell GetHTMLForEditMappings()
Returns the HTML for the editing mappings

Returns:
HTMLTableCell
Throws:
java.lang.Exception

GetHTMLBelowActionBar

protected HTMLTable GetHTMLBelowActionBar()
We don't have an action bar in our edit mode, but we will display a button to link to the global object properties map below where the action bar would have been.

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



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