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 enum
static interface
This listener is the minimum to be implemented - in order to create the instances of page beans that are part of the dashboard.static interface
You may implement this listener in case you want to load and save the data at runtime on your own.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
FieldsFields inherited from class org.eclnt.jsfserver.pagebean.PageBean
m_pageModifier
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
void
addSplitContent
(CCSplitDashboard.ENUMAddPosition addPosition, String type, String config) void
addSplitContent
(CCSplitDashboard.ENUMAddPosition addPosition, org.eclnt.jsfserver.pagebean.IPageBean pageBean, String type, String config) static String
createDragSendString
(String contentType, String contentConfig) Utility method for creating the DRAGSEND information that you use for dragging/dropping content into the split dashboard.protected CCSplitDashboard.SplitContent
createNewSplitContent
(org.eclnt.jsfserver.elements.events.BaseActionEventDrop e) void
createPageBeanByDropReceiveEvent
(org.eclnt.jsfserver.elements.events.BaseActionEventDrop dropEvent) org.eclnt.jsfserver.pagebean.IPageBean
At runtime each page bean receives some unique id.boolean
If 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.ROWDYNAMICCONTENTBinding
boolean
Background color of the divider between two split areas.int
Width/height of the divider between two split areas.boolean
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.Internal data structure that represents the current rendering content of the split dashboard.boolean
void
protected void
positionNewSplitContent
(CCSplitDashboard.ENUMAddPosition addPosition, CCSplitDashboard.SplitContent scToAdd) void
prepare
(String persistId, CCSplitDashboard.IListener listener) protected void
void
removeSplitContent
(String splitContentId) Removing content from dashboard.void
removeSplitContent
(org.eclnt.jsfserver.pagebean.IPageBean pageBean) Removing content from dashboard by passing the page bean that was created by the outside application.void
render()
Trigger the rendering of the current splitContent (available bygetSplitContent()
.protected void
save()
void
setAllowSplitSizingIfDisabled
(boolean allowSplitSizingIfDisabled) void
setContentPaneBorder
(String contentPaneBorder) void
setContentPanePadding
(String contentPanePadding) void
setCutContentInSplitPane
(boolean cutContent) void
setDividerColor
(String dividerBackground) void
setDividerSize
(int dividerSize) void
setEnabled
(boolean enabled) void
setOneTouchExpandable
(boolean oneTouchExpandable) void
setSplitInfo
(SplitInfo splitInfo) Directly set the content of the clip board.void
setSplitPaneBackground
(String splitPaneBackground) void
setStylevariantContent
(String stylevariantContent) void
setStylevariantSplitPane
(String stylevariantSplitPane) void
setStyleVariantSplitPaneSplit
(String styleVariantSplitPaneSplit) Transfers the current rendering state intoSplitInfo
instance.protected void
Methods inherited from class org.eclnt.jsfserver.pagebean.component.PageBeanComponent
getLit, initializePageBean, 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
-
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:
getRootExpressionUsedInPage
in interfaceorg.eclnt.jsfserver.pagebean.IPageBean
- Specified by:
getRootExpressionUsedInPage
in 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 intoSplitInfo
instance. -
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:
onBeforeRendering
in interfaceorg.eclnt.jsfserver.pagebean.IPageBean
- Overrides:
onBeforeRendering
in 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
-