public void onClick(ClickEvent event) {
scroll.setVisible(!scroll.isVisible());
ImageResource down = FormBuilderResources.INSTANCE.arrowDown();
ImageResource up = FormBuilderResources.INSTANCE.arrowUp();
arrowImage.setResource(scroll.isVisible() ? down : up);
bus.fireEvent(new NotificationsVisibleEvent(scroll.isVisible()));
}
});
panel.setVerticalAlignment(HasVerticalAlignment.ALIGN_TOP);
scroll.addStyleName("notificationsView");
scroll.setSize("100%", "200px");