public abstract class ElementPresenter<E extends ElementView> extends Object implements ElementView.Presenter<E>
| Modifier and Type | Field and Description |
|---|---|
protected CollectionView.Presenter |
collectionEditorPresenter |
protected List<E> |
elementViewList
List of currently present ElementViews |
protected PropertyView.Presenter |
propertyPresenter |
protected ViewsProvider |
viewsProvider |
| Constructor and Description |
|---|
ElementPresenter() |
| Modifier and Type | Method and Description |
|---|---|
void |
onToggleRowExpansion(boolean isShown) |
void |
remove()
Completely remove the elements of the given
Collection |
void |
setCollectionEditorPresenter(CollectionView.Presenter collectionEditorPresenter) |
void |
toggleEditingStatus(boolean toDisable) |
void |
updateCommonToggleStatus(boolean isShown)
Update the toggle status of the main collection container if all the contained
ElementView
have the same one |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonDeleteItem, onEditItem, onStopEditingItem, onToggleRowExpansion, updateItemprotected CollectionView.Presenter collectionEditorPresenter
@Inject protected PropertyView.Presenter propertyPresenter
@Inject protected ViewsProvider viewsProvider
protected List<E extends ElementView> elementViewList
List of currently present ElementViewspublic void setCollectionEditorPresenter(CollectionView.Presenter collectionEditorPresenter)
setCollectionEditorPresenter in interface ElementView.Presenter<E extends ElementView>public void onToggleRowExpansion(boolean isShown)
onToggleRowExpansion in interface ElementView.Presenter<E extends ElementView>isShown - The current status of the ElementViewpublic void updateCommonToggleStatus(boolean isShown)
ElementView.PresenterElementView
have the same oneupdateCommonToggleStatus in interface ElementView.Presenter<E extends ElementView>public void remove()
ElementView.PresenterCollectionremove in interface ElementView.Presenter<E extends ElementView>public void toggleEditingStatus(boolean toDisable)
toggleEditingStatus in interface ElementView.Presenter<E extends ElementView>Copyright © 2001–2021 JBoss by Red Hat. All rights reserved.