I think FieldSet class has a error in expand() method. Instead of invoking the event BeforeExpandEvent, invokes the event BeforeCollapseEvent.

if (fireCancellableEvent(new BeforeCollapseEvent())) {
this.collapsed = false;
appearance.onCollapse(getElement(), false);
getCollapseButton().changeStyle(ToolButton.UP);
fireEvent(new ExpandEvent());
}

Should be

if (fireCancellableEvent(new BeforeExpandEvent())) {
....
}



Is this correct?


thanks