public class ItemElementPresenter extends ElementPresenter<ItemElementView> implements ItemElementView.Presenter
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,List<String>> |
itemIdExpandablePropertiesMap
This
Map is used to map all the expandable properties names of a given itemId |
collectionEditorPresenter, elementViewList, propertyPresenter, viewsProvider| Constructor and Description |
|---|
ItemElementPresenter() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addExpandableItemElementView(ItemElementView containerItemElementView,
Map<String,String> propertiesMap,
String expandablePropertyName) |
protected String |
generateExpandableItemElementID(ItemElementView itemElementView,
String expandablePropertyName) |
Map<String,Map<String,Map<String,String>>> |
getExpandableItemsProperties()
Retrieves a
Map with the Maps of all the items' nested properties |
com.google.gwt.dom.client.LIElement |
getItemContainer(String itemId,
Map<String,String> simplePropertiesMap,
Map<String,Map<String,String>> expandablePropertiesValues) |
Map<String,Map<String,String>> |
getSimpleItemsProperties()
Retrieves a
Map with the Maps of all the items' simple properties |
void |
onDeleteItem(ItemElementView itemElementView)
Delete the item and its properties shown on the given
itemElementView |
void |
onEditItem(ItemElementView itemElementView)
Start editing properties of the given
itemElementView |
void |
onStopEditingItem(ItemElementView itemElementView)
Stop editing properties of the given
itemElementView
without updating the properties |
void |
onToggleRowExpansion(ItemElementView itemElementView,
boolean isShown) |
void |
updateItem(ItemElementView itemElementView)
Update the values of the properties shown in the given
itemElementView
and stop the editing mode |
onToggleRowExpansion, remove, setCollectionEditorPresenter, toggleEditingStatus, updateCommonToggleStatusclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonToggleRowExpansion, remove, setCollectionEditorPresenter, toggleEditingStatus, updateCommonToggleStatuspublic com.google.gwt.dom.client.LIElement getItemContainer(String itemId, Map<String,String> simplePropertiesMap, Map<String,Map<String,String>> expandablePropertiesValues)
getItemContainer in interface ItemElementView.PresenteritemId - the id of the current itemsimplePropertiesMap - the properties to be put inside the UListElementexpandablePropertiesValues - representing a single item of the listLIElement representing all the items of the listpublic void onToggleRowExpansion(ItemElementView itemElementView, boolean isShown)
onToggleRowExpansion in interface ElementView.Presenter<ItemElementView>public void onEditItem(ItemElementView itemElementView)
ElementView.PresenteritemElementViewonEditItem in interface ElementView.Presenter<ItemElementView>public void onStopEditingItem(ItemElementView itemElementView)
ElementView.PresenteritemElementView
without updating the propertiesonStopEditingItem in interface ElementView.Presenter<ItemElementView>public void updateItem(ItemElementView itemElementView)
ElementView.PresenteritemElementView
and stop the editing modeupdateItem in interface ElementView.Presenter<ItemElementView>public void onDeleteItem(ItemElementView itemElementView)
ElementView.PresenteritemElementViewonDeleteItem in interface ElementView.Presenter<ItemElementView>public Map<String,Map<String,String>> getSimpleItemsProperties()
ItemElementView.PresenterMap with the Maps of all the items' simple propertiesgetSimpleItemsProperties in interface ItemElementView.PresenterMap where the key is the itemId of the item container, and the value is the map propertyName/propertyValuepublic Map<String,Map<String,Map<String,String>>> getExpandableItemsProperties()
ItemElementView.PresenterMap with the Maps of all the items' nested propertiesgetExpandableItemsProperties in interface ItemElementView.PresenterMap where the key is the itemId of the item container, and the value is the map of nested propertiesprotected void addExpandableItemElementView(ItemElementView containerItemElementView, Map<String,String> propertiesMap, String expandablePropertyName)
protected String generateExpandableItemElementID(ItemElementView itemElementView, String expandablePropertyName)
Copyright © 2001–2021 JBoss by Red Hat. All rights reserved.