P
- the type of presenter this view goes withpublic abstract class AbstractWorkbenchPanelView<P extends WorkbenchPanelPresenter> extends com.google.gwt.user.client.ui.ResizeComposite implements WorkbenchPanelView<P>
Modifier and Type | Field and Description |
---|---|
protected LayoutSelection |
layoutSelection |
protected PanelManager |
panelManager |
protected P |
presenter |
Constructor and Description |
---|
AbstractWorkbenchPanelView() |
Modifier and Type | Method and Description |
---|---|
protected void |
addOnFocusHandler(MultiPartWidget widget) |
void |
addPanel(PanelDefinition panel,
WorkbenchPanelView<?> view,
Position position)
Throws
UnsupportedOperationException when called. |
protected void |
addSelectionHandler(com.google.gwt.event.logical.shared.HasSelectionHandlers<PartDefinition> widget) |
com.google.gwt.user.client.ui.Widget |
getPartDropRegion()
This implementation returns null, meaning this panel does not support parts being dropped on it.
|
P |
getPresenter()
Returns this view's presenter.
|
void |
maximize()
Maximizes this view using
WorkbenchLayout.maximize(Widget) . |
boolean |
removePanel(WorkbenchPanelView<?> child)
Throws
UnsupportedOperationException when called. |
void |
setElementId(String elementId)
Sets the ID of the physical root element of this view.
|
String |
toString() |
void |
unmaximize()
Restores this view to its original unmaximized size and position using
WorkbenchLayout.unmaximize(Widget) . |
claimElement, getWidget, initializeClaimedElement, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addPart, changeTitle, getParts, removePart, selectPart, setFocus
init
@Inject protected PanelManager panelManager
@Inject protected LayoutSelection layoutSelection
protected P extends WorkbenchPanelPresenter presenter
public void addPanel(PanelDefinition panel, WorkbenchPanelView<?> view, Position position)
UnsupportedOperationException
when called. Subclasses that wish to support child panels should
override this and removePanel(WorkbenchPanelView)
.addPanel
in interface WorkbenchPanelView<P extends WorkbenchPanelPresenter>
panel
- specifies the size that should be imposed on the nested view. Must not be null. FIXME: is this
sensible/correct?view
- the panel to nest inside this one. Must not be null.position
- specifies which edge of this panel will be shared with the nested panel. Must not be null.public boolean removePanel(WorkbenchPanelView<?> child)
UnsupportedOperationException
when called. Subclasses that wish to support child panels should
override this and addPanel(PanelDefinition, WorkbenchPanelView, Position)
.removePanel
in interface WorkbenchPanelView<P extends WorkbenchPanelPresenter>
public P getPresenter()
WorkbenchPanelView
getPresenter
in interface WorkbenchPanelView<P extends WorkbenchPanelPresenter>
HasPresenter.init(Object)
; afterward, the return value is never null.protected void addOnFocusHandler(MultiPartWidget widget)
protected void addSelectionHandler(com.google.gwt.event.logical.shared.HasSelectionHandlers<PartDefinition> widget)
public void setElementId(String elementId)
WorkbenchPanelView
id
attribute of
the view's top-level DOM element. Implementations for other view technologies should map this to whatever the
underlying widget/component system uses for unique identifiers.setElementId
in interface WorkbenchPanelView<P extends WorkbenchPanelPresenter>
elementId
- the element ID to set. If null, the ID value will be cleared.public String toString()
toString
in class com.google.gwt.user.client.ui.UIObject
public com.google.gwt.user.client.ui.Widget getPartDropRegion()
getPartDropRegion
in interface WorkbenchPanelView<P extends WorkbenchPanelPresenter>
IsWidget.asWidget()
. For fancier panels, this will typically be some child panel within the view's
internal structure.
If the return value is null, parts will not be droppable on this view.
public void maximize()
WorkbenchPanelView
WorkbenchLayout.maximize(Widget)
.maximize
in interface WorkbenchPanelView<P extends WorkbenchPanelPresenter>
public void unmaximize()
WorkbenchPanelView
WorkbenchLayout.unmaximize(Widget)
.unmaximize
in interface WorkbenchPanelView<P extends WorkbenchPanelPresenter>
Copyright © 2012–2020 JBoss by Red Hat. All rights reserved.