Example usage for com.google.gwt.user.client Window setMargin

List of usage examples for com.google.gwt.user.client Window setMargin

Introduction

In this page you can find the example usage for com.google.gwt.user.client Window setMargin.

Prototype

public static void setMargin(String size) 

Source Link

Usage

From source file:com.gwtcx.extgwt.client.desktop.view.contact.AbstractContactPageView.java

License:Open Source License

@Inject
public AbstractContactPageView(final EventBus eventBus, final com.gwtcx.extgwt.client.widgets.ToolBar toolBar,
        final EntityMasthead masthead) {
    super();/*from  w w  w.j  av  a2 s. c  o  m*/

    Log.debug("AbstractContactPageView()");

    this.eventBus = eventBus;
    this.toolBar = toolBar;
    this.masthead = masthead;

    createAndBindUi();

    // get rid of scroll bars, and clear out the window's built-in margin,
    // because we want to take advantage of the entire client area
    getViewport().setEnableScroll(false); // calls Window.enableScrolling(false);
    Window.setMargin("0px");

    getToolBar().setSize(TOOLBAR_WIDTH, TOOLBAR_HEIGHT);

    VerticalLayoutContainer vLayout = new VerticalLayoutContainer();
    vLayout.add(getToolBar(), new VerticalLayoutData(1, -1));

    getNorthPanel().add(vLayout);
    getNorthPanel().add(getMasthead());

    bindCustomUiHandlers();
}

From source file:com.gwtcx.smartgwt.client.view.AbstractMainPageView.java

License:Open Source License

@Inject
public AbstractMainPageView(Masthead masthead, ApplicationMenu applicationMenu,
        NavigationPaneHeader navigationPaneHeader, NavigationPane navigationPane) {
    super();//from w w w  .  j a  v a2  s. com

    this.masthead = masthead;
    this.applicationMenu = applicationMenu;
    this.navigationPaneHeader = navigationPaneHeader;
    this.navigationPane = navigationPane;

    // get rid of scroll bars, and clear out the window's built-in margin,
    // because we want to take advantage of the entire client area
    Window.enableScrolling(false);
    Window.setMargin(DEFAULT_MARGIN);

    // initialise the main layout container
    viewport = new VLayout();
    viewport.setWidth100();
    viewport.setHeight100();

    // initialise the North layout container
    northLayout = new HLayout();
    northLayout.setHeight(NORTH_HEIGHT);

    // initialise the nested layout container
    VLayout vLayout = new VLayout();
    vLayout.addMember(this.masthead);
    vLayout.addMember(this.applicationMenu);
    vLayout.addMember(this.navigationPaneHeader);

    // add the nested layout container to the North layout container
    northLayout.addMember(vLayout);

    // initialise the West layout container
    westLayout = this.navigationPane;

    // initialise the South layout container
    southLayout = new HLayout();

    // add the North and South layout containers to the main layout container
    viewport.addMember(northLayout);
    viewport.addMember(southLayout);

    bindCustomUiHandlers();
}

From source file:com.gwtcx.smartgwt.client.view.AccountPageView.java

License:Open Source License

@Inject
public AccountPageView(EntityToolBar toolBar, EntityMasthead masthead, NavigationPane navigationPane) {
    super();//  w  w  w  .j  a  v  a  2  s. c om

    this.toolBar = toolBar;
    this.masthead = masthead;
    this.navigationPane = navigationPane;

    // get rid of scroll bars, and clear out the window's built-in margin,
    // because we want to take advantage of the entire client area
    Window.enableScrolling(false);
    Window.setMargin(DEFAULT_MARGIN);

    // initialise the main layout container
    panel = new VLayout();
    panel.setWidth100();
    panel.setHeight100();

    panel.setStyleName(ENTITY_MAIN_LAYOUT_STYLE_NAME);

    // initialise the North layout container
    northLayout = new HLayout();
    northLayout.setHeight(NORTH_HEIGHT);

    // initialise the nested layout container
    VLayout vLayout = new VLayout();
    vLayout.addMember(this.toolBar);
    vLayout.addMember(this.masthead);

    // add the nested layout container to the North layout container
    northLayout.addMember(vLayout);

    initNavigationPane();

    // initialise the West layout container
    westLayout = this.navigationPane;

    // initialise the South layout container
    southLayout = new HLayout();

    // add the North and South layout containers to the main layout container
    panel.addMember(northLayout);
    panel.addMember(southLayout);

    // bindCustomUiHandlers();
}

