Class KeyValueElementPresenter
- java.lang.Object
-
- org.drools.workbench.screens.scenariosimulation.client.collectioneditor.ElementPresenter<KeyValueElementView>
-
- org.drools.workbench.screens.scenariosimulation.client.collectioneditor.KeyValueElementPresenter
-
- All Implemented Interfaces:
ElementView.Presenter<KeyValueElementView>,KeyValueElementView.Presenter
public class KeyValueElementPresenter extends ElementPresenter<KeyValueElementView> implements KeyValueElementView.Presenter
-
-
Field Summary
-
Fields inherited from class org.drools.workbench.screens.scenariosimulation.client.collectioneditor.ElementPresenter
collectionEditorPresenter, elementViewList, propertyPresenter, viewsProvider
-
-
Constructor Summary
Constructors Constructor Description KeyValueElementPresenter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<Map<String,String>,Map<String,String>>getItemsProperties()Retrieves aMapwith theMaps of all the items' key/value propertiescom.google.gwt.dom.client.LIElementgetKeyValueContainer(String itemId, Map<String,String> keyPropertiesValues, Map<String,String> valuePropertiesValues)voidonDeleteItem(KeyValueElementView keyValueElementView)Delete the item and its properties shown on the givenitemElementViewvoidonEditItem(KeyValueElementView keyValueElementView)Start editing properties of the givenitemElementViewvoidonStopEditingItem(KeyValueElementView keyValueElementView)Stop editing properties of the givenitemElementViewwithout updating the propertiesvoidonToggleRowExpansion(KeyValueElementView keyValueElementView, boolean isShown)voidupdateItem(KeyValueElementView keyValueElementView)Update the values of the properties shown in the givenitemElementViewand stop the editing mode-
Methods inherited from class org.drools.workbench.screens.scenariosimulation.client.collectioneditor.ElementPresenter
onToggleRowExpansion, remove, setCollectionEditorPresenter, toggleEditingStatus, updateCommonToggleStatus
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.drools.workbench.screens.scenariosimulation.client.collectioneditor.ElementView.Presenter
onToggleRowExpansion, remove, setCollectionEditorPresenter, toggleEditingStatus, updateCommonToggleStatus
-
-
-
-
Method Detail
-
getKeyValueContainer
public com.google.gwt.dom.client.LIElement getKeyValueContainer(String itemId, Map<String,String> keyPropertiesValues, Map<String,String> valuePropertiesValues)
- Specified by:
getKeyValueContainerin interfaceKeyValueElementView.Presenter- Parameters:
itemId- the id of the current itemkeyPropertiesValues- the properties to be put inside theUListElementrepresenting the key of a single item of the map- Returns:
- the
LIElementrepresenting all the items of the map
-
onToggleRowExpansion
public void onToggleRowExpansion(KeyValueElementView keyValueElementView, boolean isShown)
- Specified by:
onToggleRowExpansionin interfaceElementView.Presenter<KeyValueElementView>
-
onEditItem
public void onEditItem(KeyValueElementView keyValueElementView)
Description copied from interface:ElementView.PresenterStart editing properties of the givenitemElementView- Specified by:
onEditItemin interfaceElementView.Presenter<KeyValueElementView>
-
onStopEditingItem
public void onStopEditingItem(KeyValueElementView keyValueElementView)
Description copied from interface:ElementView.PresenterStop editing properties of the givenitemElementViewwithout updating the properties- Specified by:
onStopEditingItemin interfaceElementView.Presenter<KeyValueElementView>
-
onDeleteItem
public void onDeleteItem(KeyValueElementView keyValueElementView)
Description copied from interface:ElementView.PresenterDelete the item and its properties shown on the givenitemElementView- Specified by:
onDeleteItemin interfaceElementView.Presenter<KeyValueElementView>
-
updateItem
public void updateItem(KeyValueElementView keyValueElementView)
Description copied from interface:ElementView.PresenterUpdate the values of the properties shown in the givenitemElementViewand stop the editing mode- Specified by:
updateItemin interfaceElementView.Presenter<KeyValueElementView>
-
getItemsProperties
public Map<Map<String,String>,Map<String,String>> getItemsProperties()
Description copied from interface:KeyValueElementView.PresenterRetrieves aMapwith theMaps of all the items' key/value properties- Specified by:
getItemsPropertiesin interfaceKeyValueElementView.Presenter- Returns:
-
-