@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()
WorkbenchLayoutRootLayoutPanel.getRoot in interface WorkbenchLayoutpublic com.google.gwt.user.client.ui.HasWidgets getPerspectiveContainer()
WorkbenchLayoutgetPerspectiveContainer in interface WorkbenchLayoutpublic void onBootstrap()
WorkbenchLayoutWorkbench
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()
WorkbenchLayoutWorkbench 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 WorkbenchLayoutpublic void resizeTo(int width,
int height)
WorkbenchLayoutresizeTo in interface WorkbenchLayoutpublic void maximize(com.google.gwt.user.client.ui.Widget w)
WorkbenchLayoutmaximize in interface WorkbenchLayoutw - the Widget to maximize.public void maximize(com.google.gwt.user.client.ui.Widget w,
Command callback)
WorkbenchLayoutmaximize in interface WorkbenchLayoutw - 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)
WorkbenchLayoutWorkbenchLayout.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 WorkbenchLayoutw - the Widget to restore to its original size and location.public void unmaximize(com.google.gwt.user.client.ui.Widget w,
Command callback)
WorkbenchLayoutWorkbenchLayout.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 WorkbenchLayoutw - 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)
WorkbenchLayoutsetMarginWidgets 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.