Package org.eclnt.ccaddons.pbc
Class CCDashboard
java.lang.Object
org.eclnt.jsfserver.pagebean.PageBean
org.eclnt.jsfserver.pagebean.component.PageBeanComponentBase
org.eclnt.jsfserver.pagebean.component.PageBeanComponent
org.eclnt.ccaddons.pbc.CCDashboard
- All Implemented Interfaces:
Serializable
,org.eclnt.jsfserver.elements.IConfiguredByLayout
,org.eclnt.jsfserver.pagebean.component.IPageBeanComponent
,org.eclnt.jsfserver.pagebean.IPageBean
,org.eclnt.jsfserver.util.valuemgmt.IDynamicContentBindingObject
public class CCDashboard
extends org.eclnt.jsfserver.pagebean.component.PageBeanComponent
implements Serializable
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Default implementation with dummy implementations.static interface
Additional interface for page beans containing information that is used within the CCDashboard Processing.static interface
UseCCDashboard.DefaultListener
in order to stay compatible in case of extensions of this interface.class
Nested classes/interfaces inherited from class org.eclnt.jsfserver.pagebean.component.PageBeanComponent
org.eclnt.jsfserver.pagebean.component.PageBeanComponent.ILiteralResolver, org.eclnt.jsfserver.pagebean.component.PageBeanComponent.LitMap
-
Field Summary
Fields inherited from class org.eclnt.jsfserver.pagebean.PageBean
m_pageModifier
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addDashboardItem
(org.eclnt.jsfserver.pagebean.IPageBean bean, int fullIndex, int smallIndex) Add dashboard item.void
addDashboardItem
(org.eclnt.jsfserver.pagebean.IPageBean bean, DashboardPosition pos) void
addDashboardItemFull
(org.eclnt.jsfserver.pagebean.IPageBean bean, int fullIndex) Adds an item into the dashboard - as "full" item.void
addDashboardItems
(List<org.eclnt.jsfserver.pagebean.IPageBean> beans, String positionsXML) void
addDashboardItems
(List<org.eclnt.jsfserver.pagebean.IPageBean> beans, DashboardPositions positions) void
addDashboardItemSmall
(org.eclnt.jsfserver.pagebean.IPageBean bean, int fullIndex, int smallIndex) Adds an item into the dashbaord - as "small" item.void
addDashboardItemsUsingPersistedPosition
(List<org.eclnt.jsfserver.pagebean.IPageBean> beans, String persistId) Passing dashboard items with a persistence id.void
addDashBoardItemToNextSmall
(org.eclnt.jsfserver.pagebean.IPageBean bean) org.eclnt.jsfserver.pagebean.IPageBean
findContainedBean
(long pageBeanStamp) org.eclnt.jsfserver.elements.impl.DYNAMICCONTENTBinding
int
int
int
int
void
initializePageBean
(Map<String, String> initData) void
void
onPaneAction
(org.eclnt.jsfserver.base.faces.event.ActionEvent event) void
prepare
(int numberOfTiles, int numberOfSubTilesX, int numberOfSubTilesY, CCDashboard.IListener listener) void
removeDashboardItem
(org.eclnt.jsfserver.pagebean.IPageBean item) void
setBackground
(String value) void
setBgpaint
(String value) void
setBorderFull
(String value) void
setBorderSmall
(String value) void
setPaneDistance
(int paneDistance) void
setPaneHeight
(int paneHeight) void
setPaneWidth
(int paneWidth) void
setRounding
(int value) void
setStyleVariant
(String value) Methods inherited from class org.eclnt.jsfserver.pagebean.component.PageBeanComponent
getLit, initializePageBeanConfigItems
Methods inherited from class org.eclnt.jsfserver.pagebean.component.PageBeanComponentBase
addConfiguredByLayoutListener, findLiteralResourceName, getClassDefiningPageBean, getLayoutPath, getLiteralResolver, getPageName, initializePageBeanFinished, initializePageBeanPassComponent, initializePageBeanStarted, isInitialized, readLiteral, readLiteralByOwnResourceBundle, removeConfiguredByLayoutListener, setLiteralResolver
Methods inherited from class org.eclnt.jsfserver.pagebean.PageBean
buildContentReplaceString, closePopup, getActualRootExpression, getModalModelessPopupForPopupPageBean, getPageModifier, getPopups, getStamp, initializePageModifier, openModalPopup, openModelessPopup, pbx, readPageLayoutXML, setActualRootExpression
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclnt.jsfserver.elements.IConfiguredByLayout
addConfiguredByLayoutListener, removeConfiguredByLayoutListener
Methods inherited from interface org.eclnt.jsfserver.pagebean.IPageBean
closePopup, getActualRootExpression, getPageModifier, getPageName, getStamp, openModalPopup, openModelessPopup, setActualRootExpression
Methods inherited from interface org.eclnt.jsfserver.pagebean.component.IPageBeanComponent
initializePageBeanFinished, initializePageBeanPassComponent, initializePageBeanStarted, isInitialized
-
Constructor Details
-
CCDashboard
public CCDashboard()
-
-
Method Details
-
getRootExpressionUsedInPage
- Specified by:
getRootExpressionUsedInPage
in interfaceorg.eclnt.jsfserver.pagebean.IPageBean
- Specified by:
getRootExpressionUsedInPage
in classorg.eclnt.jsfserver.pagebean.PageBean
-
getStyleVariant
-
setStyleVariant
-
getBgpaint
-
setBgpaint
-
getBackground
-
setBackground
-
getRounding
public int getRounding() -
setRounding
public void setRounding(int value) -
setBorderFull
-
getBorderFull
-
setBorderSmall
-
getBorderSmall
-
getPaneDistance
public int getPaneDistance() -
setPaneDistance
public void setPaneDistance(int paneDistance) -
getDynContent
public org.eclnt.jsfserver.elements.impl.DYNAMICCONTENTBinding getDynContent() -
getTileInfos
-
getPaneWidth
public int getPaneWidth() -
setPaneWidth
public void setPaneWidth(int paneWidth) -
getPaneHeight
public int getPaneHeight() -
setPaneHeight
public void setPaneHeight(int paneHeight) -
prepare
public void prepare(int numberOfTiles, int numberOfSubTilesX, int numberOfSubTilesY, CCDashboard.IListener listener) - Parameters:
numberOfTiles
- Number of "big" tiles.numberOfSubTilesX
- Number of horizontal small tiles in big tile.numberOfSubTilesY
- Number of vertical small tiles in big tile.listener
-
-
initializePageBean
- Specified by:
initializePageBean
in interfaceorg.eclnt.jsfserver.pagebean.component.IPageBeanComponent
- Overrides:
initializePageBean
in classorg.eclnt.jsfserver.pagebean.component.PageBeanComponent
-
addDashboardItem
public void addDashboardItem(org.eclnt.jsfserver.pagebean.IPageBean bean, int fullIndex, int smallIndex) Add dashboard item. Dependent on the value of "smallIndex" either the methodaddDashboardItemFull(IPageBean, int)
or the methodaddDashboardItemSmall(IPageBean, int, int)
is called.- Parameters:
bean
-fullIndex
- Must be set.smallIndex
- If set to a value >= 0 then the item is arranged at the corresponding "small" position.
-
addDashboardItemFull
public void addDashboardItemFull(org.eclnt.jsfserver.pagebean.IPageBean bean, int fullIndex) Adds an item into the dashboard - as "full" item.- Parameters:
bean
-fullIndex
-
-
addDashboardItemSmall
public void addDashboardItemSmall(org.eclnt.jsfserver.pagebean.IPageBean bean, int fullIndex, int smallIndex) Adds an item into the dashbaord - as "small" item.- Parameters:
bean
-fullIndex
-smallIndex
-
-
onPaneAction
public void onPaneAction(org.eclnt.jsfserver.base.faces.event.ActionEvent event) -
onBeforeRendering
public void onBeforeRendering()- Specified by:
onBeforeRendering
in interfaceorg.eclnt.jsfserver.pagebean.IPageBean
- Overrides:
onBeforeRendering
in classorg.eclnt.jsfserver.pagebean.PageBean
-
getCurrentPositions
-
getCurrentPostionsAsXML
- Returns:
- The same as
getCurrentPositions()
but now the result is passed back as JAXB-serialized XML String.
-
addDashboardItem
-
addDashboardItemsUsingPersistedPosition
public void addDashboardItemsUsingPersistedPosition(List<org.eclnt.jsfserver.pagebean.IPageBean> beans, String persistId) Passing dashboard items with a persistence id. If available then the existing information behind the persistence id will be used for arranging the items - otherwise the items are arranged automatically. From now on any change to the item layout will be persisted automatically.
The persisting is done using the StreamStore, the persistence management accesses the UserAccessMgr in order to store the information by user.- Parameters:
beans
-persistId
-
-
addDashboardItems
-
removeDashboardItem
public void removeDashboardItem(org.eclnt.jsfserver.pagebean.IPageBean item) -
addDashboardItems
public void addDashboardItems(List<org.eclnt.jsfserver.pagebean.IPageBean> beans, DashboardPositions positions) -
addDashBoardItemToNextSmall
public void addDashBoardItemToNextSmall(org.eclnt.jsfserver.pagebean.IPageBean bean) -
findContainedBean
public org.eclnt.jsfserver.pagebean.IPageBean findContainedBean(long pageBeanStamp)
-