public abstract class AbstractSubDockPresenter<T extends SubDockView> extends Object implements SubDockView.Presenter
Modifier and Type | Field and Description |
---|---|
protected org.uberfire.backend.vfs.ObservablePath |
currentPath |
static int |
DEFAULT_PREFERRED_WIDHT |
protected String |
title |
protected T |
view |
Constructor and Description |
---|
AbstractSubDockPresenter() |
AbstractSubDockPresenter(T view) |
Modifier and Type | Method and Description |
---|---|
com.google.gwt.user.client.ui.Widget |
asWidget() |
org.uberfire.workbench.model.Position |
getDefaultPosition() |
String |
getTitle() |
boolean |
isCurrentlyShow(org.uberfire.backend.vfs.ObservablePath path)
Verify if the current
SubDock already shows data of the currently shown editor. |
void |
setCurrentPath(org.uberfire.backend.vfs.ObservablePath path)
Set the
ObservablePath of the currently shown editor view |
void |
setup() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
reset
public static final int DEFAULT_PREFERRED_WIDHT
protected String title
protected T extends SubDockView view
protected org.uberfire.backend.vfs.ObservablePath currentPath
public AbstractSubDockPresenter()
public AbstractSubDockPresenter(T view)
@PostConstruct public void setup()
public org.uberfire.workbench.model.Position getDefaultPosition()
public String getTitle()
public com.google.gwt.user.client.ui.Widget asWidget()
public void setCurrentPath(org.uberfire.backend.vfs.ObservablePath path)
SubDockView.Presenter
ObservablePath
of the currently shown editor viewsetCurrentPath
in interface SubDockView.Presenter
public boolean isCurrentlyShow(org.uberfire.backend.vfs.ObservablePath path)
SubDockView.Presenter
SubDock
already shows data of the currently shown editor.
This is used to avoid unneeded re-population of the SubDock
isCurrentlyShow
in interface SubDockView.Presenter
true
if given ObservablePath
is equals to the current path of this SubDock
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.