From source file:com.gwtcx.smartgwt.client.view.EmailPageView.java

License:Open Source License

@Inject
public EmailPageView(EntityToolBar toolBar, EntityMasthead masthead) {
    this.toolBar = toolBar;
    this.masthead = masthead;

    // get rid of scroll bars, and clear out the window's built-in margin,
    // because we want to take advantage of the entire client area
    Window.enableScrolling(false);
    Window.setMargin(DEFAULT_MARGIN);

    // initialise the main layout container
    panel = new VLayout();
    panel.setWidth100();//  w  ww  .j  a  v a 2  s. c o  m
    panel.setHeight100();

    panel.setStyleName(ENTITY_MAIN_LAYOUT_STYLE_NAME);

    // initialise the North layout container
    northLayout = new HLayout();
    northLayout.setHeight(NORTH_HEIGHT);

    // initialise the nested layout container
    VLayout vLayout = new VLayout();
    vLayout.addMember(this.toolBar);
    vLayout.addMember(this.masthead);

    // add the nested layout container to the North layout container
    northLayout.addMember(vLayout);

    // initialise the South layout container
    southLayout = new HLayout();

    // add the North and South layout containers to the main layout container
    panel.addMember(northLayout);
    panel.addMember(southLayout);

    // bindCustomUiHandlers();
}

From source file:com.gwtcx.smartgwt.client.view.FileUploadPageView.java

License:Open Source License

@Inject
public FileUploadPageView() {

    // get rid of scroll bars, and clear out the window's built-in margin,
    // because we want to take advantage of the entire client area
    Window.enableScrolling(false);
    Window.setMargin(DEFAULT_MARGIN);

    // initialise the main layout container
    panel = new VLayout();
    panel.setWidth100();/*  w ww. j  a  va2  s  .com*/
    panel.setHeight100();

    // initialise the North layout container
    northLayout = new VLayout();
    northLayout.setWidth100();
    northLayout.setHeight(HEADER_HEIGHT);

    // initialise the South layout container
    southLayout = new VLayout();
    southLayout.setWidth100();
    southLayout.setHeight100();

    // add the nested layout containers to the main layout containers
    northLayout.addMember(initHeader());
    southLayout.addMember(initBody());
    southLayout.addMember(initFooter());

    // add the North and South layout containers to the main layout container
    panel.addMember(northLayout);
    panel.addMember(southLayout);

    // bindCustomUiHandlers();

    // set the browser window's title
    Window.setTitle(I18nUtil.getConstant().fileUploadWindowTitle());
}

From source file:com.ikon.frontend.client.Main.java

License:Open Source License

/**
 * onModuleLoad2/*from www .j  a  va 2  s .  c o  m*/
 */
