Interface ElementView.Presenter<E extends ElementView>
-
- All Known Subinterfaces:
ItemElementView.Presenter,KeyValueElementView.Presenter
- All Known Implementing Classes:
ElementPresenter,ItemElementPresenter,KeyValueElementPresenter
- Enclosing interface:
- ElementView<T extends ElementView.Presenter>
public static interface ElementView.Presenter<E extends ElementView>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonDeleteItem(E itemElementView)Delete the item and its properties shown on the givenitemElementViewvoidonEditItem(E itemElementView)Start editing properties of the givenitemElementViewvoidonStopEditingItem(E itemElementView)Stop editing properties of the givenitemElementViewwithout updating the propertiesvoidonToggleRowExpansion(boolean isShown)voidonToggleRowExpansion(E itemElementView, boolean shown)voidremove()Completely remove the elements of the givenCollectionvoidsetCollectionEditorPresenter(CollectionView.Presenter collectionEditorPresenter)voidtoggleEditingStatus(boolean toDisable)voidupdateCommonToggleStatus(boolean shown)Update the toggle status of the main collection container if all the containedElementViewhave the same onevoidupdateItem(E itemElementView)Update the values of the properties shown in the givenitemElementViewand stop the editing mode
-
-
-
Method Detail
-
setCollectionEditorPresenter
void setCollectionEditorPresenter(CollectionView.Presenter collectionEditorPresenter)
-
onToggleRowExpansion
void onToggleRowExpansion(boolean isShown)
- Parameters:
isShown- The current status of theElementView
-
onToggleRowExpansion
void onToggleRowExpansion(E itemElementView, boolean shown)
-
updateCommonToggleStatus
void updateCommonToggleStatus(boolean shown)
Update the toggle status of the main collection container if all the containedElementViewhave the same one- Parameters:
shown-
-
onEditItem
void onEditItem(E itemElementView)
Start editing properties of the givenitemElementView- Parameters:
itemElementView-
-
updateItem
void updateItem(E itemElementView)
Update the values of the properties shown in the givenitemElementViewand stop the editing mode- Parameters:
itemElementView-
-
onStopEditingItem
void onStopEditingItem(E itemElementView)
Stop editing properties of the givenitemElementViewwithout updating the properties- Parameters:
itemElementView-
-
onDeleteItem
void onDeleteItem(E itemElementView)
Delete the item and its properties shown on the givenitemElementView- Parameters:
itemElementView-
-
remove
void remove()
Completely remove the elements of the givenCollection
-
toggleEditingStatus
void toggleEditingStatus(boolean toDisable)
-
-