Package com.google.gdt.eclipse.designer.model.widgets.live

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


  protected ILiveCacheEntry createComponentCacheEntry(AbstractComponentInfo component) {
    WidgetInfo widget = (WidgetInfo) component;
    // check for size
    setDefaultSizeIfEmpty(widget);
    // do create cache entry
    GwtLiveCacheEntry entry = new GwtLiveCacheEntry();
    entry.setImage(getWidgetImage(widget));
    entry.shouldSetSize(m_shouldSetSize);
    return entry;
  }
View Full Code Here


    }
  }

  @Override
  protected ILiveCacheEntry createComponentCacheEntryEx(Throwable e) {
    GwtLiveCacheEntry cacheEntry = new GwtLiveCacheEntry();
    // set image
    {
      Image image = createImageForException(e);
      cacheEntry.setImage(image);
    }
    // done
    return cacheEntry;
  }
View Full Code Here

  /**
   * Specifies "live" {@link WidgetInfo} properties externally, to avoid parsing (when
   * {@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);
  }
View Full Code Here

  }

  private GwtLiveCacheEntry getEntry() {
    // check if we have LiveComponentsCacheEntry set externally
    {
      GwtLiveCacheEntry entry =
          (GwtLiveCacheEntry) m_component.getArbitraryValue(GwtLiveCacheEntry.class);
      if (entry != null) {
        return entry;
      }
    }
View Full Code Here

  @Override
  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;
  }
View Full Code Here

    return componentImage;
  }

  @Override
  protected ILiveCacheEntry createComponentCacheEntryEx(Throwable e) {
    GwtLiveCacheEntry cacheEntry = new GwtLiveCacheEntry();
    // set image
    {
      Image image = createImageForException(e);
      cacheEntry.setImage(image);
    }
    // done
    return cacheEntry;
  }
View Full Code Here

  //
  ////////////////////////////////////////////////////////////////////////////
  private GwtLiveCacheEntry getEntry() {
    // check if we have LiveComponentsCacheEntry set externally
    {
      GwtLiveCacheEntry entry =
          (GwtLiveCacheEntry) m_component.getArbitraryValue(GwtLiveCacheEntry.class);
      if (entry != null) {
        return entry;
      }
    }
View Full Code Here

TOP

Related Classes of com.google.gdt.eclipse.designer.model.widgets.live.GwtLiveCacheEntry

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.