public void onModuleLoad2() {
    // Initialize workspace properties
    workspaceUserProperties = new WorkspaceUserProperties();

    // Initialize user home
    userHome = new GWTUserConfig();

    // Initialize panels
    mainPanel = new ExtendedDockPanel();

    // Loading popup
    startUpPopup = new StartUpPopup();
    startUpPopup.setWidth("100px");
    startUpPopup.setHeight("50px");
    startUpPopup.setStyleName("okm-Popup");
    startUpPopup.addStyleName("okm-DisableSelect");

    // Initialize general panels
    fileUpload = new FileUploadPopup();
    fileUpload.setStyleName("okm-Popup");
    errorPopup = new ErrorPopup(false);
    errorPopup.setStyleName("okm-Popup-Error");
    errorPopup.setWidth("100px");
    errorPopup.setHeight("50px");
    errorPopupServer = new ErrorPopup();
    errorPopupServer.setStyleName("okm-Popup-Error");
    errorPopupServer.setWidth("100px");
    errorPopupServer.setHeight("50px");
    errorPopupLogout = new ErrorPopup(true);
    errorPopupLogout.setStyleName("okm-Popup-Error");
    errorPopupLogout.setWidth("100px");
    errorPopupLogout.setHeight("50px");
    msgPopup = new MsgPopup();
    msgPopup.setStyleName("okm-Popup");
    msgPopup.setWidth("300px");
    msgPopup.setHeight("205px");
    externalURLPopup = new ExternalURLPopup();
    externalURLPopup.setStyleName("okm-Popup");
    logoutPopup = new LogoutPopup();
    logoutPopup.setWidth("250");
    logoutPopup.setHeight("110");
    logoutPopup.setStyleName("okm-Popup");
    logoutPopup.addStyleName("okm-DisableSelect");
    securityPopup = new SecurityPopup();
    securityPopup.setWidth("600");
    securityPopup.setHeight("400");
    securityPopup.setStyleName("okm-Popup");
    securityPopup.addStyleName("okm-DisableSelect");
    aboutPopup = new AboutPopup();
    aboutPopup.setWidth("300px");
    aboutPopup.setHeight("220px");
    aboutPopup.setStyleName("okm-Popup");
    aboutPopup.addStyleName("okm-DisableSelect");
    userPopup = new UserPopup();
    userPopup.setWidth("470px");
    userPopup.setHeight("220px");
    userPopup.setStyleName("okm-Popup");
    // userPopup.addStyleName("okm-DisableSelect");
    confirmPopup = new ConfirmPopup();
    confirmPopup.setWidth("300px");
    confirmPopup.setHeight("125px");
    confirmPopup.setStyleName("okm-Popup");
    confirmPopup.addStyleName("okm-DisableSelect");
    dragable = new Dragable();
    propertyGroupPopup = new PropertyGroupPopup();
    propertyGroupPopup.setWidth("300px");
    propertyGroupPopup.setHeight("50px");
    propertyGroupPopup.setStyleName("okm-Popup");
    propertyGroupPopup.addStyleName("okm-DisableSelect");
    workflowPopup = new WorkflowPopup();
    workflowPopup.setWidth("300px");
    workflowPopup.setHeight("100px");
    workflowPopup.setStyleName("okm-Popup");
    workflowPopup.addStyleName("okm-DisableSelect");
    notifyPopup = new NotifyPopup();
    notifyPopup.setWidth("400px");
    notifyPopup.setHeight("100px");
    notifyPopup.setStyleName("okm-Popup");
    debugConsolePopup = new DebugConsolePopup();
    debugConsolePopup.setWidth("300px");
    debugConsolePopup.setHeight("100px");
    debugConsolePopup.setStyleName("okm-Popup");
    debugConsolePopup.addStyleName("okm-DisableSelect");
    findFolderSelectPopup = new FindFolderSelectPopup();
    findFolderSelectPopup.setWidth("700px");
    findFolderSelectPopup.setHeight("390px");
    findFolderSelectPopup.setStyleName("okm-Popup");
    findFolderSelectPopup.addStyleName("okm-DisableSelect");
    findDocumentSelectPopup = new FindDocumentSelectPopup();
    findDocumentSelectPopup.setWidth("700px");
    findDocumentSelectPopup.setHeight("390px");
    findDocumentSelectPopup.setStyleName("okm-Popup");
    findDocumentSelectPopup.addStyleName("okm-DisableSelect");
    wizardPopup = new WizardPopup();
    wizardPopup.setWidth("400px");
    wizardPopup.setHeight("40px");
    wizardPopup.setStyleName("okm-Popup");
    wizardPopup.addStyleName("okm-DisableSelect");
    reportPopup = new ReportPopup();
    reportPopup.setWidth("250px");
    reportPopup.setHeight("40px");
    reportPopup.setStyleName("okm-Popup");
    reportPopup.addStyleName("okm-DisableSelect");
    templateWizardPopup = new TemplateWizardPopup();
    templateWizardPopup.setWidth("400px");
    templateWizardPopup.setHeight("40px");
    templateWizardPopup.setStyleName("okm-Popup");
    templateWizardPopup.addStyleName("okm-DisableSelect");
    onlineUsersPopup = new OnlineUsersPopup();
    onlineUsersPopup.setWidth("250px");
    onlineUsersPopup.setHeight("350px");
    onlineUsersPopup.setStyleName("okm-Popup");
    onlineUsersPopup.addStyleName("okm-DisableSelect");
    testPopup = new TestPopup();
    testPopup.setWidth("600px");
    testPopup.setHeight("500px");
    testPopup.setStyleName("okm-Popup");
    notesPopup = new NotesPopup();
    notesPopup.setWidth("470px");
    notesPopup.setHeight("220px");
    notesPopup.setStyleName("okm-Popup");
    categoriesPopup = new CategoriesPopup();
    categoriesPopup.setWidth("470px");
    categoriesPopup.setHeight("220px");
    categoriesPopup.setStyleName("okm-Popup");
    keywordsPopup = new KeywordsPopup();
    keywordsPopup.setWidth("470px");
    keywordsPopup.setHeight("100px");
    keywordsPopup.setStyleName("okm-Popup");
    templatePopup = new TemplatePopup();
    templatePopup.setWidth("350px");
    templatePopup.setHeight("75px");
    templatePopup.setStyleName("okm-Popup");
    conversionStatus = new ConversionStatus();
    omrPopup = new OmrPopup();
    omrPopup.setWidth("150px");
    omrPopup.setHeight("75px");
    omrPopup.setStyleName("okm-Popup");
    registerPFXPopup = new RegisterPFXPopup();
    registerPFXPopup.setStyleName("okm-Popup");
    previewPopup = new PreviewPopup();
    previewPopup.setStyleName("okm-Popup");
    retentionPolicyPopup = new RetentionPolicyPopup();
    stampPopup = new StampPopup();

    // Get grid of scrollbars, and clear out the window's built-in margin,
    // because we want to take advantage of the entire client area.
    Window.enableScrolling(false);
    Window.setMargin("0px");

    //RootPanel.get().add(new Test());
    //RootPanel.get().add(new Test2());
    //RootPanel.get().add(new Test3());
    RootPanel.get().add(mainPanel);
    RootPanel.get().add(dragable);

    Window.addWindowClosingHandler(new ClosingHandler() {
        @Override
        public void onWindowClosing(ClosingEvent event) {
            Main.get().windowClosing = true;
            startUp.keepAlive.cancel();
            if (Main.get().mainPanel.bottomPanel.userInfo.isConnectedToChat()) {
                Main.get().mainPanel.bottomPanel.userInfo.logoutChat();
            }
        }
    });

    // Sets the active folder tree, it'll be used to store the active folder
    // every time switching stack panel
    activeFolderTree = mainPanel.desktop.navigator.taxonomyTree;

    // Initialize on startup when all objects are created sequentially
    startUpPopup.show();
    startUp = new StartUp();
    startUp.init();

    // Auto-publish the method into JS when the GWT module loads.
    initJavaScriptApi();
    mainPanel.topPanel.toolBar.initJavaScriptApi(mainPanel.topPanel.toolBar);
    fileUpload.initJavaScriptApi();
    new NavigatorComunicator().initJavaScriptApi();

    // Initialize commonUI public js api
    CommonUI commonUI = new CommonUI();
    commonUI.initJavaScriptApi(commonUI);
}

