All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.googlecode.mgwt.ui.client.theme.platform.progress.ProgressIndicatorIOSAppearance Maven / Gradle / Ivy

The newest version!
package com.googlecode.mgwt.ui.client.theme.platform.progress;

import com.google.gwt.core.shared.GWT;
import com.google.gwt.dom.client.Element;
import com.google.gwt.resources.client.ClientBundle;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiTemplate;

import com.googlecode.mgwt.ui.client.widget.progress.ProgressIndicator;
import com.googlecode.mgwt.ui.client.widget.progress.ProgressIndicatorAppearance;

public class ProgressIndicatorIOSAppearance implements
    ProgressIndicatorAppearance {

  // If we supply a full package name for a ui.xml file its fine with the GWT compiler
  // But eclipse reports a compile error...
  // This tricks eclipse to not show a compile error.
  public static final String TRICKING_ECLIPSE_WITH_FILENAME =
      "com.googlecode.mgwt.ui.client.widget.progress.ProgressSpinnerBaseAppearance.ui.xml";

  static {
    Resources.INSTANCE.css().ensureInjected();
  }

  interface Css extends IOSProgressIndicatorCss {}

  interface IOSProgressIndicatorCss extends ProgressIndicatorCss {
    @ClassName("mgwt-ProgressSpinner")
    String progressIndicator();
  }

  interface Resources extends ClientBundle {

    Resources INSTANCE = GWT.create(Resources.class);

    @Source({ "com/googlecode/mgwt/ui/client/widget/progress/progressspinner.css" })
    Css css();
  }

  @Override
  public ProgressIndicatorCss css() {
    return Resources.INSTANCE.css();
  }

  @UiTemplate(TRICKING_ECLIPSE_WITH_FILENAME)
  interface Binder extends UiBinder {
  }

  private static final Binder UI_BINDER = GWT.create(Binder.class);

  @Override
  public UiBinder uiBinder() {
    return UI_BINDER;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy