Package net.simplace.pipe.filler
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
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract org.jfree.chart.JFreeChartgenerateChart(String aKey, ChartStyle aChartStyle) protected abstract List<org.jdom2.Element>generateFieldList(String aKey) protected abstract Vector<FWFormOption>generateFormOptions(String aKey) protected abstract ObjectgenerateObject(String aKey) org.jfree.chart.JFreeChartgetChart(String aKey, ChartStyle aChartStyle) protected org.jdom2.Elementprotected ObjectList<org.jdom2.Element>getFieldList(String aKey) getFormOptions(String aKey) protected ObjectgetParameter(String aKey) protected StringgetStringParameter(String aKey) protected StringgetTitle()protected booleanvoidinitialize(Object aContent, Map<String, Object> aParameterMap, FWObservable aObservable, String aSystemID, org.jdom2.Element aConfiguration) protected StringreplaceParamTokens(String aKey, String aDefault) protected voidsetContent(Object aContent) void
-
Field Details
-
iParameterMap
-
iObervable
-
-
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 setaParameterMap- to configure the FilleraObservable-aSystemID-aConfiguration- IMPORTANT: This has to be called after instantiation of the filler via class for name
-
generateFormOptions
- Parameters:
aKey-- Returns:
- a vector of form options
-
generateChart
- Parameters:
aKey-aChartStyle-- Returns:
- JFreeChart
-
generateObject
- Parameters:
aKey-- Returns:
- object
-
generateFieldList
- Parameters:
aKey-- Returns:
- list of fields
-
getContent
- Returns:
- the content
-
getStringParameter
- Parameters:
aKey-- Returns:
- the value of the parameter
-
getParameter
- Parameters:
aKey-- Returns:
- the value of the parameter
-
replaceParamTokens
- Parameters:
aKey-aDefault-- Returns:
- the value of the parameter
-
setContent
- Parameters:
aContent- the content to set
-
getFormOptions
- Parameters:
aKey-- Returns:
- the generated FormOptions
-
getFieldList
- Parameters:
aKey-- Returns:
- the field list
-
getChart
- Parameters:
aKey-aChartStyle-- Returns:
- the content
-
getObject
- Parameters:
aKey-aClassname-- Returns:
- the content
-
getSystemID
-
getConfiguration
protected org.jdom2.Element getConfiguration() -
hasConfiguration
protected boolean hasConfiguration() -
getTitle
-
setTitle
-