/** * 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.shortcut.ShortcutCellDefaultAppearance; /** * Provides the unique appearance of a desktop shortcut cell. A cell is a * lightweight representation of a renderable object. A shortcut 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 ShortcutCell extends TextButtonCell { /** * Defines the appearance interface for a shortcut 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 ShortcutCellAppearance<T> extends ButtonCellAppearance<T> { } /** * Creates a shortcut 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 ShortcutCellDefaultAppearance}. See * {@code Desktop.gwt.xml} for more information. */ public ShortcutCell() { this(GWT.<ShortcutCellAppearance<String>> create(ShortcutCellAppearance.class)); } /** * Creates a shortcut cell with the specified appearance. * * @param appearance the appearance of the shortcut cell. */ public ShortcutCell(ShortcutCellAppearance<String> appearance) { super(appearance); } }