Examples of IBrowserShell


Examples of com.google.gdt.eclipse.designer.hosted.IBrowserShell

        ExternalFactoriesHelper.getElementsInstances(
          IBrowserShellFactory.class,
          "com.google.gdt.eclipse.designer.hosted.2_0.browserShellFactory",
          "factory");
    for (IBrowserShellFactory factory : factories) {
      IBrowserShell shell = factory.create();
      if (shell != null) {
        return shell;
      }
    }
    // no shell has been created by factories
View Full Code Here

Examples of com.google.gdt.eclipse.designer.hosted.IBrowserShell

    // IE in strict mode always has border 2px
    if (state.isStrictMode() && state.isBrowserExplorer()) {
      size.expand(2 + 2, 2 + 2);
    }
    // prepare Shell
    IBrowserShell shell = state.getShell();
    shell.prepare();
    // set Shell size
    {
      Rectangle shellBounds = shell.computeTrim(0, 0, size.width, size.height);
      shell.setSize(shellBounds.width, shellBounds.height);
    }
  }
View Full Code Here

Examples of com.google.gdt.eclipse.designer.hosted.IBrowserShell

  @Override
  public void apply() throws Exception {
    GwtState state = m_rootPanel.getState();
    Dimension size = getSize();
    // prepare Shell
    IBrowserShell shell = state.getShell();
    shell.prepare();
    // set Shell size
    {
      Rectangle shellBounds = shell.computeTrim(0, 0, size.width, size.height);
      if (state.isStrictMode() && !state.isBrowserWebKit()) {
        shellBounds.width += SIZE_EXPAND;
        shellBounds.height += SIZE_EXPAND;
      }
      shell.setSize(shellBounds.width, shellBounds.height);
    }
    // in "strict" mode RootPanel (i.e. "body") has size required by widgets, so force size
    if (state.isStrictMode()) {
      Insets margins = state.getMargins(m_rootPanel.getElement());
      Insets borders = state.getBorders(m_rootPanel.getElement());
View Full Code Here

Examples of com.google.gdt.eclipse.designer.hosted.IBrowserShell

    if (correctedSize.width > 0 && correctedSize.height > 0) {
      doApply(correctedSize);
    }
    afterApply();
    // set Shell size
    IBrowserShell shell = m_widget.getState().getShell();
    shell.prepare();
    org.eclipse.swt.graphics.Rectangle shellBounds =
        shell.computeTrim(0, 0, size.width, size.height);
    shell.setSize(shellBounds.width + SIZE_EXPAND, shellBounds.height + SIZE_EXPAND);
  }
View Full Code Here

Examples of com.google.gdt.eclipse.designer.hosted.IBrowserShell

    // IE in strict mode always has border 2px
    if (state.isStrictMode() && state.isBrowserExplorer()) {
      size.expand(2 + 2, 2 + 2);
    }
    // prepare Shell
    IBrowserShell shell = state.getShell();
    shell.prepare();
    // set Shell size
    {
      Rectangle shellBounds = shell.computeTrim(0, 0, size.width, size.height);
      shell.setSize(shellBounds.width, shellBounds.height);
    }
  }
View Full Code Here

Examples of com.google.gdt.eclipse.designer.hosted.IBrowserShell

    if (correctedSize.width > 0 && correctedSize.height > 0) {
      doApply(correctedSize);
    }
    afterApply();
    // set Shell size
    IBrowserShell shell = m_widget.getState().getShell();
    shell.prepare();
    org.eclipse.swt.graphics.Rectangle shellBounds =
        shell.computeTrim(0, 0, size.width, size.height);
    shell.setSize(shellBounds.width + SIZE_EXPAND, shellBounds.height + SIZE_EXPAND);
  }
View Full Code Here

Examples of com.google.gdt.eclipse.designer.hosted.IBrowserShell

        ExternalFactoriesHelper.getElementsInstances(
            IBrowserShellFactory.class,
            "com.google.gdt.eclipse.designer.hosted.2_2.browserShellFactory",
            "factory");
    for (IBrowserShellFactory factory : factories) {
      IBrowserShell shell = factory.create();
      if (shell != null) {
        return shell;
      }
    }
    // no shell has been created by factories
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.