|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gcube.portlets.admin.resourcemanagement.client.widgets.panels.DetachablePanel
public class DetachablePanel
Consists of a panel that can be inserted inside a container and provides a functionality to be detached (and attached to it again). The detach button is executed in toggle mode. Once detached a dialog window is created to contain it.
Nested Class Summary | |
---|---|
static interface |
DetachablePanel.DetachablePanelHandler
|
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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 modal
org.gcube.resourcemanagement.support.shared.exceptions.InvalidParameterException
Method Detail |
---|
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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |