com.sencha.gxt.theme.blue.client.toolbar.BlueToolBarAppearance Maven / Gradle / Ivy
/**
* Sencha GXT 3.0.0 - Sencha for GWT
* Copyright(c) 2007-2012, Sencha, Inc.
* [email protected]
*
* http://www.sencha.com/products/gxt/license/
*/
package com.sencha.gxt.theme.blue.client.toolbar;
import com.google.gwt.core.client.GWT;
import com.google.gwt.resources.client.ClientBundle;
import com.google.gwt.resources.client.CssResource;
import com.google.gwt.resources.client.ImageResource;
import com.google.gwt.resources.client.ImageResource.ImageOptions;
import com.google.gwt.resources.client.ImageResource.RepeatStyle;
import com.sencha.gxt.core.client.resources.StyleInjectorHelper;
import com.sencha.gxt.theme.base.client.toolbar.ToolBarBaseAppearance;
public class BlueToolBarAppearance extends ToolBarBaseAppearance {
public interface BlueToolBarResources extends ClientBundle {
@Source({"com/sencha/gxt/theme/base/client/toolbar/ToolBarBase.css", "BlueToolBar.css"})
BlueToolBarStyle style();
@ImageOptions(repeatStyle = RepeatStyle.Horizontal)
ImageResource background();
}
public interface BlueToolBarStyle extends ToolBarBaseStyle, CssResource {
}
private final BlueToolBarStyle style;
private final BlueToolBarResources resources;
public BlueToolBarAppearance() {
this(GWT. create(BlueToolBarResources.class));
}
public BlueToolBarAppearance(BlueToolBarResources resources) {
this.resources = resources;
this.style = this.resources.style();
StyleInjectorHelper.ensureInjected(style, true);
}
@Override
public String toolBarClassName() {
return style.toolBar();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy