com.extjs.gxt.ui.client.widget
Class ContentPanel

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.extjs.gxt.ui.client.widget.Component
              extended by com.extjs.gxt.ui.client.widget.BoxComponent
                  extended by com.extjs.gxt.ui.client.widget.Container<T>
                      extended by com.extjs.gxt.ui.client.widget.ScrollContainer<Component>
                          extended by com.extjs.gxt.ui.client.widget.LayoutContainer
                              extended by com.extjs.gxt.ui.client.widget.ContentPanel
All Implemented Interfaces:
Observable, IconSupport, 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.IsWidget
Direct Known Subclasses:
ButtonGroup, CollapsePanel, FormPanel, Info, Portlet, RowEditor, Tip, Window

public class ContentPanel
extends LayoutContainer
implements IconSupport

ContentPanel is a component container that has specific functionality and structural components that make it the perfect building block for application-oriented user interfaces. The Panel contains bottom and top toolbars, along with separate header, footer and body sections. It also provides built-in expandable and collapsible behavior, along with a variety of pre-built tool buttons that can be wired up to provide other customized behavior. Code snippet:

 ContentPanel cp = new ContentPanel();
 cp.setHeading("Folder Contents");
 cp.setSize(250, 140);
 cp.setPosition(10, 10);
 cp.setCollapsible(true);
 cp.setFrame(true);
 cp.setBodyStyle("backgroundColor: white;");
 cp.getHeader().addTool(new ToolButton("x-tool-gear"));
 cp.getHeader().addTool(new ToolButton("x-tool-close"));
 cp.addText(getBogusText());
 cp.addButton(new Button("Ok"));
 cp.setIconStyle("tree-folder-open");
 RootPanel.get().add(cp);
 cp.layout();
 
Events:
BeforeExpand : ComponentEvent(component)
Fires before the panel is expanded. Listeners can cancel the action by calling BaseEvent.setCancelled(boolean).
Expand : ComponentEvent(component)
Fires after the panel is expanded
BeforeCollapse : ComponentEvent(component)
Fires before the panel is collapsed. Listeners can cancel the action by calling BaseEvent.setCancelled(boolean).
Collapse : ComponentEvent(component)
Fires after the panel is collapsed.
BeforeClose : ComponentEvent(component)
Fires before a content panel is closed. Listeners can cancel the action by calling BaseEvent.setCancelled(boolean).
Close : ComponentEvent(component)
Fires after a content panel is closed.
Inherited Events:
LayoutContainer AfterLayout
ScrollContainer Scroll
Container BeforeAdd
Container Add
Container BeforeRemove
Container Remove
BoxComponent Move
BoxComponent Resize
Component Enable
Component Disable
Component BeforeHide
Component Hide
Component BeforeShow
Component Show
Component Attach
Component Detach
Component BeforeRender
Component Render
Component BrowserEvent
Component BeforeStateRestore
Component StateRestore
Component BeforeStateSave
Component SaveState


Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
 
Field Summary
protected  java.lang.String bbarStyle
           
protected  java.lang.String bodStyle
           
protected  El body
           
protected  El bwrap
           
protected  java.lang.String bwrapStyle
           
protected  java.lang.String collapseStyle
           
protected  ButtonBar fbar
           
protected  java.lang.String footerStyle
           
protected  boolean frame
           
protected  Header head
           
protected  java.lang.String headerStyle
           
protected  java.lang.String headerTextStyle
           
protected  java.lang.String tbarStyle
           
 
Fields inherited from class com.extjs.gxt.ui.client.widget.Container
attachChildren, enableLayout, layoutExecuted, layoutNeeded, layoutOnAttach, layoutOnChange
 
Fields inherited from class com.extjs.gxt.ui.client.widget.BoxComponent
adjustSize, cacheSizes, ensureVisibilityOnSizing, height, lastSize, layer, shim, width
 
Fields inherited from class com.extjs.gxt.ui.client.widget.Component
afterRender, attachables, baseStyle, disabled, disabledStyle, disableTextSelection, dummy, focusable, hidden, mask, maskMessage, maskMessageStyleName, monitorWindowResize, rendered, resizeHandler, setElementRender, stateId, swallowEvents, toolTip, windowResizeDelay, windowResizeTask
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
ContentPanel()
          Creates a new panel instance.
