Package org.eclnt.ccaddons.pbc
Class CCSplitDashboard
java.lang.Object
org.eclnt.jsfserver.pagebean.PageBean
org.eclnt.jsfserver.pagebean.component.PageBeanComponentBase
org.eclnt.jsfserver.pagebean.component.PageBeanComponent
org.eclnt.ccaddons.pbc.CCSplitDashboard
- 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 CCSplitDashboard
extends org.eclnt.jsfserver.pagebean.component.PageBeanComponent
implements Serializable
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic interfaceThis listener is the minimum to be implemented - in order to create the instances of page beans that are part of the dashboard.static interfaceYou may implement this listener in case you want to load and save the data at runtime on your own.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
FieldsFields inherited from class org.eclnt.jsfserver.pagebean.PageBean
m_pageModifier -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvoidaddSplitContent(CCSplitDashboard.ENUMAddPosition addPosition, String type, String config) voidaddSplitContent(CCSplitDashboard.ENUMAddPosition addPosition, org.eclnt.jsfserver.pagebean.IPageBean pageBean, String type, String config) static StringcreateDragSendString(String contentType, String contentConfig) Utility method for creating the DRAGSEND information that you use for dragging/dropping content into the split dashboard.protected CCSplitDashboard.SplitContentcreateNewSplitContent(org.eclnt.jsfserver.elements.events.BaseActionEventDrop e) voidcreatePageBeanByDropReceiveEvent(org.eclnt.jsfserver.elements.events.BaseActionEventDrop dropEvent) org.eclnt.jsfserver.pagebean.IPageBeanAt runtime each page bean receives some unique id.booleanIf set to true then the sizing of the individual areas is enabled even though the whole page bean component is disabled.org.eclnt.jsfserver.elements.impl.ROWDYNAMICCONTENTBindingbooleanBackground color of the divider between two split areas.intWidth/height of the divider between two split areas.booleanIf set to true then the internally used SPLITPANEs are switched to mode "one-touch-expandable": little icons are shown so that the user can minimize/maximize the content with one click/touch.Internal data structure that represents the current rendering content of the split dashboard.booleanvoidprotected voidpositionNewSplitContent(CCSplitDashboard.ENUMAddPosition addPosition, CCSplitDashboard.SplitContent scToAdd) voidprepare(String persistId, CCSplitDashboard.IListener listener) protected voidvoidremoveSplitContent(String splitContentId) Removing content from dashboard.voidremoveSplitContent(org.eclnt.jsfserver.pagebean.IPageBean pageBean) Removing content from dashboard by passing the page bean that was created by the outside application.voidrender()Trigger the rendering of the current splitContent (available bygetSplitContent().protected voidsave()voidsetAllowSplitSizingIfDisabled(boolean allowSplitSizingIfDisabled) voidsetContentPaneBorder(String contentPaneBorder) voidsetContentPanePadding(String contentPanePadding) voidsetCutContentInSplitPane(boolean cutContent) voidsetDividerColor(String dividerBackground) voidsetDividerSize(int dividerSize) voidsetEnabled(boolean enabled) voidsetOneTouchExpandable(boolean oneTouchExpandable) voidsetSplitInfo(SplitInfo splitInfo) Directly set the content of the clip board.voidsetSplitPaneBackground(String splitPaneBackground) voidsetStylevariantContent(String stylevariantContent) voidsetStylevariantSplitPane(String stylevariantSplitPane) voidsetStyleVariantSplitPaneSplit(String styleVariantSplitPaneSplit) Transfers the current rendering state intoSplitInfoinstance.protected voidMethods inherited from class org.eclnt.jsfserver.pagebean.component.PageBeanComponent
getLit, initializePageBean, 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
-
Field Details
-
s_idCounter
public static int s_idCounter -
DRAG_SPLIT
- See Also:
-
DRAG_SPLITEXISTING
- See Also:
-
-
Constructor Details
-
CCSplitDashboard
public CCSplitDashboard()
-
-
Method Details
-
createDragSendString
Utility method for creating the DRAGSEND information that you use for dragging/dropping content into the split dashboard. -
getRootExpressionUsedInPage
- Specified by:
getRootExpressionUsedInPagein interfaceorg.eclnt.jsfserver.pagebean.IPageBean- Specified by:
getRootExpressionUsedInPagein classorg.eclnt.jsfserver.pagebean.PageBean
-
prepare
-
isEnabled
public boolean isEnabled() -
setEnabled
public void setEnabled(boolean enabled) -
getDividerSize
public int getDividerSize()Width/height of the divider between two split areas. -
setDividerSize
public void setDividerSize(int dividerSize) -
getDividerColor
Background color of the divider between two split areas. -
setDividerColor
-
getSplitPaneBackground
-
setSplitPaneBackground
-
getContentPaneBorder
-
setContentPaneBorder
-
getContentPanePadding
-
setContentPanePadding
-
getCutContentInSplitPane
public boolean getCutContentInSplitPane() -
setCutContentInSplitPane
public void setCutContentInSplitPane(boolean cutContent) -
getStylevariantContent
-
setStylevariantContent
-
getStylevariantSplitPane
-
setStylevariantSplitPane
-
getStyleVariantSplitPaneSplit
-
setStyleVariantSplitPaneSplit
-
getAllowSplitSizingIfDisabled
public boolean getAllowSplitSizingIfDisabled()If set to true then the sizing of the individual areas is enabled even though the whole page bean component is disabled. -
setAllowSplitSizingIfDisabled
public void setAllowSplitSizingIfDisabled(boolean allowSplitSizingIfDisabled) -
getOneTouchExpandable
public boolean getOneTouchExpandable()If set to true then the internally used SPLITPANEs are switched to mode "one-touch-expandable": little icons are shown so that the user can minimize/maximize the content with one click/touch. -
setOneTouchExpandable
public void setOneTouchExpandable(boolean oneTouchExpandable) -
getContent
public org.eclnt.jsfserver.elements.impl.ROWDYNAMICCONTENTBinding getContent() -
addSplitContent
public void addSplitContent(CCSplitDashboard.ENUMAddPosition addPosition, String type, String config) -
addSplitContent
public void addSplitContent(CCSplitDashboard.ENUMAddPosition addPosition, org.eclnt.jsfserver.pagebean.IPageBean pageBean, String type, String config) -
removeSplitContent
Removing content from dashboard. Each content area is identified by some id at runtime. -
removeSplitContent
public void removeSplitContent(org.eclnt.jsfserver.pagebean.IPageBean pageBean) Removing content from dashboard by passing the page bean that was created by the outside application. -
findPageBeanForId
At runtime each page bean receives some unique id. The id e.g. is passed in DRAGSEND-strings when dragging/dropping existing pages. Returns null if no corresponding page bean was found. -
createPageBeanByDropReceiveEvent
public void createPageBeanByDropReceiveEvent(org.eclnt.jsfserver.elements.events.BaseActionEventDrop dropEvent) -
transferToSplitInfo
Transfers the current rendering state intoSplitInfoinstance. -
setSplitInfo
Directly set the content of the clip board. The current content of the dashboard is removed and replaced. -
onBeforeRendering
public void onBeforeRendering()- Specified by:
onBeforeRenderingin interfaceorg.eclnt.jsfserver.pagebean.IPageBean- Overrides:
onBeforeRenderingin classorg.eclnt.jsfserver.pagebean.PageBean
-
render
public void render()Trigger the rendering of the current splitContent (available bygetSplitContent(). -
getSplitContent
Internal data structure that represents the current rendering content of the split dashboard. -
createNewSplitContent
protected CCSplitDashboard.SplitContent createNewSplitContent(org.eclnt.jsfserver.elements.events.BaseActionEventDrop e) -
save
protected void save() -
readSplitInfo
protected void readSplitInfo() -
triggerRendering
protected void triggerRendering() -
positionNewSplitContent
protected void positionNewSplitContent(CCSplitDashboard.ENUMAddPosition addPosition, CCSplitDashboard.SplitContent scToAdd) -
addOnTopRight
-