From source file:com.kobol.webclient.client.main.view.MainPageSmartGwtView.java

License:LGPL

@Inject
public MainPageSmartGwtView(Masthead masthead, ApplicationMenu applicationMenu,
        NavigationPaneHeader navigationPaneHeader, NavigationPane navigationPane) {
    this.masthead = masthead;
    this.applicationMenu = applicationMenu;
    this.navigationPaneHeader = navigationPaneHeader;
    this.navigationPane = navigationPane;

    // get rid of scroll bars, and clear out the window's built-in margin,
    // because we want to take advantage of the entire client area
    Window.enableScrolling(false);
    Window.setMargin(DEFAULT_MARGIN);

    // initialise the main layout container
    panel = new VLayout();
    panel.setWidth100();/*www.  ja v a2s. com*/
    panel.setHeight100();

    // initialise the North layout container
    northLayout = new HLayout();
    northLayout.setHeight(NORTH_HEIGHT);

    initApplicationMenu();

    // initialise the nested layout container
    VLayout vLayout = new VLayout();
    vLayout.addMember(this.masthead);
    vLayout.addMember(this.applicationMenu);
    vLayout.addMember(this.navigationPaneHeader);

    // add the nested layout container to the North layout container
    northLayout.addMember(vLayout);

    initNavigationPane();

    // initialise the West layout container
    westLayout = this.navigationPane;

    // initialise the South layout container
    southLayout = new HLayout();

    // add the North and South layout containers to the main layout
    // container
    panel.addMember(northLayout);
    panel.addMember(southLayout);
}