ContentPanel(Layout layout)
          Creates a new content panel.
 
Method Summary
 void addButton(Button button)
          Adds a button the the panel.
protected  Size adjustBodySize()
           
protected  void afterCollapse()
           
protected  void afterExpand()
           
 void collapse()
          Collapses the panel body so that it becomes hidden.
protected  void createStyles(java.lang.String baseStyle)
           
protected  void doAttachChildren()
           
protected  void doDetachChildren()
           
 void expand()
          Expands the panel body so that it becomes visible.
 boolean getAnimCollapse()
          Returns true if animation is enabled for expand / collapse.
 El getBody()
          Returns the panel's body element.
 boolean getBodyBorder()
          Returns true if the body border is enabled.
 java.lang.String getBodyStyle()
          Returns the body style.
 Component getBottomComponent()
          Returns the panel's bottom component.
 Style.HorizontalAlignment getButtonAlign()
          Returns the panel's button alignment.
 ButtonBar getButtonBar()
           
 ToolButton getCollapseBtn()
          Returns the panel's collapse button.
 boolean getCollapsible()
          Returns true if the panel is collapsible.
 com.google.gwt.user.client.Element getElement(java.lang.String name)
          Provides access to internal elements.
 boolean getFrame()
          Returns true if framing is enabled.
 int getFrameHeight()
          Returns the height in pixels of the framing elements of this panel (including any top and bottom bars and header and footer elements, but not including the body height).
protected  Size getFrameSize()
           
 int getFrameWidth()
          Returns the width in pixels of the framing elements of this panel (not including the body width).
 Header getHeader()
          Returns the panel's header.
 java.lang.String getHeading()
          Returns the panel's heading.
 com.google.gwt.user.client.ui.AbstractImagePrototype getIcon()
          Returns the panel's icon style.
 int getInnerHeight()
          Returns the height in pixels of the body element (not including the height of any framing elements).
 int getInnerWidth()
          Returns the width in pixels of the body element (not including the width of any framing elements).
 El getLayoutTarget()
          Override this method to specify the element to be used by the layout as the container.
 int getMinButtonWidth()
           
 boolean getTitleCollapse()
           
 java.lang.String getTitleText()
          Deprecated. use getHeading()
 Component getTopComponent()
          Returns the panels top component.
protected  void initTools()
           
 boolean isCollapsed()
          Returns true if the panel is collapsed.
 boolean isExpanded()
          Returns true if the panel is expanded.
 boolean isFooter()
          Returns true if the footer is enabled.
 boolean isHeaderVisible()
          Returns true if the header is visible.
 boolean isHideCollapseTool()
          Returns true if the collapse tool is hidden.
protected  void layoutBars()
           
protected  void notifyHide()
           
protected  void notifyShow()
           
protected  void onClick(ComponentEvent ce)
           
protected  void onCollapse()
           
 void onComponentEvent(ComponentEvent ce)
          Any events a component receives will be forwarded to this method.
protected  void onDisable()
           
protected  void onEnable()
           
protected  void onExpand()
           
protected  void onRender(com.google.gwt.user.client.Element parent, int pos)
          Subclasses must override and ensure setElement is called for lazy rendered components.
protected  void onResize(int width, int height)
          Called after the component is resized, this method is empty by default but can be implemented by any subclass that needs to perform custom logic after a resize occurs.
