Package com.liferay.portal.kernel.theme
Class PortletDisplay
Object
com.liferay.portal.kernel.theme.PortletDisplay
- All Implemented Interfaces:
Serializable
,Cloneable
Provides general configuration methods for the portlet, providing access to
the portlet's content, instance, theme, URLs, and more. This class contains
contextual information about the currently rendered portlet. An object of
this class is only available in the context of a single portlet and is not
available in the context of any page.
- Author:
- Brian Wing Shun Chan, Eduardo Lundgren
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
void
copyFrom
(PortletDisplay master) void
copyTo
(PortletDisplay slave) int
int
com.liferay.petra.string.StringBundler
getId()
getTitle()
boolean
isActive()
boolean
isBeta()
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
void
recycle()
void
setActive
(boolean active) void
setBeta
(boolean beta) void
setColumnCount
(int columnCount) void
setColumnId
(String columnId) void
setColumnPos
(int columnPos) void
setContent
(com.liferay.petra.string.StringBundler contentSB) void
setCustomCSSClassName
(String customCSSClassName) void
setDescription
(String description) void
void
setInstanceId
(String instanceId) void
setModeAbout
(boolean modeAbout) void
setModeConfig
(boolean modeConfig) void
setModeEdit
(boolean modeEdit) void
setModeEditDefaults
(boolean modeEditDefaults) void
setModeEditGuest
(boolean modeEditGuest) void
setModeHelp
(boolean modeHelp) void
setModePreview
(boolean modePreview) void
setModePrint
(boolean modePrint) void
setModeView
(boolean modeView) void
setNamespace
(String namespace) void
setPortletDecorate
(boolean portletDecorate) void
setPortletDecoratorId
(String portletDecoratorId) void
setPortletDisplayName
(String portletDisplayName) void
setPortletName
(String portletName) void
setPortletPreferences
(PortletPreferences portletPreferences) void
setPortletResource
(String portletResource) void
setResourcePK
(String resourcePK) void
setRestoreCurrentView
(boolean restoreCurrentView) void
setRootPortletId
(String rootPortletId) void
setShowBackIcon
(boolean showBackIcon) void
setShowCloseIcon
(boolean showCloseIcon) void
setShowConfigurationIcon
(boolean showConfigurationIcon) void
setShowEditDefaultsIcon
(boolean showEditDefaultsIcon) void
setShowEditGuestIcon
(boolean showEditGuestIcon) void
setShowEditIcon
(boolean showEditIcon) void
setShowExportImportIcon
(boolean showExportImportIcon) void
setShowHelpIcon
(boolean showHelpIcon) void
setShowMoveIcon
(boolean showMoveIcon) void
setShowPortletCssIcon
(boolean showPortletCssIcon) void
setShowPortletIcon
(boolean showPortletIcon) void
setShowPrintIcon
(boolean showPrintIcon) void
setShowRefreshIcon
(boolean showRefreshIcon) void
setShowStagingIcon
(boolean showStagingIcon) void
setStateExclusive
(boolean stateExclusive) void
setStateMax
(boolean stateMax) void
setStateMin
(boolean stateMin) void
setStateNormal
(boolean stateNormal) void
setStatePopUp
(boolean statePopUp) void
setThemeDisplay
(ThemeDisplay themeDisplay) void
void
setURLBack
(String urlBack) void
setURLBackTitle
(String urlBackTitle) void
setURLClose
(String urlClose) void
setURLConfiguration
(String urlConfiguration) void
setURLConfigurationJS
(String urlConfigurationJS) void
setURLEdit
(String urlEdit) void
setURLEditDefaults
(String urlEditDefaults) void
setURLEditGuest
(String urlEditGuest) void
setURLExportImport
(String urlExportImport) void
setURLHelp
(String urlHelp) void
void
void
setURLPortlet
(String urlPortlet) void
setURLPortletCss
(String urlPortletCss) void
setURLPrint
(String urlPrint) void
setURLRefresh
(String urlRefresh) void
setURLStaging
(String urlStaging) void
setWebDAVEnabled
(boolean webDAVEnabled) void
writeContent
(Writer writer)
-
Constructor Details
-
PortletDisplay
public PortletDisplay()
-
-
Method Details
-
clone
-
copyFrom
-
copyTo
-
getColumnCount
public int getColumnCount() -
getColumnId
-
getColumnPos
public int getColumnPos() -
getContent
public com.liferay.petra.string.StringBundler getContent() -
getCustomCSSClassName
-
getDescription
-
getId
-
getInstanceId
-
getNamespace
-
getPortletConfigurationIconMenu
-
getPortletDecoratorId
-
getPortletDisplayName
-
getPortletName
-
getPortletPreferences
-
getPortletResource
-
getPortletToolbar
-
getResourcePK
-
getRootPortletId
-
getThemeDisplay
-
getTitle
-
getURLBack
-
getURLBackTitle
-
getURLClose
-
getURLConfiguration
-
getURLConfigurationJS
-
getURLEdit
-
getURLEditDefaults
-
getURLEditGuest
-
getURLExportImport
-
getURLHelp
-
getURLMax
-
getURLMin
-
getURLPortlet
-
getURLPortletCss
-
getURLPrint
-
getURLRefresh
-
getURLStaging
-
isActive
public boolean isActive() -
isBeta
public boolean isBeta() -
isFocused
public boolean isFocused() -
isModeAbout
public boolean isModeAbout() -
isModeConfig
public boolean isModeConfig() -
isModeEdit
public boolean isModeEdit() -
isModeEditDefaults
public boolean isModeEditDefaults() -
isModeEditGuest
public boolean isModeEditGuest() -
isModeHelp
public boolean isModeHelp() -
isModePreview
public boolean isModePreview() -
isModePrint
public boolean isModePrint() -
isModeView
public boolean isModeView() -
isPortletDecorate
public boolean isPortletDecorate() -
isRestoreCurrentView
public boolean isRestoreCurrentView() -
isShowBackIcon
public boolean isShowBackIcon() -
isShowCloseIcon
public boolean isShowCloseIcon() -
isShowConfigurationIcon
public boolean isShowConfigurationIcon() -
isShowEditDefaultsIcon
public boolean isShowEditDefaultsIcon() -
isShowEditGuestIcon
public boolean isShowEditGuestIcon() -
isShowEditIcon
public boolean isShowEditIcon() -
isShowExportImportIcon
public boolean isShowExportImportIcon() -
isShowHelpIcon
public boolean isShowHelpIcon() -
isShowMoveIcon
public boolean isShowMoveIcon() -
isShowPortletCssIcon
public boolean isShowPortletCssIcon() -
isShowPortletIcon
public boolean isShowPortletIcon() -
isShowPortletTitle
public boolean isShowPortletTitle() -
isShowPortletTopper
public boolean isShowPortletTopper() -
isShowPrintIcon
public boolean isShowPrintIcon() -
isShowRefreshIcon
public boolean isShowRefreshIcon() -
isShowStagingIcon
public boolean isShowStagingIcon() -
isStateExclusive
public boolean isStateExclusive() -
isStateMax
public boolean isStateMax() -
isStateMin
public boolean isStateMin() -
isStateNormal
public boolean isStateNormal() -
isStatePopUp
public boolean isStatePopUp() -
isWebDAVEnabled
public boolean isWebDAVEnabled() -
recycle
public void recycle() -
setActive
public void setActive(boolean active) -
setBeta
public void setBeta(boolean beta) -
setColumnCount
public void setColumnCount(int columnCount) -
setColumnId
-
setColumnPos
public void setColumnPos(int columnPos) -
setContent
public void setContent(com.liferay.petra.string.StringBundler contentSB) -
setCustomCSSClassName
-
setDescription
-
setId
-
setInstanceId
-
setModeAbout
public void setModeAbout(boolean modeAbout) -
setModeConfig
public void setModeConfig(boolean modeConfig) -
setModeEdit
public void setModeEdit(boolean modeEdit) -
setModeEditDefaults
public void setModeEditDefaults(boolean modeEditDefaults) -
setModeEditGuest
public void setModeEditGuest(boolean modeEditGuest) -
setModeHelp
public void setModeHelp(boolean modeHelp) -
setModePreview
public void setModePreview(boolean modePreview) -
setModePrint
public void setModePrint(boolean modePrint) -
setModeView
public void setModeView(boolean modeView) -
setNamespace
-
setPortletDecorate
public void setPortletDecorate(boolean portletDecorate) -
setPortletDecoratorId
-
setPortletDisplayName
-
setPortletName
-
setPortletPreferences
-
setPortletResource
-
setResourcePK
-
setRestoreCurrentView
public void setRestoreCurrentView(boolean restoreCurrentView) -
setRootPortletId
-
setShowBackIcon
public void setShowBackIcon(boolean showBackIcon) -
setShowCloseIcon
public void setShowCloseIcon(boolean showCloseIcon) -
setShowConfigurationIcon
public void setShowConfigurationIcon(boolean showConfigurationIcon) -
setShowEditDefaultsIcon
public void setShowEditDefaultsIcon(boolean showEditDefaultsIcon) -
setShowEditGuestIcon
public void setShowEditGuestIcon(boolean showEditGuestIcon) -
setShowEditIcon
public void setShowEditIcon(boolean showEditIcon) -
setShowExportImportIcon
public void setShowExportImportIcon(boolean showExportImportIcon) -
setShowHelpIcon
public void setShowHelpIcon(boolean showHelpIcon) -
setShowMoveIcon
public void setShowMoveIcon(boolean showMoveIcon) -
setShowPortletCssIcon
public void setShowPortletCssIcon(boolean showPortletCssIcon) -
setShowPortletIcon
public void setShowPortletIcon(boolean showPortletIcon) -
setShowPrintIcon
public void setShowPrintIcon(boolean showPrintIcon) -
setShowRefreshIcon
public void setShowRefreshIcon(boolean showRefreshIcon) -
setShowStagingIcon
public void setShowStagingIcon(boolean showStagingIcon) -
setStateExclusive
public void setStateExclusive(boolean stateExclusive) -
setStateMax
public void setStateMax(boolean stateMax) -
setStateMin
public void setStateMin(boolean stateMin) -
setStateNormal
public void setStateNormal(boolean stateNormal) -
setStatePopUp
public void setStatePopUp(boolean statePopUp) -
setThemeDisplay
-
setTitle
-
setURLBack
-
setURLBackTitle
-
setURLClose
-
setURLConfiguration
-
setURLConfigurationJS
-
setURLEdit
-
setURLEditDefaults
-
setURLEditGuest
-
setURLExportImport
-
setURLHelp
-
setURLMax
-
setURLMin
-
setURLPortlet
-
setURLPortletCss
-
setURLPrint
-
setURLRefresh
-
setURLStaging
-
setWebDAVEnabled
public void setWebDAVEnabled(boolean webDAVEnabled) -
writeContent
- Throws:
IOException
-