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:
  • Constructor Details

    • CCDashboard

      public CCDashboard()
  • Method Details

    • getRootExpressionUsedInPage

      public String getRootExpressionUsedInPage()
      Specified by:
      getRootExpressionUsedInPage in interface org.eclnt.jsfserver.pagebean.IPageBean
      Specified by:
      getRootExpressionUsedInPage in class org.eclnt.jsfserver.pagebean.PageBean
    • getStyleVariant

      public String getStyleVariant()
    • setStyleVariant

      public void setStyleVariant(String value)
    • getBgpaint

      public String getBgpaint()
    • setBgpaint

      public void setBgpaint(String value)
    • getBackground

      public String getBackground()
    • setBackground

      public void setBackground(String value)
    • getRounding

      public int getRounding()
    • setRounding

      public void setRounding(int value)
    • setBorderFull

      public void setBorderFull(String value)
    • getBorderFull

      public String getBorderFull()
    • setBorderSmall

      public void setBorderSmall(String value)
    • getBorderSmall

      public String getBorderSmall()
    • getPaneDistance

      public int getPaneDistance()
    • setPaneDistance

      public void setPaneDistance(int paneDistance)
    • getDynContent

      public org.eclnt.jsfserver.elements.impl.DYNAMICCONTENTBinding getDynContent()
    • getTileInfos

      public List<CCDashboard.TileInfo> 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

      public void initializePageBean(Map<String,String> initData)
      Specified by:
      initializePageBean in interface org.eclnt.jsfserver.pagebean.component.IPageBeanComponent
      Overrides:
      initializePageBean in class org.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 method addDashboardItemFull(IPageBean, int) or the method addDashboardItemSmall(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 interface org.eclnt.jsfserver.pagebean.IPageBean
      Overrides:
      onBeforeRendering in class org.eclnt.jsfserver.pagebean.PageBean
    • getCurrentPositions

      public DashboardPositions getCurrentPositions()
    • getCurrentPostionsAsXML

      public String getCurrentPostionsAsXML()
      Returns:
      The same as getCurrentPositions() but now the result is passed back as JAXB-serialized XML String.
    • addDashboardItem

      public void addDashboardItem(org.eclnt.jsfserver.pagebean.IPageBean bean, DashboardPosition pos)
    • 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

      public void addDashboardItems(List<org.eclnt.jsfserver.pagebean.IPageBean> beans, String positionsXML)
    • 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)