protected  boolean remove(Component item)
          Removes the item from the container.
 void setAnimCollapse(boolean animCollapse)
          Sets whether expand and collapse is animating (defaults to true, pre-render).
 void setBodyBorder(boolean bodyBorder)
          True to display the borders of the panel's body element, false to hide them (defaults to true, pre-render).
 void setBodyStyle(java.lang.String bodyStyle)
          Custom CSS styles to be applied to the body element in the format expected by El.applyStyles(java.lang.String) (pre-render).
 void setBodyStyleName(java.lang.String style)
          A style name that is added to the panel's body element (pre-render).
 void setBottomComponent(Component bottomComponent)
          Sets the panel's bottom component (pre-render).
 void setButtonAlign(Style.HorizontalAlignment buttonAlign)
          Sets the button alignment of any buttons added to this panel (defaults to RIGHT, pre-render).
 void setCollapsible(boolean collapsible)
          True to make the panel collapsible and have the expand/collapse toggle button automatically rendered into the header tool button area, false to keep the panel statically sized with no button (defaults to false, pre-render).
 void setExpanded(boolean expanded)
          Sets the panel's expand state.
 void setFooter(boolean footer)
          True to create the footer element explicitly, false to skip creating it (pre-render).
 void setFrame(boolean frame)
          True to render the panel with custom rounded borders, false to render with plain 1px square borders (defaults to false, pre-render).
 void setHeaderVisible(boolean headerVisible)
          True to create the header element explicitly, false to skip creating it (defaults to true, pre-render).
 void setHeading(java.lang.String text)
          Sets the title text for the panel.
 void setHideCollapseTool(boolean hideCollapseTool)
          Sets whether the collapse tool should be displayed when the panel is collapsible.
 void setIcon(com.google.gwt.user.client.ui.AbstractImagePrototype icon)
          Sets the item's icon style.
 void setIconStyle(java.lang.String icon)
          Sets the icon style.
 void setInsetBorder(boolean insetBorder)
          Deprecated. behavior not implemented
 void setMinButtonWidth(int minButtonWidth)
           
 void setTitleCollapse(boolean titleCollapse)
          True to allow expanding and collapsing the panel (when collapsible = true) by clicking anywhere in the header bar, false to allow it only by clicking to tool button (defaults to false, pre-render).
 void setTopComponent(Component topComponent)
          Sets the panel's top component (pre-render).
 com.google.gwt.user.client.ui.Frame setUrl(java.lang.String url)
          Adds the content from the given url.
 
Methods inherited from class com.extjs.gxt.ui.client.widget.LayoutContainer
add, add, addText, findComponent, getLayout, getWindowResizeDelay, insert, insert, isLayoutOnChange, isMonitorWindowResize, layout, layout, onBlur, onFocus, remove, removeAll, setLayout, setLayoutData, setLayoutOnChange, setMonitorWindowResize, setWindowResizeDelay
 
Methods inherited from class com.extjs.gxt.ui.client.widget.ScrollContainer
addScrollListener, afterRender, getHScrollPosition, getScrollMode, getVScrollPosition, removeScrollListener, scrollIntoView, setHScrollPosition, setScrollMode, setVScrollPosition
 
Methods inherited from class com.extjs.gxt.ui.client.widget.Container
add, adjustIndex, adopt, createContainerEvent, disable, doLayout, doLayout, enable, findItem, getItem, getItemByItemId, getItemCount, getItems, getWidget, indexOf, insert, isLayoutNeeded, iterator, onAfterLayout, onAttach, onBeforeLayoutExcecuted, onInsert, onLayoutExcecuted, onRemove, orphan, remove, removeAll, scrollIntoView, setLayoutNeeded, wrapWidget
 
Methods inherited from class com.extjs.gxt.ui.client.widget.BoxComponent
adjustPosition, adjustSize, createComponentEvent, getBounds, getHeight, getHeight, getPosition, getPositionEl, getResizeEl, getShadow, getShadowOffset, getShadowPosition, getSize, getWidth, getWidth, hideShadow, hideShim, hideUnders, isAutoHeight, isAutoWidth, isDeferHeight, isShim, onHide, onPosition, onShow, onUnload, setAutoHeight, setAutoWidth, setBounds, setBounds, setDeferHeight, setHeight, setHeight, setPagePosition, setPagePosition, setPixelSize, setPosition, setShadow, setShadowOffset, setShadowPosition, setShim, setSize, setSize, setWidth, setWidth, sync, syncSize
 
