public interface CollectionView
Modifier and Type | Interface and Description |
---|---|
static interface |
CollectionView.Presenter |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the current
CollectionView |
com.google.gwt.dom.client.ButtonElement |
getAddItemButton() |
com.google.gwt.dom.client.ButtonElement |
getCancelButton() |
com.google.gwt.dom.client.HeadingElement |
getEditorTitle() |
com.google.gwt.dom.client.UListElement |
getElementsContainer() |
com.google.gwt.dom.client.LIElement |
getObjectSeparator() |
com.google.gwt.dom.client.SpanElement |
getPropertyTitle() |
com.google.gwt.dom.client.ButtonElement |
getRemoveButton() |
com.google.gwt.dom.client.ButtonElement |
getSaveButton() |
String |
getValue()
Actual implementations are meant to call the
Presenter to retrieve the json representation of their contents |
void |
initListStructure(String key,
Map<String,String> instancePropertyMap,
Map<String,Map<String,String>> expandablePropertiesMap)
Set the name of the property and the
Map to be used to create the skeleton of the current CollectionViewImpl editor
showing a List of elements |
void |
initMapStructure(String key,
Map<String,String> keyPropertyMap,
Map<String,String> valuePropertyMap)
Set the name of the property and the
Map s to be used to create the skeleton of the current CollectionViewImpl editor
showing a Map of elements |
boolean |
isListWidget()
Returns
true if the current instance will manage a List ,
false for a Map . |
void |
setFixedHeight(double value,
com.google.gwt.dom.client.Style.Unit px) |
void |
setListWidget(boolean listWidget) |
void |
setValue(String jsonString)
Actual implementations are meant to call the
Presenter to be populated by this json representation |
void |
toggleRowExpansion() |
void |
updateRowExpansionStatus(boolean isShown)
Updates the expanded status of main collection container to reflect
the status of all contained items, when they have the same expanded status
|
void |
updateValue(String toString)
Updates the json representation of the values shown by this editor
|
void setValue(String jsonString)
Presenter
to be populated by this json representationjsonString
- String getValue()
Presenter
to retrieve the json representation of their contentsvoid setListWidget(boolean listWidget)
listWidget
- set to true
if the current instance will manage a List
,
false
for a Map
.boolean isListWidget()
true
if the current instance will manage a List
,
false
for a Map
.com.google.gwt.dom.client.UListElement getElementsContainer()
com.google.gwt.dom.client.LIElement getObjectSeparator()
com.google.gwt.dom.client.HeadingElement getEditorTitle()
com.google.gwt.dom.client.SpanElement getPropertyTitle()
com.google.gwt.dom.client.ButtonElement getAddItemButton()
com.google.gwt.dom.client.ButtonElement getCancelButton()
com.google.gwt.dom.client.ButtonElement getRemoveButton()
com.google.gwt.dom.client.ButtonElement getSaveButton()
void toggleRowExpansion()
void updateRowExpansionStatus(boolean isShown)
isShown
- the current expansion status of the collectionvoid updateValue(String toString)
toString
- void close()
CollectionView
void initListStructure(String key, Map<String,String> instancePropertyMap, Map<String,Map<String,String>> expandablePropertiesMap)
Map
to be used to create the skeleton of the current CollectionViewImpl
editor
showing a List of elementskey
- The key representing the property, i.e Classname#propertyname (e.g Author#books)instancePropertyMap
- expandablePropertiesMap
- void initMapStructure(String key, Map<String,String> keyPropertyMap, Map<String,String> valuePropertyMap)
Map
s to be used to create the skeleton of the current CollectionViewImpl
editor
showing a Map of elementskey
- The key representing the property, i.e Classname#propertyname (e.g Author#books)keyPropertyMap
- valuePropertyMap
- void setFixedHeight(double value, com.google.gwt.dom.client.Style.Unit px)
Copyright © 2001–2019 JBoss by Red Hat. All rights reserved.