@Dependent @Named(value="UnanchoredStaticWorkbenchPanelView") public class UnanchoredStaticWorkbenchPanelView extends AbstractWorkbenchPanelView<UnanchoredStaticWorkbenchPanelPresenter>
UnanchoredStaticWorkbenchPanelPresenter.layoutSelection, panelManager, presenter| Constructor and Description |
|---|
UnanchoredStaticWorkbenchPanelView() |
| 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(org.uberfire.workbench.model.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<org.uberfire.workbench.model.PartDefinition> |
getParts()
Returns the parts currently held by the view.
|
UnanchoredStaticWorkbenchPanelPresenter |
getPresenter()
Returns this view's presenter.
|
com.google.gwt.user.client.ui.Widget |
getWidget() |
void |
init(UnanchoredStaticWorkbenchPanelPresenter presenter) |
void |
onResize() |
boolean |
removePart(org.uberfire.workbench.model.PartDefinition part)
Removes the given part from this view, if it belonged to this view.
|
boolean |
selectPart(org.uberfire.workbench.model.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(UnanchoredStaticWorkbenchPanelPresenter presenter)
public UnanchoredStaticWorkbenchPanelPresenter getPresenter()
WorkbenchPanelViewgetPresenter in interface WorkbenchPanelView<UnanchoredStaticWorkbenchPanelPresenter>getPresenter in class AbstractWorkbenchPanelView<UnanchoredStaticWorkbenchPanelPresenter>UberView.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(org.uberfire.workbench.model.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(org.uberfire.workbench.model.PartDefinition part)
WorkbenchPanelViewpart - the part to reveal and give focus to.public boolean removePart(org.uberfire.workbench.model.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<org.uberfire.workbench.model.PartDefinition> getParts()
WorkbenchPanelViewCopyright © 2012–2017 JBoss by Red Hat. All rights reserved.