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 ElementView s |
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, wait
onDeleteItem, onEditItem, onStopEditingItem, onToggleRowExpansion, updateItem
protected CollectionView.Presenter collectionEditorPresenter
@Inject protected PropertyView.Presenter propertyPresenter
@Inject protected ViewsProvider viewsProvider
protected List<E extends ElementView> elementViewList
List
of currently present ElementView
spublic 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 ElementView
public void updateCommonToggleStatus(boolean isShown)
ElementView.Presenter
ElementView
have the same oneupdateCommonToggleStatus
in interface ElementView.Presenter<E extends ElementView>
public void remove()
ElementView.Presenter
Collection
remove
in interface ElementView.Presenter<E extends ElementView>
public void toggleEditingStatus(boolean toDisable)
toggleEditingStatus
in interface ElementView.Presenter<E extends ElementView>
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.