Class ElementPresenter<E extends ElementView>
- java.lang.Object
-
- org.drools.workbench.screens.scenariosimulation.client.collectioneditor.ElementPresenter<E>
-
- All Implemented Interfaces:
ElementView.Presenter<E>
- Direct Known Subclasses:
ItemElementPresenter,KeyValueElementPresenter
public abstract class ElementPresenter<E extends ElementView> extends Object implements ElementView.Presenter<E>
-
-
Field Summary
Fields Modifier and Type Field Description protected CollectionView.PresentercollectionEditorPresenterprotected List<E>elementViewListListof currently presentElementViewsprotected PropertyView.PresenterpropertyPresenterprotected ViewsProviderviewsProvider
-
Constructor Summary
Constructors Constructor Description ElementPresenter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonToggleRowExpansion(boolean isShown)voidremove()Completely remove the elements of the givenCollectionvoidsetCollectionEditorPresenter(CollectionView.Presenter collectionEditorPresenter)voidtoggleEditingStatus(boolean toDisable)voidupdateCommonToggleStatus(boolean isShown)Update the toggle status of the main collection container if all the containedElementViewhave the same one-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.drools.workbench.screens.scenariosimulation.client.collectioneditor.ElementView.Presenter
onDeleteItem, onEditItem, onStopEditingItem, onToggleRowExpansion, updateItem
-
-
-
-
Field Detail
-
collectionEditorPresenter
protected CollectionView.Presenter collectionEditorPresenter
-
propertyPresenter
@Inject protected PropertyView.Presenter propertyPresenter
-
viewsProvider
@Inject protected ViewsProvider viewsProvider
-
elementViewList
protected List<E extends ElementView> elementViewList
Listof currently presentElementViews
-
-
Method Detail
-
setCollectionEditorPresenter
public void setCollectionEditorPresenter(CollectionView.Presenter collectionEditorPresenter)
- Specified by:
setCollectionEditorPresenterin interfaceElementView.Presenter<E extends ElementView>
-
onToggleRowExpansion
public void onToggleRowExpansion(boolean isShown)
- Specified by:
onToggleRowExpansionin interfaceElementView.Presenter<E extends ElementView>- Parameters:
isShown- The current status of theElementView
-
updateCommonToggleStatus
public void updateCommonToggleStatus(boolean isShown)
Description copied from interface:ElementView.PresenterUpdate the toggle status of the main collection container if all the containedElementViewhave the same one- Specified by:
updateCommonToggleStatusin interfaceElementView.Presenter<E extends ElementView>
-
remove
public void remove()
Description copied from interface:ElementView.PresenterCompletely remove the elements of the givenCollection- Specified by:
removein interfaceElementView.Presenter<E extends ElementView>
-
toggleEditingStatus
public void toggleEditingStatus(boolean toDisable)
- Specified by:
toggleEditingStatusin interfaceElementView.Presenter<E extends ElementView>
-
-