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 Maps 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, toggleEditingStatusclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonToggleRowExpansion, remove, setCollectionEditorPresenter, toggleEditingStatuspublic com.google.gwt.dom.client.LIElement getKeyValueContainer(String itemId, Map<String,String> keyPropertiesValues, Map<String,String> valuePropertiesValues)
getKeyValueContainer in interface KeyValueElementView.PresenteritemId - 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.PresenteritemElementViewonEditItem in interface ElementView.Presenter<KeyValueElementView>public void onStopEditingItem(KeyValueElementView keyValueElementView)
ElementView.PresenteritemElementView
without updating the propertiesonStopEditingItem in interface ElementView.Presenter<KeyValueElementView>public void onDeleteItem(KeyValueElementView keyValueElementView)
ElementView.PresenteritemElementViewonDeleteItem in interface ElementView.Presenter<KeyValueElementView>public void updateItem(KeyValueElementView keyValueElementView)
ElementView.PresenteritemElementView
and stop the editing modeupdateItem in interface ElementView.Presenter<KeyValueElementView>public Map<Map<String,String>,Map<String,String>> getItemsProperties()
KeyValueElementView.PresenterMap with the Maps of all the items' key/value propertiesgetItemsProperties in interface KeyValueElementView.PresenterCopyright © 2001–2019 JBoss by Red Hat. All rights reserved.