Methods inherited from class com.extjs.gxt.ui.client.widget.Component
addAttachable, addListener, addPlugin, addStyleName, addStyleOnOver, addWidgetListener, applyState, assertAfterRender, assertPreRender, beforeRender, blur, clearState, createObservable, disableContextMenu, disableEvents, disableTextSelection, el, enableEvents, fireEvent, fireEvent, fireEvent, fly, focus, frame, getAriaSupport, getBaseStyle, getBorders, getContextMenu, getData, getElement, getFocusEl, getFocusSupport, getHideMode, getId, getItemId, getListeners, getModel, getObservable, getPlugins, getState, getStateId, getTabIndex, getTitle, getToolTip, hasListeners, hasListeners, hide, hideToolTip, initState, isDisabledEvents, isDisableTextSelection, isEnabled, isMasked, isRendered, isStateful, isVisible, isVisible, mask, mask, mask, onBrowserEvent, onDetach, onDetachHelper, onEnsureDebugId, onHideContextMenu, onLoad, onRightClick, onShowContextMenu, onWindowResize, previewEvent, recalculate, removeAllListeners, removeAttachagle, removeFromParent, removeListener, removeStyleName, removeStyleOnOver, removeSwallow, removeToolTip, removeWidgetListener, render, render, repaint, saveState, setAriaRole, setAriaState, setAriaSupport, setBorders, setContextMenu, setData, setEl, setElement, setElement, setEnabled, setFiresEvents, setHideMode, setId, setIntStyleAttribute, setItemId, setModel, setParent, setStateful, setStateId, setStyleAttribute, setStyleName, setTabIndex, setTitle, setToolTip, setToolTip, setVisible, setZIndex, show, sinkEvents, swallowEvent, swallowEvent, toString, unframe, unmask
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, setLayoutData
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, removeStyleDependentName, setElement, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, sinkBitlessEvent, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

bodStyle

protected java.lang.String bodStyle

body

protected El body

bwrap

protected El bwrap

bwrapStyle

protected java.lang.String bwrapStyle

collapseStyle

protected java.lang.String collapseStyle

fbar

protected ButtonBar fbar

frame

protected boolean frame

head

protected Header head

headerStyle

protected java.lang.String headerStyle

footerStyle

protected java.lang.String footerStyle

headerTextStyle

protected java.lang.String headerTextStyle

tbarStyle

protected java.lang.String tbarStyle

bbarStyle

protected java.lang.String bbarStyle
Constructor Detail

ContentPanel

public ContentPanel()
Creates a new panel instance.


ContentPanel

public ContentPanel(Layout layout)
Creates a new content panel.

Parameters:
layout - the panel's layout
Method Detail

addButton

public void addButton(Button button)
Adds a button the the panel.

Parameters:
button - the button to add

collapse

public void collapse()
Collapses the panel body so that it becomes hidden. Fires the BeforeCollapse before collapsing, then the Collapse event after collapsing.


expand

public void expand()
Expands the panel body so that it becomes visible. Fires the BeforeExpand before expanding, then the Expand event after expanding.


getAnimCollapse

public boolean getAnimCollapse()
Returns true if animation is enabled for expand / collapse.

Returns:
the animCollapse true for animations

getBody

public El getBody()
Returns the panel's body element.

Returns:
the body

getBodyBorder

public boolean getBodyBorder()
Returns true if the body border is enabled.

Returns:
the body border state

getBodyStyle

public java.lang.String getBodyStyle()
Returns the body style.

Returns:
the body style

getBottomComponent

public Component getBottomComponent()
Returns the panel's bottom component.

Returns:
the bottom component

getButtonAlign

public Style.HorizontalAlignment getButtonAlign()
Returns the panel's button alignment.

Returns:
the button alignment

getButtonBar

public ButtonBar getButtonBar()

getCollapseBtn

public ToolButton getCollapseBtn()
Returns the panel's collapse button.

Returns:
the collapse button

getCollapsible

public boolean getCollapsible()
Returns true if the panel is collapsible.

Returns:
the collapsible state

getElement

public com.google.gwt.user.client.Element getElement(java.lang.String name)
Provides access to internal elements.

Valid values are:

Parameters:
name - the element name
Returns:
the element

getFrame

public boolean getFrame()
Returns true if framing is enabled.

Returns:
the frame state

getFrameHeight

public int getFrameHeight()
Returns the height in pixels of the framing elements of this panel (including any top and bottom bars and header and footer elements, but not including the body height). To retrieve the body height see getInnerHeight().

Returns:
the frame height

getFrameWidth

public int getFrameWidth()
Returns the width in pixels of the framing elements of this panel (not including the body width). To retrieve the body width see getInnerWidth().

Returns:
The frame width

getHeader

public Header getHeader()
Returns the panel's header.

Returns:
the header

getHeading

