use of org.jboss.errai.ioc.client.api.AfterInitialization in project appformer by kiegroup.
the class ContentManagerPerspective method init.
@AfterInitialization
public void init() {
perspectivesExplorerDock = new UberfireDock(UberfireDockPosition.WEST, IconType.FILE_TEXT_O.toString(), new DefaultPlaceRequest(PerspectivesExplorerScreen.SCREEN_ID), PERSPECTIVE_ID).withSize(330).withLabel(i18n.capitalizeFirst(i18n.getPerspectivesResourceName()));
navigationExplorerDock = new UberfireDock(UberfireDockPosition.WEST, IconType.NAVICON.toString(), new DefaultPlaceRequest(NavigationExplorerScreen.SCREEN_ID), PERSPECTIVE_ID).withSize(330).withLabel(ContentManagerConstants.INSTANCE.contentExplorerNavigation());
componentPaletteDock = new UberfireDock(UberfireDockPosition.WEST, IconType.CUBES.toString(), new DefaultPlaceRequest(LayoutComponentPaletteScreen.SCREEN_ID), PERSPECTIVE_ID).withSize(330).withLabel(ContentManagerConstants.INSTANCE.componentPalette());
propertiesEditorDock = new UberfireDock(UberfireDockPosition.EAST, IconType.PENCIL.toString(), new DefaultPlaceRequest(LayoutEditorPropertiesScreen.SCREEN_ID), PERSPECTIVE_ID).withSize(300).withLabel(ContentManagerConstants.INSTANCE.propertiesEditor());
uberfireDocks.add(perspectivesExplorerDock);
uberfireDocks.add(navigationExplorerDock);
}
use of org.jboss.errai.ioc.client.api.AfterInitialization in project kie-wb-common by kiegroup.
the class DefaultWorkbenchEntryPoint method hideLoadingPopup.
@AfterInitialization
public void hideLoadingPopup() {
@SuppressWarnings("GwtToHtmlReferences") final Element e = RootPanel.get("loading").getElement();
new Animation() {
@Override
protected void onUpdate(double progress) {
e.getStyle().setOpacity(1.0 - progress);
}
@Override
protected void onComplete() {
e.getStyle().setVisibility(Style.Visibility.HIDDEN);
}
}.run(500);
}
Aggregations