private static Widget getWidget(Object collapse) {
return GwtReflectionUtils.<Widget> callPrivateMethod(collapse, "getWidget");
}
private static void hide(Object collapse) {
getWidget(collapse).fireEvent(new HideEvent());
shownObject.put(collapse, false);
getWidget(collapse).fireEvent(new HiddenEvent());
}