Examples of InlineStyle


Examples of rocket.style.client.InlineStyle

      RootPanel.get().add(this);

      // insert the root elementof this panel in the same spot were widget
      // was.
      final Element element = this.getElement();
      final InlineStyle elementInlineStyle = InlineStyle.getInlineStyle(element);
      elementInlineStyle.setString(Css.POSITION, "relative");
      elementInlineStyle.setInteger(Css.LEFT, 0, CssUnit.PX);
      elementInlineStyle.setInteger(Css.TOP, 0, CssUnit.PX);

      hijacker.replace(element);

      element.appendChild(widgetElement);
    }
View Full Code Here

Examples of rocket.style.client.InlineStyle

  @Override
  protected void afterCreateWidget() {
    this.setItems(createItems());

    final InlineStyle inlineStyle = InlineStyle.getInlineStyle( DOM.getChild(this.getElement(), 0) );
    inlineStyle.setString(Css.OVERFLOW_X, "hidden");
    inlineStyle.setString(Css.OVERFLOW_Y, "hidden");
  }
View Full Code Here

Examples of rocket.style.client.InlineStyle

      break;
    }
  }

  protected void adjustXCoordinate(final Widget widget, final int delta) {
    final InlineStyle inlineStyle = InlineStyle.getInlineStyle( widget.getElement() );
    final int x = inlineStyle.getInteger(Css.LEFT, CssUnit.PX, 0);

    inlineStyle.setString(Css.POSITION, "absolute");
    inlineStyle.setInteger(Css.LEFT, x + delta, CssUnit.PX);
    inlineStyle.setInteger(Css.TOP, 0, CssUnit.PX);
  }
View Full Code Here

Examples of rocket.style.client.InlineStyle

      final Widget widget = widgets.next();
      final SplitterItem item = items.next();

      // set the widget position...
      final Element widgetElement = widget.getElement();
      final InlineStyle widgetInlineStyle = InlineStyle.getInlineStyle(widgetElement);
      widgetInlineStyle.setString(Css.POSITION, "absolute");
      widgetInlineStyle.setInteger(Css.LEFT, left, CssUnit.PX);
      widgetInlineStyle.setInteger(Css.TOP, 0, CssUnit.PX);
      widgetInlineStyle.setString(Css.OVERFLOW, "hidden");

      // set the size(width/height)...
      widget.setHeight("100%");

      // is the last widget ???
      if (false == widgets.hasNext()) {
        widget.setWidth((availableWidth - left) + "px");
        break;
      }

      // calculate the new width...
      final int weight = item.getSizeShare();
      final int width = (int) (ratio * weight);
      widget.setWidth(width + "px");

      left = left + width;

      final Widget splitter = (Widget) widgets.next();

      // set the splitter position...
      final InlineStyle splitterInlineStyle = InlineStyle.getInlineStyle( splitter.getElement() );
      splitterInlineStyle.setString(Css.POSITION, "absolute");
      splitterInlineStyle.setInteger(Css.LEFT, left, CssUnit.PX);
      splitterInlineStyle.setInteger(Css.TOP, 0, CssUnit.PX);
      splitterInlineStyle.setString(Css.OVERFLOW, "hidden");

      // set the splitters size...
      splitter.setWidth(splitterWidth + "px");
      splitter.setHeight("100%");

View Full Code Here

Examples of rocket.style.client.InlineStyle

    // Must set absolute coordinates in order to read the coordinates of
    // element accurately IE6 bug
    final Element menuListElement = menuList.getElement();

    final InlineStyle menuListElementInlineStyle = InlineStyle.getInlineStyle(menuListElement);
    menuListElementInlineStyle.setString(Css.POSITION, "absolute");
    menuListElementInlineStyle.setInteger(Css.LEFT, 0, CssUnit.PX);
    menuListElementInlineStyle.setInteger(Css.TOP, 0, CssUnit.PX);

    // final Widget widget = event.getWidget();
    final Element widgetElement = event.getTarget();
    int x = Dom.getContainerLeftOffset(widgetElement);
    int y = Dom.getContainerTopOffset(widgetElement);

    x = x + event.getTargetElementX();
    y = y + event.getTargetElementY();

    menuListElementInlineStyle.setInteger(Css.LEFT, x, CssUnit.PX);
    menuListElementInlineStyle.setInteger(Css.TOP, y, CssUnit.PX);
    menuListElementInlineStyle.setInteger(Css.Z_INDEX, 1, CssUnit.NONE);

    this.fireMenuOpened(event, this);
  }
View Full Code Here

Examples of rocket.style.client.InlineStyle

    return Constants.HORIZONTAL_MENU_LIST_STYLE;
  }

  protected void open() {
    if (this.isHideable()) {
      final InlineStyle inlineStyle = InlineStyle.getInlineStyle( this.getElement() );
      inlineStyle.setInteger(Css.Z_INDEX, 1, CssUnit.NONE);
      inlineStyle.setString(Css.DISPLAY, "block");
      inlineStyle.setString(Css.VISIBILITY, "visible");
    }
  }
View Full Code Here

Examples of rocket.style.client.InlineStyle

  abstract protected void open();

  protected void hide() {
    if (this.isHideable()) {
      final InlineStyle inlineStyle = InlineStyle.getInlineStyle( this.getElement() );
      inlineStyle.setString(Css.VISIBILITY, "hidden");
      inlineStyle.setString(Css.DISPLAY, "none");
    }

    if (this.hasOpened()) {
      this.getOpened().hide();
      this.clearOpened();
View Full Code Here

Examples of rocket.style.client.InlineStyle

  }

  @Override
  protected void open() {
    if (this.isHideable()) {
      final InlineStyle inlineStyle = InlineStyle.getInlineStyle( this.getElement() );
      inlineStyle.setInteger(Css.Z_INDEX, 1, CssUnit.NONE);
      inlineStyle.setString(Css.DISPLAY, "block");
      inlineStyle.setString(Css.VISIBILITY, "visible");
    }
  }
View Full Code Here

Examples of rocket.style.client.InlineStyle

    final SimplePanel simplePanel = new SimplePanel();
    simplePanel.setWidget(widget);

    final Element element = simplePanel.getElement();
    final InlineStyle inlineStyle = InlineStyle.getInlineStyle( element );
    inlineStyle.setString(Css.OVERFLOW, "hidden");

    // required to make the inner div not overflow.
    inlineStyle.setString(Css.POSITION, "relative");
    return simplePanel;
  }
View Full Code Here

Examples of rocket.style.client.InlineStyle

   */
  abstract protected Widget createTile0(int column, int row);

  protected void updateInnerPanelOffset() {
    final Element element = this.getInnerPanel().getElement();
    final InlineStyle inlineStyle = InlineStyle.getInlineStyle( element );
    inlineStyle.setInteger(Css.LEFT, -WidgetConstants.VIEWPORT_X_OFFSET - this.getOriginX(), CssUnit.PX);
    inlineStyle.setInteger(Css.TOP, -WidgetConstants.VIEWPORT_Y_OFFSET - this.getOriginY(), CssUnit.PX);
  }
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.