fireEvent(Events.Collapse, createBorderLaoutEvent(panel));
}
}
private void onExpand(ContentPanel panel) {
CollapsePanel cp = panel.getData("collapse");
if (cp != null && cp.getParent() == layoutContainer
&& fireEvent(Events.BeforeExpand, createBorderLaoutEvent(panel))) {
boolean layoutOnChange = layoutContainer.isLayoutOnChange();
setLayoutOnChange(layoutContainer, false);
cp.setExpanded(false);
setCollapsed(panel, false);
boolean isVisible = cp.isVisible();
Map<String, Object> st = panel.getState();
st.remove("collapsed");
panel.saveState();