Class FWAbstractExtendedFormComponent

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, net.simplace.core.FWBusyIndicator, net.simplace.core.FWObserver

public abstract class FWAbstractExtendedFormComponent extends FWAbstractFormComponent
Base class of form components that are instantiated by class name (default constructor) and initialised afterwards with initialize(String, String, boolean, Element, FWObservable). The value cell for printing is an empty cell with border.
Author:
Andreas Enders
See Also:
  • Constructor Details

    • FWAbstractExtendedFormComponent

      public FWAbstractExtendedFormComponent()
  • Method Details

    • initialize

      public abstract void initialize(String aFormID, String aFieldID, boolean aShowLabel, org.jdom2.Element aFormElement, net.simplace.core.FWObservable aObservable)
      Initialises the component after instantiation by class name.
      Parameters:
      aFormID - id of the form the component is placed in
      aFieldID - id of the component, also the parameter key of its value
      aShowLabel - true to show a caption label
      aFormElement - the form element describing the component
      aObservable - parameters of the functionality
    • getValueCell

      protected com.lowagie.text.Rectangle getValueCell(int aType)
      Description copied from class: FWAbstractFormComponent
      Returns the value cell used for generating the RTF, PDF or HTML version of the form.
      Specified by:
      getValueCell in class FWAbstractFormComponent
      Parameters:
      aType - output type, e.g. PrintHelper.TYPE_PDF
      Returns:
      an iText cell (PdfPCell for PDF, Cell otherwise)