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:
  • Constructor Details

    • CCSeparatedFormField

      public CCSeparatedFormField()
  • Method Details

    • getRootExpressionUsedInPage

      public String getRootExpressionUsedInPage()
      Specified by:
      getRootExpressionUsedInPage in interface org.eclnt.jsfserver.pagebean.IPageBean
      Specified by:
      getRootExpressionUsedInPage in class org.eclnt.jsfserver.pagebean.PageBean
    • prepare

      public void prepare(CCSeparatedFormField.FormFieldConfiguration configuration, CCSeparatedFormField.IListener listener)
    • initializePageBean

      public void initializePageBean(Map<String,String> initData)
      Specified by:
      initializePageBean in interface org.eclnt.jsfserver.pagebean.component.IPageBeanComponent
      Overrides:
      initializePageBean in class org.eclnt.jsfserver.pagebean.component.PageBeanComponent
    • initializePageBeanConfigItems

      public void initializePageBeanConfigItems(List<org.eclnt.jsfserver.pagebean.PageBeanConfigItem> configItems)
      Specified by:
      initializePageBeanConfigItems in interface org.eclnt.jsfserver.pagebean.component.IPageBeanComponent
      Overrides:
      initializePageBeanConfigItems in class org.eclnt.jsfserver.pagebean.component.PageBeanComponent
    • onBeforeRendering

      public void onBeforeRendering()
      Specified by:
      onBeforeRendering in interface org.eclnt.jsfserver.pagebean.IPageBean
      Overrides:
      onBeforeRendering in class org.eclnt.jsfserver.pagebean.PageBean
    • getDynContent

      public org.eclnt.jsfserver.elements.impl.DYNAMICCONTENTBinding getDynContent()
    • setTitle

      public void setTitle(String title)
      Text that is shown as title.
    • getTitle

      public String getTitle()
    • getValue

      public String getValue()
      The string value that is shown in the combination of labels/fields.
    • setValue

      public void setValue(String value) throws CCSeparatedFormField.ParseException
      Throws:
      CCSeparatedFormField.ParseException
    • getWidth

      public String getWidth()
    • setWidth

      public void setWidth(String value)
    • getBgpaint

      public String getBgpaint()
    • setBgpaint

      public void setBgpaint(String value)
    • getBackground

      public String getBackground()
    • setBackground

      public void setBackground(String value)
    • 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 the CCSeparatedFormField.FormFieldConfigurationItemField-instance.
    • setPixelsPerCharacter

      public void setPixelsPerCharacter(int pixelsPerCharacter)
    • getDefaultFieldAlign

      public String getDefaultFieldAlign()
    • setDefaultFieldAlign

      public void setDefaultFieldAlign(String defaultFieldAlign)
    • 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

      protected void parseCurrentValue(String value) throws CCSeparatedFormField.ParseException
      Throws:
      CCSeparatedFormField.ParseException
    • calculateCurrentValue

      protected String calculateCurrentValue()
    • calculateCurrentValue

      protected String calculateCurrentValue(Map<String,String> fieldValues, char emptySpaceChar)