public java.lang.String getHeading()
Returns the panel's heading.

Returns:
the heading

getIcon

public com.google.gwt.user.client.ui.AbstractImagePrototype getIcon()
Returns the panel's icon style.

Specified by:
getIcon in interface IconSupport
Returns:
the icon style

getInnerHeight

public int getInnerHeight()
Returns the height in pixels of the body element (not including the height of any framing elements). For the frame height see getFrameHeight().

Returns:
the inner height

getInnerWidth

public int getInnerWidth()
Returns the width in pixels of the body element (not including the width of any framing elements). For the frame width see getFrameWidth().

Returns:
the body width

getLayoutTarget

public El getLayoutTarget()
Description copied from class: LayoutContainer
Override this method to specify the element to be used by the layout as the container. Allows the container to be decorated.

Overrides:
getLayoutTarget in class LayoutContainer
Returns:
the element to be used as the panel's container

getMinButtonWidth

public int getMinButtonWidth()

getTitleCollapse

public boolean getTitleCollapse()
Returns:
the titleCollapse

getTitleText

public java.lang.String getTitleText()
Deprecated. use getHeading()

Returns the panel's title text.

Returns:
the title text

getTopComponent

public Component getTopComponent()
Returns the panels top component.

Returns:
the top component

isCollapsed

public boolean isCollapsed()
Returns true if the panel is collapsed.

Returns:
the collapsed state

isExpanded

public boolean isExpanded()
Returns true if the panel is expanded.

Returns:
the expand state

isFooter

public boolean isFooter()
Returns true if the footer is enabled.

Returns:
the show footer state

isHeaderVisible

public boolean isHeaderVisible()
Returns true if the header is visible.

Returns:
the header visible state

isHideCollapseTool

public boolean isHideCollapseTool()
Returns true if the collapse tool is hidden.

Returns:
the hide collapse tool state

onComponentEvent

public void onComponentEvent(ComponentEvent ce)
Description copied from class: Component
Any events a component receives will be forwarded to this method. Subclasses should override as needed. The Component.onBrowserEvent(com.google.gwt.user.client.Event) method should not be overridden or modified.

Overrides:
onComponentEvent in class LayoutContainer
Parameters:
ce - the base event

setAnimCollapse

public void setAnimCollapse(boolean animCollapse)
Sets whether expand and collapse is animating (defaults to true, pre-render).

Parameters:
animCollapse - true to enable animations

setBodyBorder

public void setBodyBorder(boolean bodyBorder)
True to display the borders of the panel's body element, false to hide them (defaults to true, pre-render). Only applies to non-framed panels.

Parameters:
bodyBorder - true for a body border

setBodyStyle

public void setBodyStyle(java.lang.String bodyStyle)
Custom CSS styles to be applied to the body element in the format expected by El.applyStyles(java.lang.String) (pre-render).

Parameters:
bodyStyle - the body style

setBodyStyleName

public void setBodyStyleName(java.lang.String style)
A style name that is added to the panel's body element (pre-render).

Parameters:
style - the style name

setBottomComponent

public void setBottomComponent(Component bottomComponent)
Sets the panel's bottom component (pre-render). The component's natural height will be used and will not be changed by the panel.

Parameters:
bottomComponent - the bottom component

setButtonAlign

public void setButtonAlign(Style.HorizontalAlignment buttonAlign)
Sets the button alignment of any buttons added to this panel (defaults to RIGHT, pre-render).

Parameters:
buttonAlign - the button alignment

setCollapsible

public void setCollapsible(boolean collapsible)
True to make the panel collapsible and have the expand/collapse toggle button automatically rendered into the header tool button area, false to keep the panel statically sized with no button (defaults to false, pre-render).

Parameters:
collapsible - the collapsible to set

setExpanded

public void setExpanded(boolean expanded)
Sets the panel's expand state.

Parameters:
expanded - true true to expand

setFooter

public void setFooter(boolean footer)
True to create the footer element explicitly, false to skip creating it (pre-render). By default, when footer is not specified, if one or more buttons have been added to the panel the footer will be created automatically, otherwise it will not.

Parameters:
footer - the footer state

setFrame

public void setFrame(boolean frame)
True to render the panel with custom rounded borders, false to render with plain 1px square borders (defaults to false, pre-render).