From source file:com.konakart.client.Konakart.java

License:Open Source License

/**
 * This method constructs the application user interface by instantiating controls and hooking
 * up event listeners.//from  w w w .  ja  va 2  s  .  c  o  m
 */
public void onModuleLoad() {
    if (RootPanel.get("nowloading") != null) {
        RootPanel.get("nowloading").setVisible(false);
    }

    setKK(this);

    // Get the parameters from the JSP
    getParameters("kkLabelForm0");

    // Determine whether we are in hosted mode or not
    isHostedMode = hostedMode();

    // Get rid of scrollbars, and clear out the window's built-in margin,
    // because we want to take advantage of the entire client area.
    // Window.enableScrolling(false);
    Window.setMargin("0px");

    // Add the window resize event, so that we can adjust the UI.
    Window.addResizeHandler(this);

    // Call the window resized handler to get the initial sizes setup.
    onWindowResized(Window.getClientWidth(), Window.getClientHeight());

    // Set redirect URL
    setRedirectUrl();

    // Get the ball rolling by figuring out whether the customer is logged in
    getMyKKGWTService().isLoggedIn(isLoggedInCallback);
}

From source file:com.logicaldoc.gui.setup.client.Setup.java

@Override
public void onModuleLoad() {
    // Setup the language for localization
    RequestInfo loc = WindowUtils.getRequestInfo();

    // Tries to capture locale parameter
    String lang;/*w w  w.  ja  va2s.c o m*/
    if (loc.getParameter(Constants.LOCALE) != null && !loc.getParameter(Constants.LOCALE).equals("")) {
        lang = loc.getParameter(Constants.LOCALE);
    } else {
        // First we initialize language values
        lang = Util.getBrowserLanguage();
    }
    I18N.setLocale(lang);

    // Get grid of scrollbars, and clear out the window's built-in margin,
    // because we want to take advantage of the entire client area.
    Window.enableScrolling(false);
    Window.setMargin("0px");

    infoService.getInfo(I18N.getLocale(), Constants.TENANT_DEFAULTNAME, new AsyncCallback<GUIInfo>() {
        @Override
        public void onFailure(Throwable error) {
            SC.warn(error.getMessage());
        }

        @Override
        public void onSuccess(GUIInfo info) {
            I18N.init(info);
            initGUI(info);
        }
    });

}

From source file:com.openkm.frontend.client.Main.java

License:Open Source License

/**
 * onModuleLoad2/*from  w w  w  .  ja va2 s .co  m*/
 */
