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

eu.future.earth.gwt.client.ui.ImageResources Maven / Gradle / Ivy

The newest version!
package eu.future.earth.gwt.client.ui;

import com.google.gwt.core.client.GWT;

import eu.future.earth.gwt.client.ui.button.ButtonImages;
import eu.future.earth.gwt.client.ui.button.ButtonsTexts;
import eu.future.earth.gwt.client.ui.button.GeneralImages;
import eu.future.earth.gwt.client.ui.button.UiType;
import eu.future.earth.gwt.client.ui.button.x16.Button16Images;
import eu.future.earth.gwt.client.ui.button.x24.Button24Images;

public class ImageResources {

	public static final String LABEL_FIELD_PANEL = "ftr-label-field-panel";

	public static final String LABEL = "ftr-label";

	public static final String LABEL_REQUIRED = "ftr-label-required";

	public static final String LABEL_ERROR = "ftr-label-error";

	public static final String FIELD = "ftr-field";

	public static final String FIELD_REQUIRED = "ftr-field-required";

	public static final String FIELD_ERROR = "ftr-field-error";

	public static final GeneralImages IMAGES = (GeneralImages) GWT.create(GeneralImages.class);

	public static final Button24Images s24 = (Button24Images) GWT.create(Button24Images.class);

	public static final Button16Images s16 = (Button16Images) GWT.create(Button16Images.class);

	public static final ButtonsTexts STATIC_TEXT = (ButtonsTexts) GWT.create(ButtonsTexts.class);

	public static final ButtonImages getImages(UiType tupe) {
		if (UiType.Touch.equals(tupe)) {
			return s24;
		} else {
			return s16;
		}
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy