/** * Sencha GXT 3.0.0b - Sencha for GWT * Copyright(c) 2007-2012, Sencha, Inc. * licensing@sencha.com * * http://www.sencha.com/products/gxt/license/ */ package com.sencha.gxt.desktop.client.widget; import com.google.gwt.core.client.GWT; import com.google.gwt.resources.client.CssResource; import com.sencha.gxt.cell.core.client.TextButtonCell; import com.sencha.gxt.core.client.XTemplates; import com.sencha.gxt.desktop.client.theme.base.startbutton.StartButtonCellDefaultAppearance; /** * Provides the unique appearance of a start button cell. A cell is a * lightweight representation of a renderable object. A start button cell * inherits many of the properties of a text button cell. * <p/> * For more information on the use of the appearance pattern, see <a * href='http://www.sencha.com/blog/ext-gwt-3-appearance-design'>Sencha GXT 3.0 * Appearance Design</a> */ public class StartButtonCell extends TextButtonCell { /** * Defines the appearance interface for a start button cell. * <p/> * The appearance interface defines the interaction between the widget and an * appearance instance. The concrete implementation of the appearance * interface typically incorporates the external HTML and CSS source using the * {@link XTemplates} and {@link CssResource} interfaces. * * @param <T> the type that this Cell represents */ public interface StartButtonCellAppearance<T> extends ButtonCellAppearance<T> { } /** * Constructs a start button cell with the default appearance. * <p/> * The GWT module file contains a replace-with directive that maps the * appearance interface (specified as the argument to the create method) to a * concrete implementation class, e.g. {@link StartButtonCellDefaultAppearance}. See * {@code Desktop.gwt.xml} for more information. */ public StartButtonCell() { this(GWT.<StartButtonCellAppearance<String>> create(StartButtonCellAppearance.class)); } /** * Constructs a start button cell with the specified appearance. * * @param appearance the appearance of the start button cell. */ public StartButtonCell(StartButtonCellAppearance<String> appearance) { super(appearance); } }