public static interface CollectionView.Presenter
| Modifier and Type | Method and Description |
|---|---|
void |
addListItem(Map<String,String> propertiesValues)
Creates a new single item element with values taken from given
Map |
void |
addMapItem(Map<String,String> keyPropertiesValues,
Map<String,String> valuePropertiesValues)
Creates a new key/value item element with values taken from given
Map |
void |
initListStructure(String key,
Map<String,String> instancePropertyMap,
CollectionView collectionEditorView)
Actual implementations should invoke this method first to retrieve information about the collection
generic type and the structure of such type
|
void |
initMapStructure(String key,
Map<String,String> keyPropertyMap,
Map<String,String> valuePropertyMap,
CollectionView collectionEditorView)
Actual implementations should invoke this method first to retrieve information about the collection
generic type and the structure of such type
|
void |
onToggleRowExpansion(boolean isShown)
Toggle the expansion of the collection.
|
void |
remove()
Completely remove the given
Collection, i.e. set it to null |
void |
save()
Actual implementations are meant to retrieve the json representation of the content of the
current
CollectionEditorView and save it. |
void |
setValue(String jsonString)
Actual implementations are meant to transform that json representation to a
com.google.gwt.json.client.JSONValue and use that to populate the
current CollectionEditorView |
void |
showEditingBox()
Show the editing box in the current
CollectionEditorView |
void |
toggleEditingStatus(boolean toDisable)
Toggles the status of the addItem button
|
void initListStructure(String key, Map<String,String> instancePropertyMap, CollectionView collectionEditorView)
key - The key representing the property, i.e classname#propertyname (e.g Author#books)instancePropertyMap - collectionEditorView - void initMapStructure(String key, Map<String,String> keyPropertyMap, Map<String,String> valuePropertyMap, CollectionView collectionEditorView)
key - The key representing the property, i.e classname#propertyname (e.g Author#books)keyPropertyMap - valuePropertyMap - collectionEditorView - void setValue(String jsonString)
com.google.gwt.json.client.JSONValue and use that to populate the
current CollectionEditorViewjsonString - void showEditingBox()
CollectionEditorViewvoid onToggleRowExpansion(boolean isShown)
isShown - the current expansion status of the collectionvoid addListItem(Map<String,String> propertiesValues)
MappropertiesValues - void addMapItem(Map<String,String> keyPropertiesValues, Map<String,String> valuePropertiesValues)
MapkeyPropertiesValues - valuePropertiesValues - void save()
CollectionEditorView and save it.void remove()
Collection, i.e. set it to nullvoid toggleEditingStatus(boolean toDisable)
toDisable - Copyright © 2001–2019 JBoss by Red Hat. All rights reserved.