com.plumtree.portalpages.browsing.editors.community
Class PageListView

java.lang.Object
  extended by com.plumtree.uiinfrastructure.editor.EditorView
      extended by com.plumtree.uiinfrastructure.expandablelist.ExpListView
          extended by com.plumtree.portalpages.browsing.editors.community.PageListView
All Implemented Interfaces:
IManagedObject, IMVCObject, IView

public class PageListView
extends ExpListView

Section for a list of pages, with action bar.

Author:
michaeld

Field Summary
static java.lang.String HTMLINPUT_CB_PAGE
          Form Input: Checbox for Pages
static java.lang.String HTMLINPUT_EDITPAGEASID
          Edit Page Space ID
static java.lang.String HTMLINPUT_HI_EDITPAGE
          Form Input: Hidden Edit Page
static java.lang.String HTMLINPUT_HI_PAGECOUNT
          Form Input: Hidden Page Count
static java.lang.String HTMLINPUT_NEWPAGETREEASID
          New Page Tree Space ID
static java.lang.String JAVASCRIPT_CHECK_HOME_PAGE
           
static java.lang.String PAGE_UNIQUE_ID
          Query String: Page Unique ID
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
PageListView()
           
 
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.
protected  ASURL CreateUrlToEditPage()
          Creates URL to edit a page.
protected  ASURL CreateUrlToEditPrevPage()
          Creates URL to edit a previously opened page.
 HTMLScript DisplayJavascript()
          Display the javascript functions that are needed in this view.
protected  HTMLTableCell GetHTMLForAddAction()
          Gets the HTML for the add new page action, for the action bar.
protected  HTMLTableCell GetHTMLForCheckBox(int _nRowIndex)
          Returns the HTML for the checkbox on row _nRowIndex.
protected  HTMLTableCell GetHTMLForFromCommunityTemplateColumn(IPTGrowableSortedArrayWrapperRO _saData, int _nRowIndex)
          Returns the HTML for the row _nRowIndex.
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(PTImageType _imgRowIcon)
          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, 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
Object Name

See Also:
Constant Field Values

HTMLINPUT_CB_PAGE

public static final java.lang.String HTMLINPUT_CB_PAGE
Form Input: Checbox for Pages

See Also:
Constant Field Values

HTMLINPUT_NEWPAGETREEASID

public static final java.lang.String HTMLINPUT_NEWPAGETREEASID
New Page Tree Space ID

See Also:
Constant Field Values

HTMLINPUT_EDITPAGEASID

public static final java.lang.String HTMLINPUT_EDITPAGEASID
Edit Page Space ID

See Also:
Constant Field Values

HTMLINPUT_HI_EDITPAGE

public static final java.lang.String HTMLINPUT_HI_EDITPAGE
Form Input: Hidden Edit Page

See Also:
Constant Field Values

HTMLINPUT_HI_PAGECOUNT

public static final java.lang.String HTMLINPUT_HI_PAGECOUNT
Form Input: Hidden Page Count

See Also:
Constant Field Values

PAGE_UNIQUE_ID

public static final java.lang.String PAGE_UNIQUE_ID
Query String: Page Unique ID

See Also:
Constant Field Values

JAVASCRIPT_CHECK_HOME_PAGE

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

PageListView

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

CreateUrlToEditPage

protected ASURL CreateUrlToEditPage()
Creates URL to edit a page. NOTE: Seperated this from the displayJS() method so that we can subclass this class and have it open to an AS that subclasses EditMyPortalPageAS.


CreateUrlToEditPrevPage

protected ASURL CreateUrlToEditPrevPage()
Creates URL to edit a previously opened page. NOTE: Seperated this from the displayJS() method so that we can subclass this class and have it open to an AS that subclasses EditMyPortalPageAS.


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

GetHTMLForAddAction

protected HTMLTableCell GetHTMLForAddAction()
Gets the HTML for the add new page action, for the action bar.

Overrides:
GetHTMLForAddAction in class ExpListView
Returns:
HTMLTableCell

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)

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)

GetHTMLForNameColumn

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

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

GetHTMLForFromCommunityTemplateColumn

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

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

GetIcon

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

Returns:
HTMLImg
Throws:
java.lang.Exception



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