@Dependent @Named(value="StaticWorkbenchPanelView") public class StaticWorkbenchPanelView extends AbstractWorkbenchPanelView<StaticWorkbenchPanelPresenter>
StaticWorkbenchPanelPresenter.layoutSelection, panelManager, presenter| Constructor and Description |
|---|
StaticWorkbenchPanelView() |
| Modifier and Type | Method and Description |
|---|---|
void |
addPart(WorkbenchPartPresenter.View view)
Adds the given part view to this panel if this panel does not already contain a view that handles the same
PlaceRequest as the given one. |
void |
changeTitle(PartDefinition part,
String title,
com.google.gwt.user.client.ui.IsWidget titleDecoration)
Assigns the given title to the given part, if the part belongs to this panel.
|
StaticFocusedResizePanel |
getPanel() |
Collection<PartDefinition> |
getParts()
Returns the parts currently held by the view.
|
StaticWorkbenchPanelPresenter |
getPresenter()
Returns this view's presenter.
|
com.google.gwt.user.client.ui.Widget |
getWidget() |
void |
init(StaticWorkbenchPanelPresenter presenter) |
void |
onResize() |
boolean |
removePart(PartDefinition part)
Removes the given part from this view, if it belonged to this view.
|
boolean |
selectPart(PartDefinition part)
Makes the given part visible and focused, if it belongs to this view.
|
void |
setFocus(boolean hasFocus)
Informs this view that it has gained or lost keyboard focus.
|
addOnFocusHandler, addPanel, addSelectionHandler, getPartDropRegion, maximize, removePanel, setElementId, toString, unmaximizeclaimElement, initializeClaimedElement, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidgetaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEventsaddStyleDependentName, 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, sinkBitlessEventpublic com.google.gwt.user.client.ui.Widget getWidget()
getWidget in class com.google.gwt.user.client.ui.Compositepublic StaticFocusedResizePanel getPanel()
public void init(StaticWorkbenchPanelPresenter presenter)
public StaticWorkbenchPanelPresenter getPresenter()
WorkbenchPanelViewgetPresenter in interface WorkbenchPanelView<StaticWorkbenchPanelPresenter>getPresenter in class AbstractWorkbenchPanelView<StaticWorkbenchPanelPresenter>HasPresenter.init(Object); afterward, the return value is never null.public void addPart(WorkbenchPartPresenter.View view)
WorkbenchPanelViewPlaceRequest as the given one. If this panel does already contain such a part, the existing one is
selected and the given one is not added.view - the view to add as long as it is not a duplicate. Must not be null.public void changeTitle(PartDefinition part, String title, com.google.gwt.user.client.ui.IsWidget titleDecoration)
WorkbenchPanelViewpart - the part whose title to change. Must not be null.title - the new title. Must not be null.titleDecoration - An optional widget to display beside the title. Note that some implementations do not support title
decorations, and they will ignore this. Null is permitted, and means no decoration.public boolean selectPart(PartDefinition part)
WorkbenchPanelViewpart - the part to reveal and give focus to.public boolean removePart(PartDefinition part)
WorkbenchPanelViewpart - the part to remove.public void setFocus(boolean hasFocus)
WorkbenchPanelViewhasFocus - if true, this panel now has focus. If false, this panel does not have focus.public void onResize()
onResize in interface com.google.gwt.user.client.ui.RequiresResizeonResize in class com.google.gwt.user.client.ui.ResizeCompositepublic Collection<PartDefinition> getParts()
WorkbenchPanelViewCopyright © 2012–2020 JBoss by Red Hat. All rights reserved.