Interface CollectionView
-
- All Known Implementing Classes:
CollectionViewImpl
public interface CollectionViewInterface defining the contract for actual implementations
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceCollectionView.Presenter
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Close the currentCollectionViewvoidenableEditingMode(boolean isEditingMode)It enable the view to Editing Mode of the Guided collection editorcom.google.gwt.dom.client.HeadingElementgetEditorTitle()com.google.gwt.dom.client.UListElementgetElementsContainer()StringgetExpression()com.google.gwt.dom.client.SpanElementgetPropertyTitle()StringgetValue()Actual implementations are meant to call thePresenterto retrieve the json representation of their contentsvoidinitListStructure(String key, Map<String,String> simplePropertiesMap, Map<String,Map<String,String>> expandablePropertiesMap, org.drools.scenariosimulation.api.model.ScenarioSimulationModel.Type type)Set the name of the property and theMapto be used to create the skeleton of the currentCollectionViewImpleditor showing a List of elementsvoidinitMapStructure(String key, Map<String,String> keyPropertyMap, Map<String,String> valuePropertyMap, org.drools.scenariosimulation.api.model.ScenarioSimulationModel.Type type)Set the name of the property and theMaps to be used to create the skeleton of the currentCollectionViewImpleditor showing a Map of elementsbooleanisExpressionWidget()Returnstrueif the current instance is managing an user defined expression.booleanisListWidget()Returnstrueif the current instance will manage aList,falsefor aMap.voidsetExpression(String expressionValue)voidsetFixedHeight(double value, com.google.gwt.dom.client.Style.Unit px)voidsetValue(String jsonString)Actual implementations are meant to call thePresenterto be populated by this json representationvoidtoggleRowExpansion()voidupdateRowExpansionStatus(boolean isShown)Updates the expanded status of main collection container to reflect the status of all contained items, when they have the same expanded statusvoidupdateValue(String toString)Updates the json representation of the values shown by this editor
-
-
-
Method Detail
-
setValue
void setValue(String jsonString)
Actual implementations are meant to call thePresenterto be populated by this json representation- Parameters:
jsonString-
-
getValue
String getValue()
Actual implementations are meant to call thePresenterto retrieve the json representation of their contents- Returns:
- the json representation of the current content
-
isExpressionWidget
boolean isExpressionWidget()
Returnstrueif the current instance is managing an user defined expression.
-
isListWidget
boolean isListWidget()
Returnstrueif the current instance will manage aList,falsefor aMap.- Returns:
-
getElementsContainer
com.google.gwt.dom.client.UListElement getElementsContainer()
-
getEditorTitle
com.google.gwt.dom.client.HeadingElement getEditorTitle()
-
getPropertyTitle
com.google.gwt.dom.client.SpanElement getPropertyTitle()
-
enableEditingMode
void enableEditingMode(boolean isEditingMode)
It enable the view to Editing Mode of the Guided collection editor- Parameters:
isEditingMode-
-
getExpression
String getExpression()
-
setExpression
void setExpression(String expressionValue)
-
toggleRowExpansion
void toggleRowExpansion()
-
updateRowExpansionStatus
void updateRowExpansionStatus(boolean isShown)
Updates the expanded status of main collection container to reflect the status of all contained items, when they have the same expanded status- Parameters:
isShown- the current expansion status of the collection
-
updateValue
void updateValue(String toString)
Updates the json representation of the values shown by this editor- Parameters:
toString-
-
close
void close()
Close the currentCollectionView
-
initListStructure
void initListStructure(String key, Map<String,String> simplePropertiesMap, Map<String,Map<String,String>> expandablePropertiesMap, org.drools.scenariosimulation.api.model.ScenarioSimulationModel.Type type)
Set the name of the property and theMapto be used to create the skeleton of the currentCollectionViewImpleditor showing a List of elements- Parameters:
key- The key representing the property, i.e Classname#propertyname (e.g Author#books)simplePropertiesMap-expandablePropertiesMap-type-
-
initMapStructure
void initMapStructure(String key, Map<String,String> keyPropertyMap, Map<String,String> valuePropertyMap, org.drools.scenariosimulation.api.model.ScenarioSimulationModel.Type type)
Set the name of the property and theMaps to be used to create the skeleton of the currentCollectionViewImpleditor showing a Map of elements- Parameters:
key- The key representing the property, i.e Classname#propertyname (e.g Author#books)keyPropertyMap-valuePropertyMap-type-
-
setFixedHeight
void setFixedHeight(double value, com.google.gwt.dom.client.Style.Unit px)
-
-