|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.plumtree.portalpages.browsing.myportal.MyPortalContentView
public class MyPortalContentView
CUSTOMIZABLE - If you want to customize the my page and community page layouts, subclass this class with a new class and customize the code in that new file. Do not alter the code this class at all. You only need to override the methods that you want to customize. Your new class will override MyPortalContentView through Dynamic Discovery. Please read the section on Dynamic Discovery in the UI Guide. The variables and methods in MyPortalContentView that you can customize in your new class are bounded by the comments BEGIN CUSTOMIZABLE CODE and END CUSTOMIZABLE CODE. Each customizable variable and method is also marked as such in its javadoc comments. The structure of how MyPortalContentView displays a mypage or community page is as follows. Display determines whether to call OneColumn, TwoColumns, ThreeColumns based upon whether the PageType of a page is a one, two, or three column layout. OneColumn, TwoColumns, and ThreeColumns determine whether or not there is a content canvas area to be displayed, where that content canvas area gets displayed, and they call PageColumnTable for each column in the layout. If the content canvas area spans more than one portlet column, then it gets a call to PageColumnTable for itself. PageColumnTable determines whether it needs to display a content canvas area above the portlets in the column it is displaying, and makes a call to PortletContent for that content canvas portlet. Then PageColumnTable makes a call to PortletHeader and PortletContent for each portlet in the column. PortletContent returns the content of the portlet, it should not under normal circumstances need to be customized. PortletHeader delegates the display of the portlet header to com.plumtree.portaluiinfrastructure.htmlconstructs.PTPortletTitleBar. If you want to customize the portlet header, make your own version of PTPortletTitleBar (with a different name) and have PortletHeader use that instead. PortletHeader calls GetPortletActions and passes the return value to PTPortletTitleBar. GetPortletActions puts the list of buttons to be displayed in the portlet header (other than the help button) into an array and returns that array. You can add more buttons to this array, or you can remove some of the default buttons. GetLayoutTable, GetNarrowColumn, GetWideColumn, GetPortletVerticalPadding, GetPortletVerticalPaddingRow, and GetPortletHorizontalPadding are the glue used to bind the portlets together and in most circumstances should not need to be customized.
Field Summary | |
---|---|
protected HTMLScript |
m_prefsDropDownInitializers
|
static int |
N_NARROW_COL_WIDTH
CUSTOMIZABLE - The width of a narrow column. |
static int |
N_PORTLET_PADDING
CUSTOMIZABLE - The width of the padding between portlet columns and between portlets. |
static java.lang.String |
STR_MVC_CLASS_NAME
Object Name |
static java.lang.String |
STR_NARROW_COL_WIDTH
Narrow Column Width - String |
static java.lang.String |
STR_PORTLET_PADDING
Padding between Portlet Columns and between portlets - String |
static java.lang.String |
strDisplayBlock
|
static java.lang.String |
strDisplayNone
|
static java.lang.String |
strExpandedDiv
|
static java.lang.String |
strMoreInfoDiv
These strings are used when composing links for showing additional error information. |
static java.lang.String |
strRefreshJSFunctionBegin
These strings are used when composing the refresh link for the portlet. |
static java.lang.String |
strRefreshJSFunctionEnd
|
static java.lang.String |
strReturnFalse
|
static java.lang.String |
strToggleJSFunctionBegin
|
static java.lang.String |
strToggleJSFunctionEnd
|
Constructor Summary | |
---|---|
MyPortalContentView()
|
Method Summary | |
---|---|
protected void |
Add508AccessKeyAnchor(java.lang.String strPortletName,
int nPortletIndex,
HTMLTableCell cell)
Given a cell and an int (a portlet index) adds HTML for an access anchor corresponding to that int, the title is set to the portlet name. |
protected void |
AddPTConstantsToPageScript(HTMLScript script)
CUSTOMIZABLE Method AddPTConstantsToPageScript. |
java.lang.Object |
Create()
This method is used by the ASManager to return new instances of managed objects. |
HTMLElement |
Display()
CUSTOMIZABLE The Display() method's main function is to take the PageType of the page and determine whether the page has a one, two, or three column layout. |
HTMLScript |
DisplayJavascript()
This method returns the HTMLScript that encompasses the Javascript on the page. |
HTMLElementCollection |
DisplaySinglePortlet(int nColumnID,
int portletIndex)
CUSTOMIZABLE |
HTMLElementCollection |
DisplaySinglePortletContent(int nColumnID,
int portletIndex)
CUSTOMIZABLE |
protected HTMLAnchor |
GetCollapseOrExpandAnchor(int nPortletIndex,
java.lang.String strControl,
PTImageType imgType,
java.lang.String strTitle)
|
HTMLTable |
GetLayoutTable(java.lang.String _strTableSummary)
CUSTOMIZABLE Method GetLayoutTable. |
java.lang.String |
GetName()
Return the name of the MVC object. |
protected HTMLTableCell |
GetNarrowColumn()
CUSTOMIZABLE Method GetNarrowColumn. |
protected HTMLTableCell |
GetPortletButtonsCell(int nPortletIndex)
CUSTOMIZABLE |
protected HTMLSpan |
GetPortletCollapseExpandAction(int nPortletIndex,
java.lang.String strOnclickFunction)
Obtain the collapse button from the portlet header given the portlet index. |
HTMLElementCollection |
GetPortletCollapseExpandButtonContent(int nPortletIndex)
CUSTOMIZABLE |
HTMLElementCollection |
GetPortletCollapseExpandButtonContent(int nPortletIndex,
java.lang.String strOnclickFunction)
|
HTMLElementCollection |
GetPortletHelpButtonContent(int nPortletIndex)
CUSTOMIZABLE |
protected HTMLTableCell |
GetPortletHorizontalPaddingCell()
CUSTOMIZABLE Method GetPortletHorizontalPaddingCell. |
protected HTMLTableCell |
GetPortletHorizontalPaddingCell(java.lang.String _strColumnID)
CUSTOMIZABLE Method GetPortletHorizontalPaddingCell. |
protected HTMLTableCell |
GetPortletNameCell(int nPortletIndex,
int nColumnID)
CUSTOMIZABLE |
protected HTMLSpan[] |
GetPortletPreferenceAction(int nPortletIndex)
Obtain the Preference Button from the portlet header given the portlet index. |
HTMLElementCollection |
GetPortletPreferenceButtonContent(int nPortletIndex)
CUSTOMIZABLE |
HTMLElementCollection |
GetPortletRefreshButtonContent(int nPortletIndex)
CUSTOMIZABLE |
protected HTMLSpan |
GetPortletRemoveAction(int nPortletIndex)
|
HTMLElementCollection |
GetPortletRemoveButtonContent(int nPortletIndex)
|
HTMLTable |
GetPortletVerticalPadding()
CUSTOMIZABLE Method GetPortletVerticalPadding. |
protected HTMLTableRow |
GetPortletVerticalPaddingRow(java.lang.String _colSpan)
CUSTOMIZABLE Method GetPortletVerticalPadding. |
protected HTMLAnchor |
GetRemoveAnchor(int nPortletIndex,
java.lang.String strControl,
PTImageType imgType,
java.lang.String strTitle)
|
protected HTMLTableCell |
GetWideColumn()
CUSTOMIZABLE Method GetWideColumn. |
void |
Init(IModelRO model,
AActivitySpace parent)
This method initializes the View with the read only model interface it is supposed to draw it's data from as well as it's parent ActivitySpace (necessary to create URLS). |
protected HTMLTable |
OneColumn(int nPageType)
CUSTOMIZABLE |
protected HTMLElement |
PageColumnTable(int _nColumnID,
boolean _bContainsFreeFormContent)
CUSTOMIZABLE PortletContent must always be called before PortletHeader for a portlet. |
HTMLDiv |
PortletContent(int nPortletIndex,
int nColumnID)
// CR ROB: This file is customizable by users so add in useful descriptions of method and arguments |
protected HTMLTableRow |
PortletHeader(int nPortletIndex,
int nColumnID)
CUSTOMIZABLE |
protected HTMLTable |
ThreeColumns(int _nPageType)
CUSTOMIZABLE |
protected HTMLTable |
TwoColumns(int _nPageType,
PortletColumnConstants _narrowColumnToDisplay,
boolean _bIsOuterTwoColumns)
CUSTOMIZABLE |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int N_NARROW_COL_WIDTH
public static final int N_PORTLET_PADDING
public static final java.lang.String strRefreshJSFunctionBegin
public static final java.lang.String strRefreshJSFunctionEnd
protected HTMLScript m_prefsDropDownInitializers
public static final java.lang.String strMoreInfoDiv
public static final java.lang.String strExpandedDiv
public static final java.lang.String strToggleJSFunctionBegin
public static final java.lang.String strToggleJSFunctionEnd
public static final java.lang.String strReturnFalse
public static final java.lang.String strDisplayNone
public static final java.lang.String strDisplayBlock
public static final java.lang.String STR_MVC_CLASS_NAME
public static final java.lang.String STR_NARROW_COL_WIDTH
public static final java.lang.String STR_PORTLET_PADDING
Constructor Detail |
---|
public MyPortalContentView()
Method Detail |
---|
public HTMLElement Display()
Display
in interface IView
protected HTMLTable OneColumn(int nPageType) throws HTMLException
nPageType
-
HTMLException
protected HTMLTable ThreeColumns(int _nPageType) throws HTMLException
nPageType
-
HTMLException
protected HTMLTable TwoColumns(int _nPageType, PortletColumnConstants _narrowColumnToDisplay, boolean _bIsOuterTwoColumns) throws HTMLException
nPageType
-
HTMLException
protected HTMLElement PageColumnTable(int _nColumnID, boolean _bContainsFreeFormContent) throws HTMLException
nColumnID
- bContainsFreeFormContent
-
HTMLException
public HTMLElementCollection DisplaySinglePortlet(int nColumnID, int portletIndex)
nColumnID
- The ID of the column this portlet is currently in.nPortletIndex
-
public HTMLElementCollection DisplaySinglePortletContent(int nColumnID, int portletIndex)
nColumnID
- The ID of the column this portlet is currently in.nPortletIndex
-
protected HTMLTableRow PortletHeader(int nPortletIndex, int nColumnID) throws HTMLException
nPortletIndex
- nColumnID
- The ID of the column this portlet is currently in.
HTMLException
protected HTMLTableCell GetPortletButtonsCell(int nPortletIndex)
nPortletIndex
-
public HTMLElementCollection GetPortletRefreshButtonContent(int nPortletIndex)
nPortletIndex
-
public HTMLElementCollection GetPortletHelpButtonContent(int nPortletIndex)
nPortletIndex
-
public HTMLElementCollection GetPortletPreferenceButtonContent(int nPortletIndex)
nPortletIndex
-
public HTMLElementCollection GetPortletCollapseExpandButtonContent(int nPortletIndex)
nPortletIndex
-
public HTMLElementCollection GetPortletCollapseExpandButtonContent(int nPortletIndex, java.lang.String strOnclickFunction)
public HTMLElementCollection GetPortletRemoveButtonContent(int nPortletIndex)
protected HTMLTableCell GetPortletNameCell(int nPortletIndex, int nColumnID)
nPortletIndex
- nColumnID
- The ID of the column this portlet is currently in.
protected void Add508AccessKeyAnchor(java.lang.String strPortletName, int nPortletIndex, HTMLTableCell cell)
strPortletName
- nPortletIndex
- cell
- protected HTMLSpan[] GetPortletPreferenceAction(int nPortletIndex)
nPortletIndex
-
protected HTMLSpan GetPortletCollapseExpandAction(int nPortletIndex, java.lang.String strOnclickFunction)
nPortletIndex
- strOnclickFunction
- - name of javascript function to call if there is one, null otherwise
protected HTMLSpan GetPortletRemoveAction(int nPortletIndex)
protected HTMLAnchor GetCollapseOrExpandAnchor(int nPortletIndex, java.lang.String strControl, PTImageType imgType, java.lang.String strTitle)
nPortletIndex
- strCollapseOrExpandControl
- imgType
- strTitle
-
protected HTMLAnchor GetRemoveAnchor(int nPortletIndex, java.lang.String strControl, PTImageType imgType, java.lang.String strTitle)
nPortletIndex
- strControl
- imgType
- strTitle
-
public HTMLTable GetLayoutTable(java.lang.String _strTableSummary)
_strTableSummary
- Summary of the table.
protected HTMLTableCell GetNarrowColumn()
protected HTMLTableCell GetWideColumn()
public HTMLTable GetPortletVerticalPadding()
protected HTMLTableRow GetPortletVerticalPaddingRow(java.lang.String _colSpan)
_colSpan
- protected HTMLTableCell GetPortletHorizontalPaddingCell()
protected HTMLTableCell GetPortletHorizontalPaddingCell(java.lang.String _strColumnID)
protected void AddPTConstantsToPageScript(HTMLScript script)
public java.lang.Object Create()
IManagedObject
Create
in interface IManagedObject
IManagedObject.Create()
public HTMLScript DisplayJavascript()
DisplayJavascript
in interface IView
IView.DisplayJavascript()
public java.lang.String GetName()
IMVCObject
GetName
in interface IMVCObject
com.plumtree.xpshared.activityspace.IView#GetName()
public void Init(IModelRO model, AActivitySpace parent)
IView
Init
in interface IView
com.plumtree.xpshared.activityspace.IView#Init(IModel,
AActivitySpace)
public HTMLDiv PortletContent(int nPortletIndex, int nColumnID) throws HTMLException
nPortletIndex
- nColumnID
- NOT USED
HTMLException
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |