com.plumtree.portalpages.portlets.sitemap.prefs
Class SiteMapPortletPrefsSortedLinksView

java.lang.Object
  extended by com.plumtree.uiinfrastructure.editor.EditorView
      extended by com.plumtree.uiinfrastructure.expandablelist.ExpListView
          extended by com.plumtree.portalpages.portlets.sitemap.prefs.SiteMapPortletPrefsSortedLinksView
All Implemented Interfaces:
IManagedObject, IMVCObject, IView

public class SiteMapPortletPrefsSortedLinksView
extends ExpListView

Section for a list of links in prefs pages.

Author:
Naveen

Field Summary
static int MAX_DESC_LENGTH
           
static java.lang.String STR_MVC_CLASS_NAME
          Object 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
SiteMapPortletPrefsSortedLinksView()
           
 
Method Summary
protected  void AddHTMLToActionBar(HTMLTableRow _myRow)
          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()
          Display the javascript functions that are needed in this view.
protected  HTMLTableCell GetHTMLForCheckBox(int _nRowIndex)
          Returns the HTML for the checkbox on row _nRowIndex.
protected  HTMLTableCell GetHTMLForDeleteAction()
          Returns the HTML for the delete 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.
protected  HTMLImg GetIcon(int nLinkType)
          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
CheckRowIsVisible, Display, GetHiddenInputsForPagination, GetHTMLBelowActionBar, GetHTMLBelowMainTable, GetHTMLForActionBar, GetHTMLForAddAction, GetHTMLForAllRowsAdded, GetHTMLForBottomRow, 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
Object Name

See Also:
Constant Field Values

MAX_DESC_LENGTH

public static final int MAX_DESC_LENGTH
See Also:
Constant Field Values
Constructor Detail

SiteMapPortletPrefsSortedLinksView

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

DisplayJavascript

public HTMLScript DisplayJavascript()
Display the javascript functions that are needed in this view.

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

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(IPTGrowableSortedArrayWrapperRO, int)

GetName

public java.lang.String GetName()
Returns the Class name.

Specified by:
GetName in interface IMVCObject
Specified by:
GetName in class EditorView
Returns:
String

GetHTMLForNameColumn

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

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

GetIcon

protected HTMLImg GetIcon(int nLinkType)
Helper method to get the HTML for the icon. (Each row has an icon before the input text.)

Returns:
HTMLImg
Throws:
java.lang.Exception

AddHTMLToActionBar

protected void AddHTMLToActionBar(HTMLTableRow _myRow)
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:
_myRow - Action bar row object.
See Also:
ExpListView.AddHTMLToActionBar(HTMLTableRow)

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
Returns:
HTMLTableCell
See Also:
ExpListView.GetHTMLForCheckBox(int)

GetHTMLForDeleteAction

protected HTMLTableCell GetHTMLForDeleteAction()
Returns the HTML for the delete cell in the action bar. The plugin view already handle delete, so we'll just return a space here

Overrides:
GetHTMLForDeleteAction in class ExpListView
Returns:
HTMLTableCell
Throws:
java.lang.Exception



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