public interface CollectionView
Modifier and Type | Interface and Description |
---|---|
static interface |
CollectionView.Presenter |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the current
CollectionView |
void |
enableEditingMode(boolean isEditingMode)
It enable the view to Editing Mode of the Guided collection editor
|
com.google.gwt.dom.client.HeadingElement |
getEditorTitle() |
com.google.gwt.dom.client.UListElement |
getElementsContainer() |
String |
getExpression() |
com.google.gwt.dom.client.SpanElement |
getPropertyTitle() |
String |
getValue()
Actual implementations are meant to call the
Presenter to retrieve the json representation of their contents |
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 the
Map to be used to create the skeleton of the current CollectionViewImpl editor
showing a List of elements |
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 the
Map s to be used to create the skeleton of the current CollectionViewImpl editor
showing a Map of elements |
boolean |
isExpressionWidget()
Returns
true if the current instance is managing an user defined expression. |
boolean |
isListWidget()
Returns
true if the current instance will manage a List ,
false for a Map . |
void |
setExpression(String expressionValue) |
void |
setFixedHeight(double value,
com.google.gwt.dom.client.Style.Unit px) |
void |
setValue(String jsonString)
Actual implementations are meant to call the
Presenter to be populated by this json representation |
void |
toggleRowExpansion() |
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
|
void |
updateValue(String toString)
Updates the json representation of the values shown by this editor
|
void setValue(String jsonString)
Presenter
to be populated by this json representationjsonString
- String getValue()
Presenter
to retrieve the json representation of their contentsboolean isExpressionWidget()
true
if the current instance is managing an user defined expression.boolean isListWidget()
true
if the current instance will manage a List
,
false
for a Map
.com.google.gwt.dom.client.UListElement getElementsContainer()
com.google.gwt.dom.client.HeadingElement getEditorTitle()
com.google.gwt.dom.client.SpanElement getPropertyTitle()
void enableEditingMode(boolean isEditingMode)
isEditingMode
- String getExpression()
void setExpression(String expressionValue)
void toggleRowExpansion()
void updateRowExpansionStatus(boolean isShown)
isShown
- the current expansion status of the collectionvoid updateValue(String toString)
toString
- void close()
CollectionView
void initListStructure(String key, Map<String,String> simplePropertiesMap, Map<String,Map<String,String>> expandablePropertiesMap, org.drools.scenariosimulation.api.model.ScenarioSimulationModel.Type type)
Map
to be used to create the skeleton of the current CollectionViewImpl
editor
showing a List of elementskey
- The key representing the property, i.e Classname#propertyname (e.g Author#books)simplePropertiesMap
- expandablePropertiesMap
- type
- void initMapStructure(String key, Map<String,String> keyPropertyMap, Map<String,String> valuePropertyMap, org.drools.scenariosimulation.api.model.ScenarioSimulationModel.Type type)
Map
s to be used to create the skeleton of the current CollectionViewImpl
editor
showing a Map of elementskey
- The key representing the property, i.e Classname#propertyname (e.g Author#books)keyPropertyMap
- valuePropertyMap
- type
- void setFixedHeight(double value, com.google.gwt.dom.client.Style.Unit px)
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.