Package org.eclnt.ccaddons.pbc
Class CCAdaptiveSideContentArea
java.lang.Object
org.eclnt.jsfserver.pagebean.PageBean
org.eclnt.jsfserver.pagebean.component.PageBeanComponentBase
org.eclnt.jsfserver.pagebean.component.PageBeanComponent
org.eclnt.ccaddons.pbc.CCAdaptiveSideContentArea
- 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 CCAdaptiveSideContentArea
extends org.eclnt.jsfserver.pagebean.component.PageBeanComponent
implements Serializable
- See Also:
-
Nested Class Summary
Nested ClassesNested 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
Create an instance of the button (page bean component) that is linked to the area processing: the button is only visible when the side bean is not shown "on the left".org.eclnt.jsfserver.elements.util.Trigger
org.eclnt.jsfserver.pagebean.IPageBean
The content bean that is shown in the main content area.int
Sidie bean and content bean are arranged in a ROW.Categorized size, that is passed with round trip and when the screen space of the component changes.int
int
Exact pixel size of the component that is passed with every roundtrip.org.eclnt.jsfserver.elements.util.Trigger
boolean
org.eclnt.jsfserver.pagebean.IPageBean
The bean that is either shown on the left side - or that is shown as popup if screen space is not sufficient.boolean
Runtime information, if the side bean is rendered or not.boolean
When the component appears then first its while content is not rendered - but the component is empty.void
onInitialRoundtrip
(org.eclnt.jsfserver.base.faces.event.ActionEvent event) Method that is called directly after the component has appeared.void
onSizeAction
(org.eclnt.jsfserver.base.faces.event.ActionEvent event) void
prepare
(org.eclnt.jsfserver.pagebean.IPageBean sideBean, org.eclnt.jsfserver.pagebean.IPageBean contentBean, String sideBeanWidth, int minHorizontalSize, boolean showSideBeanAtSide, CCAdaptiveSideContentArea.IListener listener) void
void
setContentAnimationType
(String value) void
setContentBean
(org.eclnt.jsfserver.pagebean.IPageBean contentBean) void
setContentBorder
(String value) void
setContentDistance
(int value) void
setContentSize
(String value) void
setExactSize
(String value) void
setShowSideBeanAtSide
(boolean showSideBeanAtSide) void
setSideBeanBorder
(String value) 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, onBeforeRendering, 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, onBeforeRendering, openModalPopup, openModelessPopup, setActualRootExpression
Methods inherited from interface org.eclnt.jsfserver.pagebean.component.IPageBeanComponent
initializePageBeanFinished, initializePageBeanPassComponent, initializePageBeanStarted, isInitialized
-
Constructor Details
-
CCAdaptiveSideContentArea
public CCAdaptiveSideContentArea()
-
-
Method Details
-
getRootExpressionUsedInPage
- Specified by:
getRootExpressionUsedInPage
in interfaceorg.eclnt.jsfserver.pagebean.IPageBean
- Specified by:
getRootExpressionUsedInPage
in classorg.eclnt.jsfserver.pagebean.PageBean
-
prepare
public void prepare(org.eclnt.jsfserver.pagebean.IPageBean sideBean, org.eclnt.jsfserver.pagebean.IPageBean contentBean, String sideBeanWidth, int minHorizontalSize, boolean showSideBeanAtSide, CCAdaptiveSideContentArea.IListener listener) - Parameters:
sideBean
- The page bean that is either shown on the left side or which is shown as a popup.sideBeanWidth
- Width of the side area when it is shown "on the left".contentBean
- Content bean. Can be passed as null at the beginning and then can later be set by using methodsetContentBean(IPageBean)
.minHorizontalSize
- The size when the rendering is changed from "popup" (below the size) to "visible" (above the size)showSideBeanAtSide
- Force the side bean to be shown at the side - and not as popup. This is useful in initial situations in which there is no real content yet within the content bean. Pay attention: this parameter need to be set back to "false" later on - usingsetShowSideBeanAtSide(boolean)
.listener
-
-
createOpenerButton
Create an instance of the button (page bean component) that is linked to the area processing: the button is only visible when the side bean is not shown "on the left". -
addListener
-
removeListener
-
getContentAnimationType
-
setContentAnimationType
-
getShowSideBeanAtSide
public boolean getShowSideBeanAtSide() -
setShowSideBeanAtSide
public void setShowSideBeanAtSide(boolean showSideBeanAtSide) -
getContentAnimationTrigger
public org.eclnt.jsfserver.elements.util.Trigger getContentAnimationTrigger() -
onSizeAction
public void onSizeAction(org.eclnt.jsfserver.base.faces.event.ActionEvent event) -
getHorizontalCategories
-
getContentBean
public org.eclnt.jsfserver.pagebean.IPageBean getContentBean()The content bean that is shown in the main content area. -
setContentBean
public void setContentBean(org.eclnt.jsfserver.pagebean.IPageBean contentBean) -
getSideBean
public org.eclnt.jsfserver.pagebean.IPageBean getSideBean()The bean that is either shown on the left side - or that is shown as popup if screen space is not sufficient. -
getSideBeanWidth
-
getSideBeanRendered
public boolean getSideBeanRendered()Runtime information, if the side bean is rendered or not. -
getContentSize
Categorized size, that is passed with round trip and when the screen space of the component changes. -
setContentSize
-
getExactSize
Exact pixel size of the component that is passed with every roundtrip. -
setExactSize
-
getCurrentHeight
public int getCurrentHeight() -
getCurrentWidth
public int getCurrentWidth() -
getContentDistance
public int getContentDistance()Sidie bean and content bean are arranged in a ROW. This is the COLDISTANCE value of this row. -
setContentDistance
public void setContentDistance(int value) -
getContentBorder
-
setContentBorder
-
getSideBeanBorder
-
setSideBeanBorder
-
getInitialRoundtripTrigger
public org.eclnt.jsfserver.elements.util.Trigger getInitialRoundtripTrigger() -
getWholeRendered
public boolean getWholeRendered()When the component appears then first its while content is not rendered - but the component is empty. Due to thegetInitialRoundtripTrigger()
being triggered then the component comes back to the server with its sizing so that the processing knows in which way to render. -
onInitialRoundtrip
public void onInitialRoundtrip(org.eclnt.jsfserver.base.faces.event.ActionEvent event) Method that is called directly after the component has appeared. Now the sizing of the component is transferred.
-