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 classDefault implementation with dummy implementations.static interfaceAdditional interface for page beans containing information that is used within the CCDashboard Processing.static interfaceUseCCDashboard.DefaultListenerin order to stay compatible in case of extensions of this interface.classNested 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 TypeMethodDescriptionvoidaddDashboardItem(org.eclnt.jsfserver.pagebean.IPageBean bean, int fullIndex, int smallIndex) Add dashboard item.voidaddDashboardItem(org.eclnt.jsfserver.pagebean.IPageBean bean, DashboardPosition pos) voidaddDashboardItemFull(org.eclnt.jsfserver.pagebean.IPageBean bean, int fullIndex) Adds an item into the dashboard - as "full" item.voidaddDashboardItems(List<org.eclnt.jsfserver.pagebean.IPageBean> beans, String positionsXML) voidaddDashboardItems(List<org.eclnt.jsfserver.pagebean.IPageBean> beans, DashboardPositions positions) voidaddDashboardItemSmall(org.eclnt.jsfserver.pagebean.IPageBean bean, int fullIndex, int smallIndex) Adds an item into the dashbaord - as "small" item.voidaddDashboardItemsUsingPersistedPosition(List<org.eclnt.jsfserver.pagebean.IPageBean> beans, String persistId) Passing dashboard items with a persistence id.voidaddDashBoardItemToNextSmall(org.eclnt.jsfserver.pagebean.IPageBean bean) org.eclnt.jsfserver.pagebean.IPageBeanfindContainedBean(long pageBeanStamp) org.eclnt.jsfserver.elements.impl.DYNAMICCONTENTBindingintintintintvoidinitializePageBean(Map<String, String> initData) voidvoidonPaneAction(org.eclnt.jsfserver.base.faces.event.ActionEvent event) voidprepare(int numberOfTiles, int numberOfSubTilesX, int numberOfSubTilesY, CCDashboard.IListener listener) voidremoveDashboardItem(org.eclnt.jsfserver.pagebean.IPageBean item) voidsetBackground(String value) voidsetBgpaint(String value) voidsetBorderFull(String value) voidsetBorderSmall(String value) voidsetPaneDistance(int paneDistance) voidsetPaneHeight(int paneHeight) voidsetPaneWidth(int paneWidth) voidsetRounding(int value) voidsetStyleVariant(String value) Methods inherited from class org.eclnt.jsfserver.pagebean.component.PageBeanComponent
getLit, initializePageBeanConfigItemsMethods inherited from class org.eclnt.jsfserver.pagebean.component.PageBeanComponentBase
addConfiguredByLayoutListener, findLiteralResourceName, getClassDefiningPageBean, getLayoutPath, getLiteralResolver, getPageName, initializePageBeanFinished, initializePageBeanPassComponent, initializePageBeanStarted, isInitialized, readLiteral, readLiteralByOwnResourceBundle, removeConfiguredByLayoutListener, setLiteralResolverMethods inherited from class org.eclnt.jsfserver.pagebean.PageBean
buildContentReplaceString, closePopup, getActualRootExpression, getModalModelessPopupForPopupPageBean, getPageModifier, getPopups, getStamp, initializePageModifier, openModalPopup, openModelessPopup, pbx, readPageLayoutXML, setActualRootExpressionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclnt.jsfserver.elements.IConfiguredByLayout
addConfiguredByLayoutListener, removeConfiguredByLayoutListenerMethods inherited from interface org.eclnt.jsfserver.pagebean.IPageBean
closePopup, getActualRootExpression, getPageModifier, getPageName, getStamp, openModalPopup, openModelessPopup, setActualRootExpressionMethods inherited from interface org.eclnt.jsfserver.pagebean.component.IPageBeanComponent
initializePageBeanFinished, initializePageBeanPassComponent, initializePageBeanStarted, isInitialized
-
Constructor Details
-
CCDashboard
public CCDashboard()
-
-
Method Details
-
getRootExpressionUsedInPage
- Specified by:
getRootExpressionUsedInPagein interfaceorg.eclnt.jsfserver.pagebean.IPageBean- Specified by:
getRootExpressionUsedInPagein 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:
initializePageBeanin interfaceorg.eclnt.jsfserver.pagebean.component.IPageBeanComponent- Overrides:
initializePageBeanin 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:
onBeforeRenderingin interfaceorg.eclnt.jsfserver.pagebean.IPageBean- Overrides:
onBeforeRenderingin 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)
-