@ApplicationScoped public class WorkbenchLayoutImpl extends Object implements WorkbenchLayout
Modifier and Type | Class and Description |
---|---|
protected static class |
WorkbenchLayoutImpl.AbstractResizeAnimation |
protected static class |
WorkbenchLayoutImpl.CollapseAnimation |
protected static class |
WorkbenchLayoutImpl.ExpandAnimation |
protected static class |
WorkbenchLayoutImpl.OriginalStyleInfo
Holder for style information that was modified in order to maximize a panel.
|
Modifier and Type | Field and Description |
---|---|
static String |
UF_MAXIMIZED_PANEL |
static String |
UF_ROOT_CSS_CLASS |
Constructor and Description |
---|
WorkbenchLayoutImpl() |
WorkbenchLayoutImpl(org.jboss.errai.ioc.client.container.SyncBeanManager iocManager,
com.google.gwt.user.client.ui.HeaderPanel root,
WorkbenchDragAndDropManager dndManager,
UberfireDocksContainer uberfireDocksContainer,
WorkbenchPickupDragController dragController,
org.jboss.errai.common.client.dom.Div headerPanel,
org.jboss.errai.common.client.dom.Div footerPanel) |
Modifier and Type | Method and Description |
---|---|
void |
addWorkbenchProfileCssClass(WorkbenchProfileCssClass workbenchProfileCssClass) |
protected org.jboss.errai.common.client.dom.Div |
getFooterPanel() |
protected org.jboss.errai.common.client.dom.Div |
getHeaderPanel() |
com.google.gwt.user.client.ui.HasWidgets |
getPerspectiveContainer()
Gives access to the element of the workbench that hosts perspective widgets.
|
com.google.gwt.user.client.ui.HeaderPanel |
getRoot()
Gives access to the root container element that will be attached to the
RootLayoutPanel . |
void |
maximize(com.google.gwt.user.client.ui.Widget w)
Makes the given widget fill the entire space normally dedicated to the perspective container.
|
void |
maximize(com.google.gwt.user.client.ui.Widget w,
Command callback)
Makes the given widget fill the entire space normally dedicated to the perspective container.
|
void |
onBootstrap()
Will be invoked by the
Workbench
when the discovery of header and footer elements is completed. |
void |
onResize()
The
Workbench listens for resize events and hands them off
to the layout. |
void |
resizeTo(int width,
int height)
|
void |
setMarginWidgets(boolean isStandaloneMode,
Set<String> headersToKeep)
Will insert the implementations of Header and Footer in the Workbench
|
void |
unmaximize(com.google.gwt.user.client.ui.Widget w)
Restores a previously maximized widget to its original size and position.
|
void |
unmaximize(com.google.gwt.user.client.ui.Widget w,
Command callback)
Restores a previously maximized widget to its original size and position.
|
public static final String UF_MAXIMIZED_PANEL
public static final String UF_ROOT_CSS_CLASS
public WorkbenchLayoutImpl()
@Inject public WorkbenchLayoutImpl(org.jboss.errai.ioc.client.container.SyncBeanManager iocManager, com.google.gwt.user.client.ui.HeaderPanel root, WorkbenchDragAndDropManager dndManager, UberfireDocksContainer uberfireDocksContainer, WorkbenchPickupDragController dragController, org.jboss.errai.common.client.dom.Div headerPanel, org.jboss.errai.common.client.dom.Div footerPanel)
public com.google.gwt.user.client.ui.HeaderPanel getRoot()
WorkbenchLayout
RootLayoutPanel
.getRoot
in interface WorkbenchLayout
public com.google.gwt.user.client.ui.HasWidgets getPerspectiveContainer()
WorkbenchLayout
getPerspectiveContainer
in interface WorkbenchLayout
public void onBootstrap()
WorkbenchLayout
Workbench
when the discovery of header and footer elements is completed.onBootstrap
in interface WorkbenchLayout
#setHeaderContents(java.util.List)}
,
#setFooterContents(java.util.List)}
public void onResize()
WorkbenchLayout
Workbench
listens for resize events and hands them off
to the layout. Not needed if your layout is based on LayoutPanel
's.
Kept for backwards compatibility.onResize
in interface WorkbenchLayout
public void resizeTo(int width, int height)
WorkbenchLayout
resizeTo
in interface WorkbenchLayout
public void maximize(com.google.gwt.user.client.ui.Widget w)
WorkbenchLayout
maximize
in interface WorkbenchLayout
w
- the Widget to maximize.public void maximize(com.google.gwt.user.client.ui.Widget w, Command callback)
WorkbenchLayout
maximize
in interface WorkbenchLayout
w
- the Widget to maximize.callback
- A command to be executed after the maximization is fully completed.public void unmaximize(com.google.gwt.user.client.ui.Widget w)
WorkbenchLayout
WorkbenchLayout.maximize(Widget)
.
Important: this feature is used by panels to unmaximize themselves. You should not pass a WorkbenchPanelView
to this method yourself; instead, you should use the panel's own API to unmaximize it. You are free to use this method
to unmaximize your own widgets that have previously been passed to WorkbenchLayout.maximize(Widget)
.unmaximize
in interface WorkbenchLayout
w
- the Widget to restore to its original size and location.public void unmaximize(com.google.gwt.user.client.ui.Widget w, Command callback)
WorkbenchLayout
WorkbenchLayout.maximize(Widget)
.
Important: this feature is used by panels to unmaximize themselves. You should not pass a WorkbenchPanelView
to this method yourself; instead, you should use the panel's own API to unmaximize it. You are free to use this method
to unmaximize your own widgets that have previously been passed to WorkbenchLayout.maximize(Widget)
.unmaximize
in interface WorkbenchLayout
w
- the Widget to restore to its original size and location.callback
- A command to be executed after the unmaximization is fully completed.public void setMarginWidgets(boolean isStandaloneMode, Set<String> headersToKeep)
WorkbenchLayout
setMarginWidgets
in interface WorkbenchLayout
#setHeaderContents(java.util.List)}
,
#setFooterContents(java.util.List)}
public void addWorkbenchProfileCssClass(@Observes WorkbenchProfileCssClass workbenchProfileCssClass)
protected org.jboss.errai.common.client.dom.Div getHeaderPanel()
protected org.jboss.errai.common.client.dom.Div getFooterPanel()
Copyright © 2012–2020 JBoss by Red Hat. All rights reserved.