Class FWAbstractFormComponentFiller

java.lang.Object
net.simplace.pipe.filler.FWAbstractFormComponentFiller
Direct Known Subclasses:
FWArraysFormComponentFiller, FWASCIIFormComponentFiller, FWClasspathFormComponentFiller, FWDatabaseFormComponentFiller, FWDatabaseFormTableComponentFiller, FWFilebasedFormComponentFiller, FWFormComponentFillerHSSFwb, FWMapFormComponentFiller, FWObservableFormComponentFiller, FWScenarioFormComponentFiller, FWSimCacheListFormComponentFiller, FWSimVariablesFormComponentFiller, FWSystemFormComponentFiller

public abstract class FWAbstractFormComponentFiller extends Object
The Component Filler is overwritten by classes which achieve data from different sources, as an XLS sheet or a database, and generate a Map Object to be able to return dynamic options for a form component.
Author:
Andreas Enders
  • Field Details

  • Constructor Details

    • FWAbstractFormComponentFiller

      public FWAbstractFormComponentFiller()
  • Method Details

    • initialize

      public void initialize(Object aContent, Map<String,Object> aParameterMap, FWObservable aObservable, String aSystemID, org.jdom2.Element aConfiguration)
      Parameters:
      aContent - the content to set
      aParameterMap - to configure the Filler
      aObservable -
      aSystemID -
      aConfiguration - IMPORTANT: This has to be called after instantiation of the filler via class for name
    • generateFormOptions

      protected abstract Vector<FWFormOption> generateFormOptions(String aKey)
      Parameters:
      aKey -
      Returns:
      a vector of form options
    • generateChart

      protected abstract org.jfree.chart.JFreeChart generateChart(String aKey, ChartStyle aChartStyle)
      Parameters:
      aKey -
      aChartStyle -
      Returns:
      JFreeChart
    • generateObject

      protected abstract Object generateObject(String aKey)
      Parameters:
      aKey -
      Returns:
      object
    • generateFieldList

      protected abstract List<org.jdom2.Element> generateFieldList(String aKey)
      Parameters:
      aKey -
      Returns:
      list of fields
    • getContent

      protected Object getContent()
      Returns:
      the content
    • getStringParameter

      protected String getStringParameter(String aKey)
      Parameters:
      aKey -
      Returns:
      the value of the parameter
    • getParameter

      protected Object getParameter(String aKey)
      Parameters:
      aKey -
      Returns:
      the value of the parameter
    • replaceParamTokens

      protected String replaceParamTokens(String aKey, String aDefault)
      Parameters:
      aKey -
      aDefault -
      Returns:
      the value of the parameter
    • setContent

      protected void setContent(Object aContent)
      Parameters:
      aContent - the content to set
    • getFormOptions

      public Vector<FWFormOption> getFormOptions(String aKey)
      Parameters:
      aKey -
      Returns:
      the generated FormOptions
    • getFieldList

      public List<org.jdom2.Element> getFieldList(String aKey)
      Parameters:
      aKey -
      Returns:
      the field list
    • getChart

      public org.jfree.chart.JFreeChart getChart(String aKey, ChartStyle aChartStyle)
      Parameters:
      aKey -
      aChartStyle -
      Returns:
      the content
    • getObject

      public Object getObject(String aKey, String aClassname)
      Parameters:
      aKey -
      aClassname -
      Returns:
      the content
    • getSystemID

      protected String getSystemID()
    • getConfiguration

      protected org.jdom2.Element getConfiguration()
    • hasConfiguration

      protected boolean hasConfiguration()
    • getTitle

      public String getTitle()
    • setTitle

      public void setTitle(String aTitle)