public class DetachablePanel extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
DetachablePanel.DetachablePanelHandler |
Constructor and Description |
---|
DetachablePanel(com.extjs.gxt.ui.client.widget.LayoutContainer container,
String title,
String id,
boolean modal)
A detachable panel is created by specifying the widget
suitable to contain it.
|
Modifier and Type | Method and Description |
---|---|
void |
addHandler(DetachablePanel.DetachablePanelHandler handler) |
com.extjs.gxt.ui.client.widget.ContentPanel |
getRootPanel() |
com.extjs.gxt.ui.client.widget.toolbar.ToolBar |
getToolBar()
Return the panel toolbar.
|
void |
insertMainWidget(com.extjs.gxt.ui.client.widget.Component widget) |
void |
layout(boolean force) |
protected void |
onDetach()
This method is called every time the panel is detached
from its parent.
|
protected void |
onEmbed()
This method is called once the detached panel is embedded
inside its container.
|
void |
removeHandler(DetachablePanel.DetachablePanelHandler handler) |
public DetachablePanel(com.extjs.gxt.ui.client.widget.LayoutContainer container, String title, String id, boolean modal) throws org.gcube.resourcemanagement.support.shared.exceptions.InvalidParameterException
container
- the widget that will embed the panelmodal
- if the detached window must be modalorg.gcube.resourcemanagement.support.shared.exceptions.InvalidParameterException
public final com.extjs.gxt.ui.client.widget.toolbar.ToolBar getToolBar()
Notice that the button for detaching the panel from its parent must not be removed to keep its functionality.
public final com.extjs.gxt.ui.client.widget.ContentPanel getRootPanel()
protected final void onDetach()
protected final void onEmbed()
public final void insertMainWidget(com.extjs.gxt.ui.client.widget.Component widget)
public final void layout(boolean force)
public final void addHandler(DetachablePanel.DetachablePanelHandler handler)
public final void removeHandler(DetachablePanel.DetachablePanelHandler handler)
Copyright © 2014. All Rights Reserved.