public void onModuleLoad2() {
    // Initialize workspace properties
    workspaceUserProperties = new WorkspaceUserProperties();

    // Initialize user home
    userHome = new GWTUserConfig();

    // Initialize panels
    mainPanel = new ExtendedDockPanel();

    // Loading popup
    startUpPopup = new StartUpPopup();
    startUpPopup.setWidth("300px");
    startUpPopup.setHeight("220px");
    startUpPopup.setStyleName("okm-Popup");
    startUpPopup.addStyleName("okm-DisableSelect");

    // Initialize general panels
    fileUpload = new FileUploadPopup();
    fileUpload.setStyleName("okm-Popup");
    errorPopup = new ErrorPopup(false);
    errorPopup.setStyleName("okm-Popup-Error");
    errorPopup.setWidth("380px");
    errorPopup.setHeight("205px");
    errorPopupLogout = new ErrorPopup(true);
    errorPopupLogout.setStyleName("okm-Popup-Error");
    errorPopupLogout.setWidth("300px");
    errorPopupLogout.setHeight("205px");
    msgPopup = new MsgPopup();
    msgPopup.setStyleName("okm-Popup");
    msgPopup.setWidth("550px");
    msgPopup.setHeight("290px");
    externalURLPopup = new ExternalURLPopup();
    externalURLPopup.setStyleName("okm-Popup");
    logoutPopup = new LogoutPopup();
    logoutPopup.setWidth("250");
    logoutPopup.setHeight("110");
    logoutPopup.setStyleName("okm-Popup");
    logoutPopup.addStyleName("okm-DisableSelect");
    securityPopup = new SecurityPopup();
    securityPopup.setWidth("600");
    securityPopup.setHeight("400");
    securityPopup.setStyleName("okm-Popup");
    securityPopup.addStyleName("okm-DisableSelect");
    aboutPopup = new AboutPopup();
    aboutPopup.setWidth("300px");
    aboutPopup.setHeight("220px");
    aboutPopup.setStyleName("okm-Popup");
    aboutPopup.addStyleName("okm-DisableSelect");
    userPopup = new UserPopup();
    userPopup.setWidth("470px");
    userPopup.setHeight("220px");
    userPopup.setStyleName("okm-Popup");
    // userPopup.addStyleName("okm-DisableSelect");
    confirmPopup = new ConfirmPopup();
    confirmPopup.setWidth("300px");
    confirmPopup.setHeight("125px");
    confirmPopup.setStyleName("okm-Popup");
    confirmPopup.addStyleName("okm-DisableSelect");
    dragable = new Dragable();
    propertyGroupPopup = new PropertyGroupPopup();
    propertyGroupPopup.setWidth("300px");
    propertyGroupPopup.setHeight("50px");
    propertyGroupPopup.setStyleName("okm-Popup");
    propertyGroupPopup.addStyleName("okm-DisableSelect");
    workflowPopup = new WorkflowPopup();
    workflowPopup.setWidth("300px");
    workflowPopup.setHeight("100px");
    workflowPopup.setStyleName("okm-Popup");
    workflowPopup.addStyleName("okm-DisableSelect");
    notifyPopup = new NotifyPopup();
    notifyPopup.setWidth("400px");
    notifyPopup.setHeight("100px");
    notifyPopup.setStyleName("okm-Popup");
    debugConsolePopup = new DebugConsolePopup();
    debugConsolePopup.setWidth("300px");
    debugConsolePopup.setHeight("100px");
    debugConsolePopup.setStyleName("okm-Popup");
    debugConsolePopup.addStyleName("okm-DisableSelect");
    findFolderSelectPopup = new FindFolderSelectPopup();
    findFolderSelectPopup.setWidth("700px");
    findFolderSelectPopup.setHeight("390px");
    findFolderSelectPopup.setStyleName("okm-Popup");
    findFolderSelectPopup.addStyleName("okm-DisableSelect");
    findDocumentSelectPopup = new FindDocumentSelectPopup();
    findDocumentSelectPopup.setWidth("700px");
    findDocumentSelectPopup.setHeight("390px");
    findDocumentSelectPopup.setStyleName("okm-Popup");
    findDocumentSelectPopup.addStyleName("okm-DisableSelect");
    findSimilarDocumentSelectPopup = new FindSimilarDocumentSelectPopup();
    findSimilarDocumentSelectPopup.setWidth("700px");
    findSimilarDocumentSelectPopup.setHeight("390px");
    findSimilarDocumentSelectPopup.setStyleName("okm-Popup");
    findSimilarDocumentSelectPopup.addStyleName("okm-DisableSelect");
    wizardPopup = new WizardPopup();
    wizardPopup.setWidth("400px");
    wizardPopup.setHeight("40px");
    wizardPopup.setStyleName("okm-Popup");
    wizardPopup.addStyleName("okm-DisableSelect");
    reportPopup = new ReportPopup();
    reportPopup.setWidth("250px");
    reportPopup.setHeight("40px");
    reportPopup.setStyleName("okm-Popup");
    reportPopup.addStyleName("okm-DisableSelect");
    templateWizardPopup = new TemplateWizardPopup();
    templateWizardPopup.setWidth("400px");
    templateWizardPopup.setHeight("40px");
    templateWizardPopup.setStyleName("okm-Popup");
    templateWizardPopup.addStyleName("okm-DisableSelect");
    onlineUsersPopup = new OnlineUsersPopup();
    onlineUsersPopup.setWidth("250px");
    onlineUsersPopup.setHeight("350px");
    onlineUsersPopup.setStyleName("okm-Popup");
    onlineUsersPopup.addStyleName("okm-DisableSelect");
    testPopup = new TestPopup();
    testPopup.setWidth("600px");
    testPopup.setHeight("500px");
    testPopup.setStyleName("okm-Popup");
    notesPopup = new NotesPopup();
    notesPopup.setWidth("470px");
    notesPopup.setHeight("220px");
    notesPopup.setStyleName("okm-Popup");
    categoriesPopup = new CategoriesPopup();
    categoriesPopup.setWidth("470px");
    categoriesPopup.setHeight("220px");
    categoriesPopup.setStyleName("okm-Popup");
    keywordsPopup = new KeywordsPopup();
    keywordsPopup.setWidth("470px");
    keywordsPopup.setHeight("100px");
    keywordsPopup.setStyleName("okm-Popup");
    pdfMergePopup = new PdfMergePopup();
    pdfMergePopup.setWidth("400px");
    pdfMergePopup.setHeight("75px");
    pdfMergePopup.setStyleName("okm-Popup");
    templatePopup = new TemplatePopup();
    templatePopup.setWidth("350px");
    templatePopup.setHeight("75px");
    templatePopup.setStyleName("okm-Popup");
    conversionStatus = new ConversionStatus();
    updatePropertyGroupPopup = new UpdatePropertyGroupPopup();
    updatePropertyGroupPopup.setWidth("250px");
    updatePropertyGroupPopup.setHeight("50px");
    updatePropertyGroupPopup.setStyleName("okm-Popup");
    convertPopup = new ConvertPopup();
    convertPopup.setWidth("150px");
    convertPopup.setHeight("50px");
    convertPopup.setStyleName("okm-Popup");

    // Get grid of scrollbars, and clear out the window's built-in margin,
    // because we want to take advantage of the entire client area.
    Window.enableScrolling(false);
    Window.setMargin("0px");

    RootPanel.get().add(mainPanel);
    RootPanel.get().add(dragable);

    Window.addWindowClosingHandler(new ClosingHandler() {
        @Override
        public void onWindowClosing(ClosingEvent event) {
            Main.get().windowClosing = true;
            startUp.keepAlive.cancel();
            if (Main.get().mainPanel.bottomPanel.userInfo.isConnectedToChat()) {
                Main.get().mainPanel.bottomPanel.userInfo.logoutChat();
            }
        }
    });

    // Sets the active folder tree, it'll be used to store the active folder
    // every time switching stack panel
    activeFolderTree = mainPanel.desktop.navigator.taxonomyTree;

    // Initialize on startup when all objects are created sequentially
    startUpPopup.show();
    startUp = new StartUp();
    startUp.init();

    // Auto-publish the method into JS when the GWT module loads.
    initJavaScriptApi();
    mainPanel.topPanel.toolBar.initJavaScriptApi(mainPanel.topPanel.toolBar);
    fileUpload.initJavaScriptApi();
    new NavigatorComunicator().initJavaScriptApi();

    // Initialize commonUI public js api
    CommonUI commonUI = new CommonUI();
    commonUI.initJavaScriptApi(commonUI);
}