public class KeyValueElementPresenter extends ElementPresenter<KeyValueElementView> implements KeyValueElementView.Presenter
collectionEditorPresenter, elementViewList, propertyPresenter, viewsProvider
Constructor and Description |
---|
KeyValueElementPresenter() |
Modifier and Type | Method and Description |
---|---|
Map<Map<String,String>,Map<String,String>> |
getItemsProperties()
Retrieves a
Map with the Map s of all the items' key/value properties |
com.google.gwt.dom.client.LIElement |
getKeyValueContainer(String itemId,
Map<String,String> keyPropertiesValues,
Map<String,String> valuePropertiesValues) |
void |
onDeleteItem(KeyValueElementView keyValueElementView)
Delete the item and its properties shown on the given
itemElementView |
void |
onEditItem(KeyValueElementView keyValueElementView)
Start editing properties of the given
itemElementView |
void |
onStopEditingItem(KeyValueElementView keyValueElementView)
Stop editing properties of the given
itemElementView
without updating the properties |
void |
onToggleRowExpansion(KeyValueElementView keyValueElementView,
boolean isShown) |
void |
updateItem(KeyValueElementView keyValueElementView)
Update the values of the properties shown in the given
itemElementView
and stop the editing mode |
onToggleRowExpansion, remove, setCollectionEditorPresenter, toggleEditingStatus, updateCommonToggleStatus
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onToggleRowExpansion, remove, setCollectionEditorPresenter, toggleEditingStatus, updateCommonToggleStatus
public com.google.gwt.dom.client.LIElement getKeyValueContainer(String itemId, Map<String,String> keyPropertiesValues, Map<String,String> valuePropertiesValues)
getKeyValueContainer
in interface KeyValueElementView.Presenter
itemId
- the id of the current itemkeyPropertiesValues
- the properties to be put inside the UListElement
representing the key of a single item of the mapLIElement
representing all the items of the mappublic void onToggleRowExpansion(KeyValueElementView keyValueElementView, boolean isShown)
onToggleRowExpansion
in interface ElementView.Presenter<KeyValueElementView>
public void onEditItem(KeyValueElementView keyValueElementView)
ElementView.Presenter
itemElementView
onEditItem
in interface ElementView.Presenter<KeyValueElementView>
public void onStopEditingItem(KeyValueElementView keyValueElementView)
ElementView.Presenter
itemElementView
without updating the propertiesonStopEditingItem
in interface ElementView.Presenter<KeyValueElementView>
public void onDeleteItem(KeyValueElementView keyValueElementView)
ElementView.Presenter
itemElementView
onDeleteItem
in interface ElementView.Presenter<KeyValueElementView>
public void updateItem(KeyValueElementView keyValueElementView)
ElementView.Presenter
itemElementView
and stop the editing modeupdateItem
in interface ElementView.Presenter<KeyValueElementView>
public Map<Map<String,String>,Map<String,String>> getItemsProperties()
KeyValueElementView.Presenter
Map
with the Map
s of all the items' key/value propertiesgetItemsProperties
in interface KeyValueElementView.Presenter
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.