Examples of shouldSetSize()


Examples of com.google.gdt.eclipse.designer.model.widgets.live.GwtLiveCacheEntry.shouldSetSize()

    // check for size
    setDefaultSizeIfEmpty(widget);
    // do create cache entry
    GwtLiveCacheEntry entry = new GwtLiveCacheEntry();
    entry.setImage(getWidgetImage(widget));
    entry.shouldSetSize(m_shouldSetSize);
    return entry;
  }

  /**
   * If widget has no size and no forced size (i.e. most probably custom component), then set some
View Full Code Here

Examples of com.google.gdt.eclipse.designer.model.widgets.live.GwtLiveCacheEntry.shouldSetSize()

   * {@link CreationSupport} is not {@link ILiveCreationSupport}).
   */
  public static void setEntry(WidgetInfo widget, Image image, boolean shouldSetSize) {
    GwtLiveCacheEntry entry = new GwtLiveCacheEntry();
    entry.setImage(image);
    entry.shouldSetSize(shouldSetSize);
    widget.putArbitraryValue(GwtLiveCacheEntry.class, entry);
  }

  private GwtLiveCacheEntry getEntry() {
    // check if we have LiveComponentsCacheEntry set externally
View Full Code Here

Examples of com.google.gdt.eclipse.designer.model.widgets.live.GwtLiveCacheEntry.shouldSetSize()

  protected ILiveCacheEntry createComponentCacheEntry(AbstractComponentInfo component) {
    FormItemInfo formItem = (FormItemInfo) component;
    // do create cache entry
    GwtLiveCacheEntry entry = new GwtLiveCacheEntry();
    entry.setImage(getWidgetImage(formItem));
    entry.shouldSetSize(false);
    return entry;
  }

  /**
   * @return the {@link Image} of {@link FormItemInfo}.
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.