Package org.eclnt.ccaddons.pbc
Class CCSeparatedFormField
java.lang.Object
org.eclnt.jsfserver.pagebean.PageBean
org.eclnt.jsfserver.pagebean.component.PageBeanComponentBase
org.eclnt.jsfserver.pagebean.component.PageBeanComponent
org.eclnt.ccaddons.pbc.CCSeparatedFormField
- 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 CCSeparatedFormField
extends org.eclnt.jsfserver.pagebean.component.PageBeanComponent
implements Serializable
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
static class
static class
static class
static interface
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
Fields inherited from class org.eclnt.jsfserver.pagebean.PageBean
m_pageModifier
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected String
protected String
calculateCurrentValue
(Map<String, String> fieldValues, char emptySpaceChar) int
Distance in pixels between the LABEL and FIELD instances.org.eclnt.jsfserver.elements.impl.DYNAMICCONTENTBinding
char
If the user did not input the full length of a FIELD component, then is is filled up with empty space characters.boolean
If the user did not input the full length of a FIELD component, then is is filled up with empty space characters.int
The minimum size for each contained FIELD component.int
Factor for calculating the default width of the contained FIELD components.getTitle()
getValue()
The string value that is shown in the combination of labels/fields.getWidth()
boolean
Controls the attribute FIELD-MAXLENGTHAUTOTAB for the contained FIELD components.void
initializePageBean
(Map<String, String> initData) void
initializePageBeanConfigItems
(List<org.eclnt.jsfserver.pagebean.PageBeanConfigItem> configItems) void
protected void
parseCurrentValue
(String value) void
prepare
(CCSeparatedFormField.FormFieldConfiguration configuration, CCSeparatedFormField.IListener listener) protected void
reactOnFieldUpdate
(org.eclnt.jsfserver.base.faces.event.ActionEvent event) protected void
render()
protected void
renderFieldItem
(List<org.eclnt.jsfserver.elements.impl.ROWDYNAMICCONTENTBinding.ComponentNode> nodes, CCSeparatedFormField.FormFieldConfigurationItemField item) protected void
renderItem
(List<org.eclnt.jsfserver.elements.impl.ROWDYNAMICCONTENTBinding.ComponentNode> nodes, CCSeparatedFormField.FormFieldConfigurationItem item) protected void
renderLabelItem
(List<org.eclnt.jsfserver.elements.impl.ROWDYNAMICCONTENTBinding.ComponentNode> nodes, CCSeparatedFormField.FormFieldConfigurationItemLabel item) void
setBackground
(String value) void
setBgpaint
(String value) void
setColDistance
(int colDistance) void
setDefaultFieldAlign
(String defaultFieldAlign) void
setEmptySpaceChar
(char emptySpaceChar) void
setFillWithEmptySpacesAtEnd
(boolean fillWithEmptySpacesAtEnd) void
setMinPixelSize
(int minPixelSize) void
setPixelsPerCharacter
(int pixelsPerCharacter) void
Text that is shown as title.void
void
void
setWithAutoTab
(boolean withAutoTab) Methods inherited from class org.eclnt.jsfserver.pagebean.component.PageBeanComponent
getLit
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
-
Constructor Details
-
CCSeparatedFormField
public CCSeparatedFormField()
-
-
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(CCSeparatedFormField.FormFieldConfiguration configuration, CCSeparatedFormField.IListener listener) -
initializePageBean
- Specified by:
initializePageBean
in interfaceorg.eclnt.jsfserver.pagebean.component.IPageBeanComponent
- Overrides:
initializePageBean
in classorg.eclnt.jsfserver.pagebean.component.PageBeanComponent
-
initializePageBeanConfigItems
public void initializePageBeanConfigItems(List<org.eclnt.jsfserver.pagebean.PageBeanConfigItem> configItems) - Specified by:
initializePageBeanConfigItems
in interfaceorg.eclnt.jsfserver.pagebean.component.IPageBeanComponent
- Overrides:
initializePageBeanConfigItems
in classorg.eclnt.jsfserver.pagebean.component.PageBeanComponent
-
onBeforeRendering
public void onBeforeRendering()- Specified by:
onBeforeRendering
in interfaceorg.eclnt.jsfserver.pagebean.IPageBean
- Overrides:
onBeforeRendering
in classorg.eclnt.jsfserver.pagebean.PageBean
-
getDynContent
public org.eclnt.jsfserver.elements.impl.DYNAMICCONTENTBinding getDynContent() -
setTitle
Text that is shown as title. -
getTitle
-
getValue
The string value that is shown in the combination of labels/fields. -
setValue
-
getWidth
-
setWidth
-
getBgpaint
-
setBgpaint
-
getBackground
-
setBackground
-
getMinPixelSize
public int getMinPixelSize()The minimum size for each contained FIELD component. -
setMinPixelSize
public void setMinPixelSize(int minPixelSize) -
getPixelsPerCharacter
public int getPixelsPerCharacter()Factor for calculating the default width of the contained FIELD components. The width is calculated from the length that is passed into theCCSeparatedFormField.FormFieldConfigurationItemField
-instance. -
setPixelsPerCharacter
public void setPixelsPerCharacter(int pixelsPerCharacter) -
getDefaultFieldAlign
-
setDefaultFieldAlign
-
getColDistance
public int getColDistance()Distance in pixels between the LABEL and FIELD instances. -
setColDistance
public void setColDistance(int colDistance) -
getEmptySpaceChar
public char getEmptySpaceChar()If the user did not input the full length of a FIELD component, then is is filled up with empty space characters. The default is ' ' (blank space), but you can decide to use some other character as well. -
setEmptySpaceChar
public void setEmptySpaceChar(char emptySpaceChar) -
getWithAutoTab
public boolean getWithAutoTab()Controls the attribute FIELD-MAXLENGTHAUTOTAB for the contained FIELD components. -
setWithAutoTab
public void setWithAutoTab(boolean withAutoTab) -
getFillWithEmptySpacesAtEnd
public boolean getFillWithEmptySpacesAtEnd()If the user did not input the full length of a FIELD component, then is is filled up with empty space characters. By default this is done at the end of the text, but you can override so that the empty spaces are added in front of the text. -
setFillWithEmptySpacesAtEnd
public void setFillWithEmptySpacesAtEnd(boolean fillWithEmptySpacesAtEnd) -
render
protected void render() -
renderItem
protected void renderItem(List<org.eclnt.jsfserver.elements.impl.ROWDYNAMICCONTENTBinding.ComponentNode> nodes, CCSeparatedFormField.FormFieldConfigurationItem item) -
renderFieldItem
protected void renderFieldItem(List<org.eclnt.jsfserver.elements.impl.ROWDYNAMICCONTENTBinding.ComponentNode> nodes, CCSeparatedFormField.FormFieldConfigurationItemField item) -
reactOnFieldUpdate
protected void reactOnFieldUpdate(org.eclnt.jsfserver.base.faces.event.ActionEvent event) -
renderLabelItem
protected void renderLabelItem(List<org.eclnt.jsfserver.elements.impl.ROWDYNAMICCONTENTBinding.ComponentNode> nodes, CCSeparatedFormField.FormFieldConfigurationItemLabel item) -
parseCurrentValue
-
calculateCurrentValue
-
calculateCurrentValue
-