Class UnanchoredStaticWorkbenchPanelView
- java.lang.Object
-
- com.google.gwt.user.client.ui.UIObject
-
- com.google.gwt.user.client.ui.Widget
-
- com.google.gwt.user.client.ui.Composite
-
- com.google.gwt.user.client.ui.ResizeComposite
-
- org.uberfire.client.workbench.panels.impl.AbstractWorkbenchPanelView<UnanchoredStaticWorkbenchPanelPresenter>
-
- org.uberfire.client.workbench.panels.impl.UnanchoredStaticWorkbenchPanelView
-
- All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers,com.google.gwt.event.shared.HasHandlers,com.google.gwt.user.client.EventListener,com.google.gwt.user.client.ui.HasVisibility,com.google.gwt.user.client.ui.IsRenderable,com.google.gwt.user.client.ui.IsWidget,com.google.gwt.user.client.ui.RequiresResize,org.uberfire.client.mvp.HasPresenter<UnanchoredStaticWorkbenchPanelPresenter>,org.uberfire.client.mvp.UberView<UnanchoredStaticWorkbenchPanelPresenter>,WorkbenchPanelView<UnanchoredStaticWorkbenchPanelPresenter>
@Dependent @Named("UnanchoredStaticWorkbenchPanelView") public class UnanchoredStaticWorkbenchPanelView extends AbstractWorkbenchPanelView<UnanchoredStaticWorkbenchPanelPresenter>The view component ofUnanchoredStaticWorkbenchPanelPresenter.
-
-
Field Summary
-
Fields inherited from class org.uberfire.client.workbench.panels.impl.AbstractWorkbenchPanelView
layoutSelection, panelManager, presenter
-
-
Constructor Summary
Constructors Constructor Description UnanchoredStaticWorkbenchPanelView()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddPart(WorkbenchPartPresenter.View view)Adds the given part view to this panel if this panel does not already contain a view that handles the samePlaceRequestas the given one.voidchangeTitle(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.StaticFocusedResizePanelgetPanel()Collection<org.uberfire.workbench.model.PartDefinition>getParts()Returns the parts currently held by the view.UnanchoredStaticWorkbenchPanelPresentergetPresenter()Returns this view's presenter.com.google.gwt.user.client.ui.WidgetgetWidget()voidinit(UnanchoredStaticWorkbenchPanelPresenter presenter)voidonResize()booleanremovePart(org.uberfire.workbench.model.PartDefinition part)Removes the given part from this view, if it belonged to this view.booleanselectPart(org.uberfire.workbench.model.PartDefinition part)Makes the given part visible and focused, if it belongs to this view.voidsetFocus(boolean hasFocus)Informs this view that it has gained or lost keyboard focus.-
Methods inherited from class org.uberfire.client.workbench.panels.impl.AbstractWorkbenchPanelView
addOnFocusHandler, addPanel, addSelectionHandler, getPartDropRegion, maximize, removePanel, setElementId, toString, unmaximize
-
Methods inherited from class com.google.gwt.user.client.ui.Composite
claimElement, initializeClaimedElement, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidget
-
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
-
Methods inherited from class com.google.gwt.user.client.ui.UIObject
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
-
-
-
-
Method Detail
-
getWidget
public com.google.gwt.user.client.ui.Widget getWidget()
- Overrides:
getWidgetin classcom.google.gwt.user.client.ui.Composite
-
getPanel
public StaticFocusedResizePanel getPanel()
-
init
public void init(UnanchoredStaticWorkbenchPanelPresenter presenter)
-
getPresenter
public UnanchoredStaticWorkbenchPanelPresenter getPresenter()
Description copied from interface:WorkbenchPanelViewReturns this view's presenter.- Specified by:
getPresenterin interfaceWorkbenchPanelView<UnanchoredStaticWorkbenchPanelPresenter>- Overrides:
getPresenterin classAbstractWorkbenchPanelView<UnanchoredStaticWorkbenchPanelPresenter>- Returns:
- the presenter that this view is bound to. Will return null if invoked before the presenter calls
HasPresenter.init(Object); afterward, the return value is never null.
-
addPart
public void addPart(WorkbenchPartPresenter.View view)
Description copied from interface:WorkbenchPanelViewAdds the given part view to this panel if this panel does not already contain a view that handles the samePlaceRequestas the given one. If this panel does already contain such a part, the existing one isselectedand the given one is not added.- Parameters:
view- the view to add as long as it is not a duplicate. Must not be null.
-
changeTitle
public void changeTitle(org.uberfire.workbench.model.PartDefinition part, String title, com.google.gwt.user.client.ui.IsWidget titleDecoration)Description copied from interface:WorkbenchPanelViewAssigns the given title to the given part, if the part belongs to this panel.- Parameters:
part- 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.
-
selectPart
public boolean selectPart(org.uberfire.workbench.model.PartDefinition part)
Description copied from interface:WorkbenchPanelViewMakes the given part visible and focused, if it belongs to this view.- Parameters:
part- the part to reveal and give focus to.- Returns:
- true if the part was found, made visible, and given focus. False if not.
-
removePart
public boolean removePart(org.uberfire.workbench.model.PartDefinition part)
Description copied from interface:WorkbenchPanelViewRemoves the given part from this view, if it belonged to this view.- Parameters:
part- the part to remove.- Returns:
- true if the part was found and removed. False if not.
-
setFocus
public void setFocus(boolean hasFocus)
Description copied from interface:WorkbenchPanelViewInforms this view that it has gained or lost keyboard focus. Focused views may respond by updating their style to look more prominent than unfocused views.- Parameters:
hasFocus- if true, this panel now has focus. If false, this panel does not have focus.
-
onResize
public void onResize()
- Specified by:
onResizein interfacecom.google.gwt.user.client.ui.RequiresResize- Overrides:
onResizein classcom.google.gwt.user.client.ui.ResizeComposite
-
getParts
public Collection<org.uberfire.workbench.model.PartDefinition> getParts()
Description copied from interface:WorkbenchPanelViewReturns the parts currently held by the view.
-
-