Class PageBeanComponentBase
java.lang.Object
org.eclnt.jsfserver.pagebean.PageBean
org.eclnt.jsfserver.pagebean.component.PageBeanComponentBase
- All Implemented Interfaces:
IPageBean
,IDynamicContentBindingObject
- Direct Known Subclasses:
PageBeanComponent
,PageBeanComponentAsControl
Base functions of a page bean component.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Interface for adding an own literal resolution.class
Internal usage: map that lazily loads literal definitions. -
Field Summary
Fields inherited from class org.eclnt.jsfserver.pagebean.PageBean
m_pageModifier
-
Constructor Summary
ConstructorDescriptionDefault constructor, the component is used as "column control".PageBeanComponentBase
(boolean usedAsRow) Constructor, in which you can decide to use the component as "row control". -
Method Summary
Modifier and TypeMethodDescriptionvoid
protected String
Find the name of the properties-file in which the default literal resolution looks for literal translations.protected Class
Class that is used for accessing the layout ingetLayoutPath()
and the literal resources infindLiteralResourceName()
.protected String
Finds the resource path for accessing the component's layout-xml.There is a default mechanism how literals of a page bean component are resolved: the component uses resource files that have the same name as the component's class.Name of page that is managed by the bean.void
void
boolean
SeeIPageBean#isInitialized()
.protected String
readLiteral
(String key) protected String
void
void
setLiteralResolver
(PageBeanComponentBase.ILiteralResolver literalResolver) Sets a literal resolver for this instance.Methods inherited from class org.eclnt.jsfserver.pagebean.PageBean
buildContentReplaceString, closePopup, getActualRootExpression, getPageModifier, getPopups, getRootExpressionUsedInPage, getStamp, initializePageModifier, onBeforeRendering, openModalPopup, openModelessPopup, pbx, readPageLayoutXML, setActualRootExpression
-
Constructor Details
-
PageBeanComponentBase
public PageBeanComponentBase()Default constructor, the component is used as "column control". A typical component arrangement would be:
ROW
..LABEL
..
..LABEL -
PageBeanComponentBase
public PageBeanComponentBase(boolean usedAsRow) Constructor, in which you can decide to use the component as "row control". A typical arrangement would be.
ROWBODyPANE
..ROW
..
..ROW
Another tpyical use case: you want to use the component within a modal or modeless dialog. Dialogs expects contained page beans to be row controls.
-
-
Method Details
-
initializePageBeanStarted
public void initializePageBeanStarted() -
isInitialized
public boolean isInitialized()SeeIPageBean#isInitialized()
. -
getLiteralResolver
There is a default mechanism how literals of a page bean component are resolved: the component uses resource files that have the same name as the component's class. You may add some own literal resolved in front of this default mechanism so that you can influence all literals of the component on your own. - You may use this mechanism if you want to use different texts and/or if you want to provide for translated texts in languages that the component so far does not provide.
Please check the classPageBeanLiteralResolverOverride
- here you can register literal resolvers on a class level. -
setLiteralResolver
Sets a literal resolver for this instance.
Please check the classPageBeanLiteralResolverOverride
- here you can register literal resolvers on a class level. -
getPageName
Description copied from interface:IPageBean
Name of page that is managed by the bean. This can either be a static return value that stays fix for the whole lifecycle of the bean, or it may also be a value that changed - in case there are several pages that are possible to be managed by the page bean.- Specified by:
getPageName
in interfaceIPageBean
- Specified by:
getPageName
in classPageBean
-
getLayoutPath
Finds the resource path for accessing the component's layout-xml. By default the xml is contained in a jsp- or an xml-file which has the name of the component and which resides in the same package as the component. -
getClassDefiningPageBean
Class that is used for accessing the layout ingetLayoutPath()
and the literal resources infindLiteralResourceName()
. -
addConfiguredByLayoutListener
-
removeConfiguredByLayoutListener
-
initializePageBeanFinished
public void initializePageBeanFinished() -
readLiteral
-
findLiteralResourceName
Find the name of the properties-file in which the default literal resolution looks for literal translations. -
readLiteralByOwnResourceBundle
-