public class CollapsePanel extends Component implements ExpandEvent.HasExpandHandlers
ContentPanel
. Used by
BorderLayoutContainer
.Modifier and Type | Class and Description |
---|---|
static interface |
CollapsePanel.CollapsePanelAppearance
Provides the appearance of a
CollapsePanel . |
adjustSize, allowTextSelection, cacheSizes, disableContextMenu, disabled, disabledStyle, ensureVisibilityOnSizing, height, hidden, lastSize, layer, left, mask, maskMessage, monitorWindowResize, pageX, pageY, resizeHandler, shim, tabIndex, toolTip, toolTipConfig, top, width, windowResizeDelay, windowResizeTask
Constructor and Description |
---|
CollapsePanel(CollapsePanel.CollapsePanelAppearance appearance,
ContentPanel panel,
BorderLayoutContainer.BorderLayoutData data,
Style.LayoutRegion region)
Creates a
CollapsePanel that acts as a stand-in for the given panel
when it is collapsed. |
CollapsePanel(ContentPanel panel,
BorderLayoutContainer.BorderLayoutData data,
Style.LayoutRegion region)
Creates a
CollapsePanel that acts as a stand-in for the given panel
when it is collapsed. |
Modifier and Type | Method and Description |
---|---|
HandlerRegistration |
addExpandHandler(ExpandEvent.ExpandHandler handler)
Adds a
ExpandEvent.ExpandHandler handler for ExpandEvent events. |
protected void |
afterCollapse()
Displays the collapsed form of the
CollapsePanel |
void |
collapse()
Collapses an expanded
CollapsePanel , optionally animating it so
that it appears to collapse toward the direction of its associated region. |
void |
collapseHidden()
Collapses a
CollapsePanel so that it is hidden. |
protected void |
doAttachChildren() |
protected void |
doDetachChildren() |
void |
expand()
Expands a collapsed
CollapsePanel , optionally animating it so that
it appears to expand from the direction of its associated region. |
CollapsePanel.CollapsePanelAppearance |
getAppearance() |
ContentPanel |
getContentPanel()
Returns the
ContentPanel associated with this CollapsePanel
. |
Style.LayoutRegion |
getRegion()
Returns the
Style.LayoutRegion associated with this CollapsePanel
. |
SplitBar |
getSplitBar()
Returns the split bar, creating it if necessary.
|
protected void |
onBarClick(Event event) |
void |
onBrowserEvent(Event event) |
protected void |
onExpandButton() |
void |
setIconConfig(IconButton.IconConfig config) |
addBeforeHideHandler, addBeforeShowContextMenuHandler, addBeforeShowHandler, addBlurHandler, addDisableHandler, addEnableHandler, addFocusHandler, addHideHandler, addMoveHandler, addResizeHandler, addShowContextMenuHandler, addShowHandler, addStyleDependentName, addStyleOnOver, adjustPosition, adjustSize, applyState, assertAfterRender, assertPreRender, blur, clearSizeCache, disable, disableContextMenu, disableEvents, enable, enableEvents, fireCancellableEvent, fireEvent, focus, getData, getElement, getFocusEl, getFocusSupport, getHideMode, getId, getItemId, getOffsetHeight, getOffsetWidth, getPositionEl, getShadow, getShadowPosition, getStateId, getTabIndex, getToolTip, hide, hideShadow, hideToolTip, isAllowTextSelection, isAutoHeight, isAutoWidth, isDeferHeight, isEnabled, isMonitorWindowResize, isRendered, isStateful, isVisible, isVisible, mask, mask, notifyHide, notifyShow, onAfterFirstAttach, onAttach, onBlur, onDetach, onDisable, onEnable, onFocus, onHide, onHideContextMenu, onLoad, onPosition, onResize, onRightClick, onShow, onShowContextMenu, onUnload, onWindowResize, removeStyleDependentName, removeStyleOnOver, removeToolTip, setAllowTextSelection, setBorders, setBounds, setBounds, setContextMenu, setData, setDeferHeight, setEnabled, setHeight, setHeight, setHideMode, setId, setItemId, setMonitorWindowResize, setPagePosition, setPixelSize, setPosition, setShadow, setShadowPosition, setSize, setStateful, setStateId, setStyleDependentName, setTabIndex, setToolTip, setToolTipConfig, setVisible, setWidth, setWidth, show, sync, syncSize, unmask
public CollapsePanel(ContentPanel panel, BorderLayoutContainer.BorderLayoutData data, Style.LayoutRegion region)
CollapsePanel
that acts as a stand-in for the given panel
when it is collapsed.panel
- the content paneldata
- layout data describing a region in a border panelregion
- the region this panel occupies in the border panelpublic CollapsePanel(CollapsePanel.CollapsePanelAppearance appearance, ContentPanel panel, BorderLayoutContainer.BorderLayoutData data, Style.LayoutRegion region)
CollapsePanel
that acts as a stand-in for the given panel
when it is collapsed.appearance
- the appearance instance to use when rendering and updating the dompanel
- the content paneldata
- layout data describing a region in a border panelregion
- the region this panel occupies in the border panelpublic HandlerRegistration addExpandHandler(ExpandEvent.ExpandHandler handler)
ExpandEvent.HasExpandHandlers
ExpandEvent.ExpandHandler
handler for ExpandEvent
events.addExpandHandler
in interface ExpandEvent.HasExpandHandlers
handler
- the handlerpublic void collapse()
CollapsePanel
, optionally animating it so
that it appears to collapse toward the direction of its associated region.
Has no effect if the panel is not expanded.public SplitBar getSplitBar()
BorderLayoutContainer.BorderLayoutData.isCollapseMini()
true.public void collapseHidden()
CollapsePanel
so that it is hidden.public void expand()
CollapsePanel
, optionally animating it so that
it appears to expand from the direction of its associated region. Has no
effect if the panel is not collapsed.public CollapsePanel.CollapsePanelAppearance getAppearance()
public ContentPanel getContentPanel()
ContentPanel
associated with this CollapsePanel
.public Style.LayoutRegion getRegion()
Style.LayoutRegion
associated with this CollapsePanel
.public void onBrowserEvent(Event event)
onBrowserEvent
in class Component
public void setIconConfig(IconButton.IconConfig config)
protected void afterCollapse()
CollapsePanel
protected void doAttachChildren()
protected void doDetachChildren()
protected void onBarClick(Event event)
protected void onExpandButton()
Copyright © 2018. All rights reserved.