Class AbstractSubDockPresenter<T extends SubDockView>
- java.lang.Object
-
- org.drools.workbench.screens.scenariosimulation.client.rightpanel.AbstractSubDockPresenter<T>
-
- All Implemented Interfaces:
SubDockView.Presenter
- Direct Known Subclasses:
CheatSheetPresenter,SettingsPresenter,TestToolsPresenter
public abstract class AbstractSubDockPresenter<T extends SubDockView> extends Object implements SubDockView.Presenter
-
-
Field Summary
Fields Modifier and Type Field Description protected org.uberfire.backend.vfs.ObservablePathcurrentPathstatic intDEFAULT_PREFERRED_WIDHTprotected Stringtitleprotected Tview
-
Constructor Summary
Constructors Constructor Description AbstractSubDockPresenter()AbstractSubDockPresenter(T view)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.gwt.user.client.ui.WidgetasWidget()org.uberfire.workbench.model.PositiongetDefaultPosition()StringgetTitle()booleanisCurrentlyShow(org.uberfire.backend.vfs.ObservablePath path)Verify if the currentSubDockalready shows data of the currently shown editor.voidsetCurrentPath(org.uberfire.backend.vfs.ObservablePath path)Set theObservablePathof the currently shown editor viewvoidsetup()-
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.rightpanel.SubDockView.Presenter
reset
-
-
-
-
Field Detail
-
DEFAULT_PREFERRED_WIDHT
public static final int DEFAULT_PREFERRED_WIDHT
- See Also:
- Constant Field Values
-
title
protected String title
-
view
protected T extends SubDockView view
-
currentPath
protected org.uberfire.backend.vfs.ObservablePath currentPath
-
-
Constructor Detail
-
AbstractSubDockPresenter
public AbstractSubDockPresenter()
-
AbstractSubDockPresenter
public AbstractSubDockPresenter(T view)
-
-
Method Detail
-
setup
@PostConstruct public void setup()
-
getDefaultPosition
public org.uberfire.workbench.model.Position getDefaultPosition()
-
getTitle
public String getTitle()
-
asWidget
public com.google.gwt.user.client.ui.Widget asWidget()
-
setCurrentPath
public void setCurrentPath(org.uberfire.backend.vfs.ObservablePath path)
Description copied from interface:SubDockView.PresenterSet theObservablePathof the currently shown editor view- Specified by:
setCurrentPathin interfaceSubDockView.Presenter
-
isCurrentlyShow
public boolean isCurrentlyShow(org.uberfire.backend.vfs.ObservablePath path)
Description copied from interface:SubDockView.PresenterVerify if the currentSubDockalready shows data of the currently shown editor. This is used to avoid unneeded re-population of theSubDock- Specified by:
isCurrentlyShowin interfaceSubDockView.Presenter- Returns:
trueif givenObservablePathis equals to the current path of thisSubDock
-
-