Class FWFormPanel

All Implemented Interfaces:
ActionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, FWFormComponentFactory

public class FWFormPanel extends FWDefaultPanel implements ActionListener, FWFormComponentFactory
form panel automatically shows components customized in XML Layout provider Special Layout provider is used.
Author:
Andreas Enders
See Also:
  • Constructor Details

    • FWFormPanel

      public FWFormPanel(org.jdom2.Element aFormElement, FormFunctionality aFunctionality)
      constructs Panel form JDOM-Element (from) using default values from functionality
      Parameters:
      aFormElement -
      aFunctionality -
    • FWFormPanel

      public FWFormPanel(org.jdom2.Element aFormElement, FWObservable aObservable)
      constructs Panel form JDOM-Element (from) using default values from functionality
      Parameters:
      aFormElement -
      aObservable -
  • Method Details

    • checkRequired

      public void checkRequired() throws RequiredFieldEmptyException
      as result of the FormPanel all values are requested from the objects and set to
      Throws:
      RequiredFieldEmptyException
    • createFormComponent

      public FWAbstractFormComponent createFormComponent(org.jdom2.Element aElement, boolean aShowLabel)
      Parameters:
      aElement -
      aShowLabel -
      Returns:
    • createFormComponent

      public FWAbstractFormComponent createFormComponent(org.jdom2.Element aElement, String aID, String aFormID, FWObservable aObservable, boolean aShowLabel, int aDetachibility)
      Specified by:
      createFormComponent in interface FWFormComponentFactory
      Parameters:
      aElement -
      aID -
      aFormID -
      aObservable -
      aShowLabel -
      aDetachibility -
      Returns:
    • parseDetachability

      public int parseDetachability(org.jdom2.Element aElement)
      Parameters:
      aElement -
      Returns:
      int representing the detachability
    • fillGroupComponent

      public void fillGroupComponent(List<org.jdom2.Element> aComponentList, FWGroupFormComponent aGroupPanel)
      Parameters:
      aComponentList -
      aGroupPanel -
    • go

      protected void go()
      method go to go on with process to nextFunction
      Overrides:
      go in class FWDefaultPanel
    • back

      protected void back()
      method go to go on with process to previousFunction
      Overrides:
      back in class FWDefaultPanel
    • reset

      protected void reset()
      called from action performed - you can overwrite it in extended class or use this
      Overrides:
      reset in class FWDefaultPanel
    • cancel

      protected void cancel()
      method cancel to stop process
      Overrides:
      cancel in class FWDefaultPanel
    • getLocaleValue

      protected String getLocaleValue(String aKey)
      This method limits the coding for reading values from the locale.
      Overrides:
      getLocaleValue in class FWDefaultPanel
      Returns:
    • getObservable

      public FWObservable getObservable()
      Returns:
      FWObservable
    • getDocument

      public com.lowagie.text.Document getDocument(int aType, String aFile)
      Parameters:
      aType -
      aFile -
      Returns:
      Document
    • addComponentFactory

      public static void addComponentFactory(FWFormComponentFactory aFactory)