Package com.google.gwt.widgetideas.client

Examples of com.google.gwt.widgetideas.client.GlassPanel


  }

  private void resetGlassPanels() {
    removeGlassPanel();

    redGlassPanel = new GlassPanel(false);
    redGlassPanel.addStyleName("red");
    redAbsolutePanel.add(redGlassPanel, 0, 0);

    greenGlassPanel = new GlassPanel(true);
    greenGlassPanel.addStyleName("green");
    greenAbsolutePanel.add(greenGlassPanel, 0, 0);

    glassPanel3 = new GlassPanel(true);
    RootPanel.get().add(glassPanel3, 0, 0);
  }
View Full Code Here


    RootPanel.get().add(
        new Label(
            "The browser document will be covered by a semi-transparent glass panel."));
    RootPanel.get().add(
        new Label("Hit ESC or click anywhere on the glass panel to remove it."));
    RootPanel.get().add(new GlassPanel(true), 0, 0);

    // Create a small AbsolutePanel
    AbsolutePanel absolutePanel = new AbsolutePanel();
    absolutePanel.setPixelSize(100, 100);
    DOM.setStyleAttribute(absolutePanel.getElement(), "border",
        "1px solid black");
    absolutePanel.add(new Label(
        "This AbsolutePanel is covered with a semi-transparent green glass panel"));

    // Attach the AbsolutePanel
    RootPanel.get().add(absolutePanel, 50, 50);

    // Attach an absolute panel and style it green using this !important CSS
    // rule:
    // .green { background-color: green !important; }
    GlassPanel greenGlassPanel = new GlassPanel(false);
    greenGlassPanel.addStyleName("green");
    absolutePanel.add(greenGlassPanel, 0, 0);
  }
View Full Code Here

  }

  private void resetGlassPanels() {
    removeGlassPanel();

    redGlassPanel = new GlassPanel(false);
    redGlassPanel.addStyleName("red");
    redAbsolutePanel.add(redGlassPanel, 0, 0);

    greenGlassPanel = new GlassPanel(true);
    greenGlassPanel.addStyleName("green");
    greenAbsolutePanel.add(greenGlassPanel, 0, 0);

    glassPanel3 = new GlassPanel(true);
    RootPanel.get().add(glassPanel3, 0, 0);
  }
View Full Code Here

   */
  public Dialog(Focusable focusOnCloseWidget, boolean showOverlay) {
    super(false, true);
    this.focusOnCloseWidget = focusOnCloseWidget;
    if(showOverlay) {
      this.glassPanel = new GlassPanel(false);
      this.glassPanel.setVisible(false);
      RootPanel.get().add(glassPanel);
    }
    else {
      this.glassPanel = null;
View Full Code Here

  public static LoadingPanel show(Widget targetWidget, Widget w) {
    final LoadingPanel loadingPanel = new LoadingPanel(targetWidget);
    loadingPanel.setWidget(w);
    if (loadingPanel.glassPanel == null) {
      loadingPanel.glassPanel = new GlassPanel(false);
      loadingPanel.glassPanel.addStyleName("mosaic-GlassPanel-loading");
      DOM.setStyleAttribute(loadingPanel.glassPanel.getElement(), "zIndex",
          DOM.getStyleAttribute(loadingPanel.getElement(), "zIndex"));
    }
    if (loadingPanel.glassPanelParent == null) {
View Full Code Here

    }
  }

    public void showModal() {
  if (glassPanel == null) {
      glassPanel = new GlassPanel(false);
      glassPanel.addStyleName("mosaic-GlassPanel-default");
  }
  RootPanel.get().add(glassPanel, 0, 0);
  center();
  addPopupListener(this);
View Full Code Here

      // if (text != null && values != null) text = Format.substitute(text,
      // values);

      final InfoPanel infoPanel = new InfoPanel(caption, text, true);
      if (infoPanel.glassPanel == null) {
        infoPanel.glassPanel = new GlassPanel(false);
        infoPanel.glassPanel.addStyleName("mosaic-GlassPanel-default");
        DOM.setStyleAttribute(infoPanel.glassPanel.getElement(), "zIndex",
            DOM.getStyleAttribute(infoPanel.getElement(), "zIndex"));
      }
      RootPanel.get().add(infoPanel.glassPanel, 0, 0);
View Full Code Here

   */
  @Override
  public void show() {
    if (modal) {
      if (glassPanel == null) {
        glassPanel = new GlassPanel(false);
        glassPanel.addStyleName("mosaic-GlassPanel-default");
        DOM.setStyleAttribute(glassPanel.getElement(), "zIndex",
            DOM.getStyleAttribute(WindowPanel.this.getElement(), "zIndex"));
      }
      windowController.getBoundaryPanel().add(glassPanel, 0, 0);
View Full Code Here

      if (!isCollapsed()) {
        panel.hideContents(hideContentsOnMove);
      }
      if (!modal) {
        if (glassPanel == null) {
          glassPanel = new GlassPanel(false);
          glassPanel.addStyleName("mosaic-GlassPanel-invisible");
          DOM.setStyleAttribute(glassPanel.getElement(), "zIndex",
              DOM.getStyleAttribute(WindowPanel.this.getElement(), "zIndex"));
        }
        getBoundaryPanel().add(glassPanel, 0, 0);
View Full Code Here

    @Override
    public void dragStart() {
      panel.hideContents(true);
      if (!modal) {
        if (glassPanel == null) {
          glassPanel = new GlassPanel(false);
          glassPanel.addStyleName("mosaic-GlassPanel-invisible");
          final int zIndex = DOM.getIntStyleAttribute(
              WindowPanel.this.getElement(), "zIndex");
          DOM.setIntStyleAttribute(glassPanel.getElement(), "zIndex",
              zIndex - 1);
View Full Code Here

TOP

Related Classes of com.google.gwt.widgetideas.client.GlassPanel

Copyright © 2018 www.massapicom. 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.