Class FWTableFormComponent

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, FWObserver

public class FWTableFormComponent extends FWAbstractFormComponent
This component allows to lay out form components in a table-like fashion.
Author:
ckunze
See Also:
  • Constructor Details

    • FWTableFormComponent

      public FWTableFormComponent(String aFormId, org.jdom2.Element aFormElement, FWObservable aObservable, int aDetachability)
      Creates an empty Table form component.
      Parameters:
      aFormId -
      aFormElement -
      aFieldID -
      aObservable -
      aDetachability -
  • Method Details

    • addRow

      public void addRow(String aId)
    • addCell

      public void addCell(String aId, List<Component> aComponents)
    • getPreferredSize

      public Dimension getPreferredSize()
      Overrides:
      getPreferredSize in class FWAbstractFormComponent
    • getMaximumSize

      public Dimension getMaximumSize()
      Overrides:
      getMaximumSize in class FWAbstractFormComponent
    • getMinimumSize

      public Dimension getMinimumSize()
      Overrides:
      getMinimumSize in class JComponent
    • getLocaleValue

      protected String getLocaleValue(String aKey)
      This method retrieves the corresponding localozed string to aKey. If aKey is empty ("" or null), an empty string is returned. Furthermore, the special placeholders ${ROWINDEX} and ${COLINDEX} are replaced with the cell's column and its row respectively. These placeholders may occur in the parameter aKey or in the localized String that belongs to it.
      Overrides:
      getLocaleValue in class FWAbstractFormComponent
      Returns:
    • getValue

      public Object getValue()
      This method always returns null since there is no internal value associated with a FWTableFormComponent
      Specified by:
      getValue in class FWAbstractFormComponent
      Returns:
      value of the implemented component
    • setValue

      public void setValue(Object value)
      This method does nothing since there is no internal value associated with a FWTableFormComponent.
      Specified by:
      setValue in class FWAbstractFormComponent
      Parameters:
      value - of the implemented component
    • processFormFiller

      public void processFormFiller()
      This method does nothing. Form fillers are not supported for FWTableFormComponents.
      Specified by:
      processFormFiller in class FWAbstractFormComponent
    • exportData

      protected void exportData()
      Allows to export the table to xls
      Overrides:
      exportData in class FWAbstractFormComponent
    • getValueCell

      protected com.lowagie.text.Rectangle getValueCell(int aType)
      Description copied from class: FWAbstractFormComponent
      returns the value label to use for generating rtf, pdf or html version of the form
      Specified by:
      getValueCell in class FWAbstractFormComponent
      Returns:
      iText Cell