Package org.gwt.mosaic.ui.client.layout

Examples of org.gwt.mosaic.ui.client.layout.HasLayoutManager


      }
    }

    public void invalidate() {
      if (target instanceof Widget && !(target instanceof HasLayoutManager)) {
        HasLayoutManager lm = WidgetHelper.getParent((Widget) target);
        if (lm != null) {
          lm.invalidate();
        }
      }
    }
View Full Code Here


      if (_widget != null && (_widget instanceof HasLayoutManager)) {
        widget = _widget;
      }
    }
    if (widget instanceof HasLayoutManager) {
      final HasLayoutManager lp = (HasLayoutManager) widget;
      return lp.getPreferredSize();
    } else {
      return getOffsetSize(widget);
    }
  }
View Full Code Here

   */
  public static void invalidate(Widget widget) {
    if (widget instanceof HasLayoutManager) {
      ((HasLayoutManager) widget).invalidate();
    } else {
      HasLayoutManager lm = getParent(widget);
      if (lm != null) {
        lm.invalidate();
      }
    }
  }
View Full Code Here

   * @param widget the given {@code Widget}
   */
  public static void revalidate(Widget widget) {
    invalidate(widget);

    final HasLayoutManager parent = getParent(widget);
    if (parent != null) {
      revalidate((Widget) parent);
    } else {
      layout(widget);
    }
View Full Code Here

   *      int)
   */
  public void onTabSelected(SourcesTabEvents sender, final int tabIndex) {
    deck.showWidget(tabIndex);

    HasLayoutManager lm = WidgetHelper.getParent(this);
    if (lm != null) {
      lm.layout();
    } else {
      layout();
    }

    SelectionEvent.fire(this, tabIndex);
View Full Code Here

   * {@inheritDoc}
   *
   * @see org.gwt.mosaic.ui.client.layout.HasLayoutManager#invalidate(com.google.gwt.user.client.ui.Widget)
   */
  public void invalidate(Widget widget) {
    final HasLayoutManager parent = WidgetHelper.getParent(this);
    if (parent != null) {
      parent.invalidate(null);
    }
  }
View Full Code Here

   */
  public static void invalidate(Widget widget) {
    if (widget instanceof HasLayoutManager) {
      ((HasLayoutManager) widget).invalidate(null);
    } else {
      HasLayoutManager lm = getParent(widget);
      if (lm != null) {
        lm.invalidate(widget);
      }
    }
  }
View Full Code Here

   * @param widget the given {@code Widget}
   */
  public static void revalidate(Widget widget) {
    invalidate(widget);

    final HasLayoutManager parent = getParent(widget);
    if (parent != null) {
      revalidate((Widget) parent);
    } else {
      layout(widget);
    }
View Full Code Here

      if (child != null && (child instanceof HasLayoutManager)) {
        widget = child;
      }
    }
    if (widget instanceof HasLayoutManager) {
      final HasLayoutManager lp = (HasLayoutManager) widget;
      return lp.getPreferredSize();
    } else {
      final Element clonedElem = widget.getElement().cloneNode(true).cast();
      final Element parentElem;
      if (widget.getParent() instanceof DecoratorPanel) {
        parentElem = widget.getParent().getParent().getElement();
View Full Code Here

    if (isCollapsed()) {
      images.disclosurePanelClosed().applyTo(image);
    } else {
      images.disclosurePanelOpen().applyTo(image);
    }
    HasLayoutManager lm = WidgetHelper.getParent(DisclosureLayoutPanel.this);
    if (lm != null) {
      lm.layout();
    } else {
      layout();
    }
  }
View Full Code Here

TOP

Related Classes of org.gwt.mosaic.ui.client.layout.HasLayoutManager

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.