Search in sources :

Example 1 with AfterInitialization

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);
}
Also used : UberfireDock(org.uberfire.client.workbench.docks.UberfireDock) DefaultPlaceRequest(org.uberfire.mvp.impl.DefaultPlaceRequest) AfterInitialization(org.jboss.errai.ioc.client.api.AfterInitialization)

Example 2 with AfterInitialization

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);
}
Also used : Element(com.google.gwt.dom.client.Element) Animation(com.google.gwt.animation.client.Animation) AfterInitialization(org.jboss.errai.ioc.client.api.AfterInitialization)

Aggregations

AfterInitialization (org.jboss.errai.ioc.client.api.AfterInitialization)2 Animation (com.google.gwt.animation.client.Animation)1 Element (com.google.gwt.dom.client.Element)1 UberfireDock (org.uberfire.client.workbench.docks.UberfireDock)1 DefaultPlaceRequest (org.uberfire.mvp.impl.DefaultPlaceRequest)1