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

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

public class PortletPreferencesView
extends EditorView

View of portlet preferences used for both community and my pages

Author:
MichaelD

Field Summary
static java.lang.String HTMLBUTTON_REPOST
           
static java.lang.String HTMLHIDDEN_FLIPCURRENTTITLEBARSTATE
           
static java.lang.String HTMLHIDDEN_FLIPGADGETID
           
static java.lang.String HTMLHIDDEN_SORTINGPAGEINDEX
           
static java.lang.String HTMLINPUT_PROP_DESCRIPTION
           
static java.lang.String HTMLINPUT_PROP_NAME
           
static java.lang.String HTMLINPUT_SELECTION_PORTLET
           
static java.lang.String STR_MVC_CLASS_NAME
          Object Name
 
Fields inherited from class com.plumtree.uiinfrastructure.editor.EditorView
m_asOwner, m_model, SPACE
 
Constructor Summary
PortletPreferencesView()
           
 
Method Summary
 java.lang.Object Create()
          This method is used by the ASManager to return new instances of managed objects.
 HTMLElement Display()
          Main display page
protected  boolean DisplayAdminPrefColumn(PTSortedArrayWrapper arrPortlets)
           
protected  boolean DisplayCommunityPrefColumn(int nCommunityID)
           
 HTMLScript DisplayJavascript()
          Returns Java Script for goToPage function.
protected  boolean DisplayPersonalPrefsColumn()
           
protected  HTMLTable GetAfterPageNameSpacerTable()
           
protected  HTMLTable GetBeforePageNameSpacerTable()
          Localized String: Unable to display the JavaScript for PortletPreferencesView (DisplayJavascript).
protected  HTMLTableCell GetHTMLForCheckBox(int nPortletID, int nPortletTitleBarState)
          Returns the HTML for the checkbox for a gadget
protected  HTMLTableCell GetHTMLForPortletName(java.lang.String strPortletName, int nPortletID, int nPortletType)
          Returns the HTML for the cell containing the portlet name
protected  HTMLTableCell GetHTMLForPortletPref(int nPortletID, int nPageID, int nCommunityID, int ptPrefsType, boolean bHasAccess, java.lang.String strPortletName)
          Returns the HTML for the cell containing the portlet preference url
 java.lang.String GetName()
          Returns the Class name.
protected  HTMLTable GetPageNameTable(java.lang.String strEncodedPageName)
           
protected  HTMLTableRow GetPortletNameDisplayTitleBarRow(int iCurrentPage, int nCommunityID, PTSortedArrayWrapper arrPortlets)
           
protected  boolean UserHasAdminAccessToPortlet(int nPortletID)
           
 
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_PROP_NAME

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

HTMLINPUT_PROP_DESCRIPTION

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

HTMLBUTTON_REPOST

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

HTMLINPUT_SELECTION_PORTLET

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

HTMLHIDDEN_SORTINGPAGEINDEX

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

HTMLHIDDEN_FLIPGADGETID

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

HTMLHIDDEN_FLIPCURRENTTITLEBARSTATE

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

PortletPreferencesView

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

Display

public HTMLElement Display()
Main display page

Specified by:
Display in interface IView
Specified by:
Display in class EditorView
Returns:
HTMLElement
Throws:
XPException

DisplayJavascript

public HTMLScript DisplayJavascript()
Returns Java Script for goToPage function.

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

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 nPortletID,
                                           int nPortletTitleBarState)
                                    throws HTMLException
Returns the HTML for the checkbox for a gadget

Parameters:
nPortletID -
Returns:
HTMLTableCell
Throws:
HTMLException

GetHTMLForPortletName

protected HTMLTableCell GetHTMLForPortletName(java.lang.String strPortletName,
                                              int nPortletID,
                                              int nPortletType)
                                       throws java.lang.Exception
Returns the HTML for the cell containing the portlet name

Parameters:
strPortletName -
Returns:
HTMLTableCell
Throws:
HTMLException
java.lang.Exception

GetHTMLForPortletPref

protected HTMLTableCell GetHTMLForPortletPref(int nPortletID,
                                              int nPageID,
                                              int nCommunityID,
                                              int ptPrefsType,
                                              boolean bHasAccess,
                                              java.lang.String strPortletName)
                                       throws java.lang.Exception
Returns the HTML for the cell containing the portlet preference url

Parameters:
int - nPortletID, int nPageID, int nCommunityID, int nHasPortletPrefs
Returns:
HTMLTableCell
Throws:
HTMLException
java.lang.Exception

GetAfterPageNameSpacerTable

protected HTMLTable GetAfterPageNameSpacerTable()
                                         throws java.lang.Exception
Returns:
Throws:
java.lang.Exception

GetBeforePageNameSpacerTable

protected HTMLTable GetBeforePageNameSpacerTable()
                                          throws java.lang.Exception
Localized String: Unable to display the JavaScript for PortletPreferencesView (DisplayJavascript).

Throws:
java.lang.Exception

GetPageNameTable

protected HTMLTable GetPageNameTable(java.lang.String strEncodedPageName)
                              throws java.lang.Exception
Parameters:
strEncodedPageName - Page Name must be html encoded before being passed to this method.
Returns:
html table for the page name
Throws:
java.lang.Exception

GetPortletNameDisplayTitleBarRow

protected HTMLTableRow GetPortletNameDisplayTitleBarRow(int iCurrentPage,
                                                        int nCommunityID,
                                                        PTSortedArrayWrapper arrPortlets)
                                                 throws java.lang.Exception
Parameters:
iCurrentPage -
arrPortlets -
Returns:
Throws:
java.lang.Exception

UserHasAdminAccessToPortlet

protected boolean UserHasAdminAccessToPortlet(int nPortletID)

DisplayAdminPrefColumn

protected boolean DisplayAdminPrefColumn(PTSortedArrayWrapper arrPortlets)

DisplayCommunityPrefColumn

protected boolean DisplayCommunityPrefColumn(int nCommunityID)

DisplayPersonalPrefsColumn

protected boolean DisplayPersonalPrefsColumn()



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