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 classstatic classstatic classstatic classstatic classstatic interfaceclassNested 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 Stringprotected StringcalculateCurrentValue(Map<String, String> fieldValues, char emptySpaceChar) intDistance in pixels between the LABEL and FIELD instances.org.eclnt.jsfserver.elements.impl.DYNAMICCONTENTBindingcharIf the user did not input the full length of a FIELD component, then is is filled up with empty space characters.booleanIf the user did not input the full length of a FIELD component, then is is filled up with empty space characters.intThe minimum size for each contained FIELD component.intFactor 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()booleanControls the attribute FIELD-MAXLENGTHAUTOTAB for the contained FIELD components.voidinitializePageBean(Map<String, String> initData) voidinitializePageBeanConfigItems(List<org.eclnt.jsfserver.pagebean.PageBeanConfigItem> configItems) voidprotected voidparseCurrentValue(String value) voidprepare(CCSeparatedFormField.FormFieldConfiguration configuration, CCSeparatedFormField.IListener listener) protected voidreactOnFieldUpdate(org.eclnt.jsfserver.base.faces.event.ActionEvent event) protected voidrender()protected voidrenderFieldItem(List<org.eclnt.jsfserver.elements.impl.ROWDYNAMICCONTENTBinding.ComponentNode> nodes, CCSeparatedFormField.FormFieldConfigurationItemField item) protected voidrenderItem(List<org.eclnt.jsfserver.elements.impl.ROWDYNAMICCONTENTBinding.ComponentNode> nodes, CCSeparatedFormField.FormFieldConfigurationItem item) protected voidrenderLabelItem(List<org.eclnt.jsfserver.elements.impl.ROWDYNAMICCONTENTBinding.ComponentNode> nodes, CCSeparatedFormField.FormFieldConfigurationItemLabel item) voidsetBackground(String value) voidsetBgpaint(String value) voidsetColDistance(int colDistance) voidsetDefaultFieldAlign(String defaultFieldAlign) voidsetEmptySpaceChar(char emptySpaceChar) voidsetFillWithEmptySpacesAtEnd(boolean fillWithEmptySpacesAtEnd) voidsetMinPixelSize(int minPixelSize) voidsetPixelsPerCharacter(int pixelsPerCharacter) voidText that is shown as title.voidvoidvoidsetWithAutoTab(boolean withAutoTab) Methods inherited from class org.eclnt.jsfserver.pagebean.component.PageBeanComponent
getLitMethods 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
-
Constructor Details
-
CCSeparatedFormField
public CCSeparatedFormField()
-
-
Method Details
-
getRootExpressionUsedInPage
- Specified by:
getRootExpressionUsedInPagein interfaceorg.eclnt.jsfserver.pagebean.IPageBean- Specified by:
getRootExpressionUsedInPagein classorg.eclnt.jsfserver.pagebean.PageBean
-
prepare
public void prepare(CCSeparatedFormField.FormFieldConfiguration configuration, CCSeparatedFormField.IListener listener) -
initializePageBean
- Specified by:
initializePageBeanin interfaceorg.eclnt.jsfserver.pagebean.component.IPageBeanComponent- Overrides:
initializePageBeanin classorg.eclnt.jsfserver.pagebean.component.PageBeanComponent
-
initializePageBeanConfigItems
public void initializePageBeanConfigItems(List<org.eclnt.jsfserver.pagebean.PageBeanConfigItem> configItems) - Specified by:
initializePageBeanConfigItemsin interfaceorg.eclnt.jsfserver.pagebean.component.IPageBeanComponent- Overrides:
initializePageBeanConfigItemsin classorg.eclnt.jsfserver.pagebean.component.PageBeanComponent
-
onBeforeRendering
public void onBeforeRendering()- Specified by:
onBeforeRenderingin interfaceorg.eclnt.jsfserver.pagebean.IPageBean- Overrides:
onBeforeRenderingin 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
-