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) |
Map<String,Map<String,Map<String,String>>> |
getExpandableItemsProperties()
Retrieves a
Map with the Map s 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 Map s 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, updateCommonToggleStatus
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onToggleRowExpansion, remove, setCollectionEditorPresenter, toggleEditingStatus, updateCommonToggleStatus
public com.google.gwt.dom.client.LIElement getItemContainer(String itemId, Map<String,String> simplePropertiesMap, Map<String,Map<String,String>> expandablePropertiesValues)
getItemContainer
in interface ItemElementView.Presenter
itemId
- the id of the current itemsimplePropertiesMap
- the properties to be put inside the UListElement
expandablePropertiesValues
- 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.Presenter
itemElementView
onEditItem
in interface ElementView.Presenter<ItemElementView>
public void onStopEditingItem(ItemElementView itemElementView)
ElementView.Presenter
itemElementView
without updating the propertiesonStopEditingItem
in interface ElementView.Presenter<ItemElementView>
public void updateItem(ItemElementView itemElementView)
ElementView.Presenter
itemElementView
and stop the editing modeupdateItem
in interface ElementView.Presenter<ItemElementView>
public void onDeleteItem(ItemElementView itemElementView)
ElementView.Presenter
itemElementView
onDeleteItem
in interface ElementView.Presenter<ItemElementView>
public Map<String,Map<String,String>> getSimpleItemsProperties()
ItemElementView.Presenter
Map
with the Map
s of all the items' simple propertiesgetSimpleItemsProperties
in interface ItemElementView.Presenter
Map
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.Presenter
Map
with the Map
s of all the items' nested propertiesgetExpandableItemsProperties
in interface ItemElementView.Presenter
Map
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)
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.