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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract org.jfree.chart.JFreeChart
generateChart
(String aKey, ChartStyle aChartStyle) protected abstract List<org.jdom2.Element>
generateFieldList
(String aKey) protected abstract Vector<FWFormOption>
generateFormOptions
(String aKey) protected abstract Object
generateObject
(String aKey) org.jfree.chart.JFreeChart
getChart
(String aKey, ChartStyle aChartStyle) protected org.jdom2.Element
protected Object
List<org.jdom2.Element>
getFieldList
(String aKey) getFormOptions
(String aKey) protected Object
getParameter
(String aKey) protected String
getStringParameter
(String aKey) protected String
getTitle()
protected boolean
void
initialize
(Object aContent, Map<String, Object> aParameterMap, FWObservable aObservable, String aSystemID, org.jdom2.Element aConfiguration) protected String
replaceParamTokens
(String aKey, String aDefault) protected void
setContent
(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
-