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. |
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabledDEBUG_ID_PREFIX| Constructor and Description |
|---|
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. |
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. |
void |
expand()
Expands a collapsed
CollapsePanel, optionally animating it so that
it appears to expand from the direction of its associated region. |
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.
|
void |
onBrowserEvent(Event event) |
addBeforeHideHandler, addBeforeShowContextMenuHandler, addBeforeShowHandler, addBlurHandler, addDisableHandler, addEnableHandler, addFocusHandler, addHideHandler, addMoveHandler, addResizeHandler, addShowContextMenuHandler, addShowHandler, addStyleOnOver, clearSizeCache, disable, disableEvents, enable, enableEvents, fireEvent, focus, getData, getElement, getFocusSupport, getHideMode, getId, getItemId, getOffsetHeight, getOffsetWidth, getShadow, getStateId, getToolTip, hide, hideToolTip, isAllowTextSelection, isAutoHeight, isAutoWidth, isDeferHeight, isEnabled, isRendered, isStateful, isVisible, isVisible, mask, mask, removeHandler, removeToolTip, setAllowTextSelection, setBorders, setBounds, setBounds, setContextMenu, setData, setDeferHeight, setEnabled, setHeight, setHeight, setHideMode, setId, setItemId, setPagePosition, setPixelSize, setPosition, setShadow, setSize, setStateful, setStateId, setTabIndex, setToolTip, setToolTipConfig, setVisible, setWidth, setWidth, show, sync, syncSize, unmaskaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, getLayoutData, getParent, isAttached, removeFromParent, setLayoutData, sinkEventsaddStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleName, getStylePrimaryName, getTitle, isVisible, removeStyleDependentName, removeStyleName, setStyleDependentName, setStyleName, setStyleName, setStylePrimaryName, setTitle, setVisible, sinkBitlessEvent, toString, unsinkEventspublic 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 HandlerRegistration addExpandHandler(ExpandEvent.ExpandHandler handler)
ExpandEvent.HasExpandHandlersExpandEvent.ExpandHandler handler for ExpandEvent events.addExpandHandler in interface ExpandEvent.HasExpandHandlershandler - 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 ContentPanel getContentPanel()
ContentPanel associated with this CollapsePanel
.public Style.LayoutRegion getRegion()
Style.LayoutRegion associated with this CollapsePanel
.public void onBrowserEvent(Event event)
onBrowserEvent in interface EventListeneronBrowserEvent in class ComponentCopyright © 2012. All Rights Reserved.