Parameters:
frame - true to use the frame style

setHeaderVisible

public void setHeaderVisible(boolean headerVisible)
True to create the header element explicitly, false to skip creating it (defaults to true, pre-render). By default, when header is not specified, if a setHeading(String) is set the header will be created automatically, otherwise it will not. If a title is set but header is explicitly set to false, the header will not be rendered.

Parameters:
headerVisible - true to show the header

setHeading

public void setHeading(java.lang.String text)
Sets the title text for the panel.

Parameters:
text - the title text

setHideCollapseTool

public void setHideCollapseTool(boolean hideCollapseTool)
Sets whether the collapse tool should be displayed when the panel is collapsible.

Parameters:
hideCollapseTool - true if the tool is hidden

setIcon

public void setIcon(com.google.gwt.user.client.ui.AbstractImagePrototype icon)
Sets the item's icon style. The style name should match a CSS style that specifies a background image using the following format:
 <code> .my-icon { background: url(images/icons/my-icon.png) no-repeat
 center left !important; } </code>
 

Specified by:
setIcon in interface IconSupport
Parameters:
icon - the icon

setIconStyle

public void setIconStyle(java.lang.String icon)
Description copied from interface: IconSupport
Sets the icon style.

Specified by:
setIconStyle in interface IconSupport
Parameters:
icon - a CSS style name

setInsetBorder

public void setInsetBorder(boolean insetBorder)
Deprecated. behavior not implemented

True to display an interior border on the body element of the panel, false to hide it (defaults to true, pre-render). This only applies when setBodyBorder(boolean) == true.

Parameters:
insetBorder - true to display the interior border

setMinButtonWidth

public void setMinButtonWidth(int minButtonWidth)

setTitleCollapse

public void setTitleCollapse(boolean titleCollapse)
True to allow expanding and collapsing the panel (when collapsible = true) by clicking anywhere in the header bar, false to allow it only by clicking to tool button (defaults to false, pre-render).

Parameters:
titleCollapse - the titleCollapse to set

setTopComponent

public void setTopComponent(Component topComponent)
Sets the panel's top component (pre-render).

Parameters:
topComponent - the component

setUrl

public com.google.gwt.user.client.ui.Frame setUrl(java.lang.String url)
Adds the content from the given url.

Parameters:
url - the url
Returns:
the new frame instance

adjustBodySize

protected Size adjustBodySize()

afterCollapse

protected void afterCollapse()

afterExpand

protected void afterExpand()

createStyles

protected void createStyles(java.lang.String baseStyle)
Overrides:
createStyles in class Component

doAttachChildren

protected void doAttachChildren()
Overrides:
doAttachChildren in class Container<Component>

doDetachChildren

protected void doDetachChildren()
Overrides:
doDetachChildren in class Container<Component>

getFrameSize

protected Size getFrameSize()

initTools

protected void initTools()

layoutBars

protected void layoutBars()

notifyHide

protected void notifyHide()
Overrides:
notifyHide in class Container<Component>

notifyShow

protected void notifyShow()
Overrides:
notifyShow in class Container<Component>

onClick

protected void onClick(ComponentEvent ce)

onCollapse

protected void onCollapse()

onDisable

protected void onDisable()
Overrides:
onDisable in class Component

onEnable

protected void onEnable()
Overrides:
onEnable in class Component

onExpand

protected void onExpand()

onRender

protected void onRender(com.google.gwt.user.client.Element parent,
                        int pos)
Description copied from class: Component
Subclasses must override and ensure setElement is called for lazy rendered components.

Overrides:
onRender in class LayoutContainer
Parameters:
parent - the target element
pos - the insert location

onResize

protected void onResize(int width,
                        int height)
Description copied from class: BoxComponent
Called after the component is resized, this method is empty by default but can be implemented by any subclass that needs to perform custom logic after a resize occurs.

Overrides:
onResize in class BoxComponent
Parameters:
width - the width
height - the height

remove

protected boolean remove(Component item)
Description copied from class: Container
Removes the item from the container. Fires the BeforeRemove event before removing, then fires the Remove event after the widget has been removed.

Overrides:
remove in class Container<Component>
Parameters:
item - the item to remove
Returns:
true if the item was removed