linksPanel.setLayout(tl_linksPanel);
acceuilLink.addListener(Events.OnClick, new Listener<BaseEvent>() {
@Override
public void handleEvent(BaseEvent be) {
GuiUtil.gotoEcran(new AcceuilEcran());
}
});
linksPanel.add(acceuilLink, new TableData(HorizontalAlignment.RIGHT, VerticalAlignment.BOTTOM));
adminLink.addListener(Events.OnClick, new Listener<BaseEvent>() {
@Override
public void handleEvent(BaseEvent be) {
GuiUtil.gotoEcran(new AdminEcran());
}
});
linksPanel.add(adminLink, new TableData(HorizontalAlignment.RIGHT, VerticalAlignment.BOTTOM));
version = new HTML("", false);
version.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_LEFT);
version.setWordWrap(false);
ClientPropertiesServiceAsync.Util.getInstance().getVersionInfo(new AsyncCallbackWithErrorResolution<String>() {
@Override
public void onSuccess(String result) {
version.setHTML("<font size='1'>" + result + "</font>");
}
});
// linksPanel.add(version);
rightPanel.add(linksPanel);
LayoutContainer layoutBanner = new LayoutContainer();
LayoutContainer layoutVersion = new LayoutContainer();
layoutVersion.setLayout(new RowLayout(Orientation.HORIZONTAL));
layoutVersion.add(version, new RowData());
layoutVersion.setHeight(20);
layoutVersion.setWidth(50);
layoutVersion.setStyleAttribute("padding-bottom", "25px");
layoutBanner.setLayout(new TableLayout(2));
banner = new HTML("<img src='./images/banner-first.png'/>");
banner.setStyleName("actionHTML");
banner.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
GuiUtil.gotoEcran(new AcceuilEcran());
}
});
layoutBanner.add(banner, new TableData());
layoutBanner.add(layoutVersion, new TableData(HorizontalAlignment.LEFT, VerticalAlignment.BOTTOM));
mainPanel.add(layoutBanner, new BorderLayoutData(LayoutRegion.CENTER));