Class CollectionEditorSingletonDOMElementFactory
- java.lang.Object
-
- org.uberfire.ext.wires.core.grids.client.widget.dom.single.impl.BaseSingletonDOMElementFactory<String,CollectionViewImpl,CollectionEditorDOMElement>
-
- org.drools.workbench.screens.scenariosimulation.client.factories.CollectionEditorSingletonDOMElementFactory
-
- All Implemented Interfaces:
org.uberfire.ext.wires.core.grids.client.widget.dom.DOMElementFactory<CollectionViewImpl,CollectionEditorDOMElement>,org.uberfire.ext.wires.core.grids.client.widget.dom.HasDOMElementResources,org.uberfire.ext.wires.core.grids.client.widget.dom.single.HasSingletonDOMElementResource,org.uberfire.ext.wires.core.grids.client.widget.dom.single.SingletonDOMElementFactory<CollectionViewImpl,CollectionEditorDOMElement>
public class CollectionEditorSingletonDOMElementFactory extends org.uberfire.ext.wires.core.grids.client.widget.dom.single.impl.BaseSingletonDOMElementFactory<String,CollectionViewImpl,CollectionEditorDOMElement>
-
-
Field Summary
Fields Modifier and Type Field Description protected ScenarioSimulationContextscenarioSimulationContextprotected ViewsProviderviewsProvider
-
Constructor Summary
Constructors Constructor Description CollectionEditorSingletonDOMElementFactory(org.uberfire.ext.wires.core.grids.client.widget.layer.impl.GridLienzoPanel gridPanel, org.uberfire.ext.wires.core.grids.client.widget.layer.GridLayer gridLayer, org.uberfire.ext.wires.core.grids.client.widget.grid.GridWidget gridWidget, ScenarioSimulationContext scenarioSimulationContext, ViewsProvider viewsProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcommonCloseHandling(CollectionEditorDOMElement collectionEditorDOMElement)CollectionEditorDOMElementcreateDomElement(org.uberfire.ext.wires.core.grids.client.widget.layer.GridLayer gridLayer, org.uberfire.ext.wires.core.grids.client.widget.grid.GridWidget gridWidget)CollectionEditorDOMElementcreateDomElementInternal(CollectionViewImpl collectionEditorView, org.uberfire.ext.wires.core.grids.client.widget.layer.GridLayer gridLayer, org.uberfire.ext.wires.core.grids.client.widget.grid.GridWidget gridWidget)CollectionViewImplcreateWidget()protected Map<String,Map<String,String>>getExpandablePropertiesMap(String typeName)protected StringgetRuleComplexType(String genericTypeName0)protected Map<String,String>getSimplePropertiesMap(String typeName)Retrieve aMapwith the property name/type of the given typeName If typeName is a simple class (seeScenarioSimulationUtils.isSimpleJavaType(java.lang.String)) the returnedMapwill have an entry with value as key and (typeName) as valueprotected StringgetValue()protected voidmanageList(CollectionViewImpl collectionEditorView, String key, String genericTypeName0, org.drools.scenariosimulation.api.model.ScenarioSimulationModel.Type type)protected voidmanageMap(CollectionViewImpl collectionEditorView, String key, String genericTypeName0, String genericTypeName1, org.drools.scenariosimulation.api.model.ScenarioSimulationModel.Type type)voidregisterHandlers(CollectionViewImpl widget, CollectionEditorDOMElement widgetDomElement)protected voidsetCollectionEditorStructureData(CollectionViewImpl collectionEditorView, org.drools.scenariosimulation.api.model.FactMapping factMapping)
-
-
-
Field Detail
-
viewsProvider
protected ViewsProvider viewsProvider
-
scenarioSimulationContext
protected ScenarioSimulationContext scenarioSimulationContext
-
-
Constructor Detail
-
CollectionEditorSingletonDOMElementFactory
public CollectionEditorSingletonDOMElementFactory(org.uberfire.ext.wires.core.grids.client.widget.layer.impl.GridLienzoPanel gridPanel, org.uberfire.ext.wires.core.grids.client.widget.layer.GridLayer gridLayer, org.uberfire.ext.wires.core.grids.client.widget.grid.GridWidget gridWidget, ScenarioSimulationContext scenarioSimulationContext, ViewsProvider viewsProvider)
-
-
Method Detail
-
createWidget
public CollectionViewImpl createWidget()
-
createDomElement
public CollectionEditorDOMElement createDomElement(org.uberfire.ext.wires.core.grids.client.widget.layer.GridLayer gridLayer, org.uberfire.ext.wires.core.grids.client.widget.grid.GridWidget gridWidget)
- Specified by:
createDomElementin interfaceorg.uberfire.ext.wires.core.grids.client.widget.dom.DOMElementFactory<CollectionViewImpl,CollectionEditorDOMElement>- Overrides:
createDomElementin classorg.uberfire.ext.wires.core.grids.client.widget.dom.single.impl.BaseSingletonDOMElementFactory<String,CollectionViewImpl,CollectionEditorDOMElement>
-
getValue
protected String getValue()
- Specified by:
getValuein classorg.uberfire.ext.wires.core.grids.client.widget.dom.single.impl.BaseSingletonDOMElementFactory<String,CollectionViewImpl,CollectionEditorDOMElement>
-
setCollectionEditorStructureData
protected void setCollectionEditorStructureData(CollectionViewImpl collectionEditorView, org.drools.scenariosimulation.api.model.FactMapping factMapping)
-
manageList
protected void manageList(CollectionViewImpl collectionEditorView, String key, String genericTypeName0, org.drools.scenariosimulation.api.model.ScenarioSimulationModel.Type type)
-
manageMap
protected void manageMap(CollectionViewImpl collectionEditorView, String key, String genericTypeName0, String genericTypeName1, org.drools.scenariosimulation.api.model.ScenarioSimulationModel.Type type)
-
createDomElementInternal
public CollectionEditorDOMElement createDomElementInternal(CollectionViewImpl collectionEditorView, org.uberfire.ext.wires.core.grids.client.widget.layer.GridLayer gridLayer, org.uberfire.ext.wires.core.grids.client.widget.grid.GridWidget gridWidget)
- Specified by:
createDomElementInternalin classorg.uberfire.ext.wires.core.grids.client.widget.dom.single.impl.BaseSingletonDOMElementFactory<String,CollectionViewImpl,CollectionEditorDOMElement>
-
getSimplePropertiesMap
protected Map<String,String> getSimplePropertiesMap(String typeName)
Retrieve aMapwith the property name/type of the given typeName If typeName is a simple class (seeScenarioSimulationUtils.isSimpleJavaType(java.lang.String)) the returnedMapwill have an entry with value as key and (typeName) as value- Parameters:
typeName-- Returns:
-
getExpandablePropertiesMap
protected Map<String,Map<String,String>> getExpandablePropertiesMap(String typeName)
-
commonCloseHandling
protected void commonCloseHandling(CollectionEditorDOMElement collectionEditorDOMElement)
-
registerHandlers
public void registerHandlers(CollectionViewImpl widget, CollectionEditorDOMElement widgetDomElement)
- Specified by:
registerHandlersin interfaceorg.uberfire.ext.wires.core.grids.client.widget.dom.DOMElementFactory<CollectionViewImpl,CollectionEditorDOMElement>- Overrides:
registerHandlersin classorg.uberfire.ext.wires.core.grids.client.widget.dom.single.impl.BaseSingletonDOMElementFactory<String,CollectionViewImpl,CollectionEditorDOMElement>
-
-