Sha256: f2057a2a1442f8748f4583cc501a2e89c8caf56a2ac14f724becf0bf0936e8c8

Contents?: true

Size: 1.83 KB

Versions: 1

Compression:

Stored size: 1.83 KB

Contents

/**
 * Sencha GXT 3.1.1 - Sencha for GWT
 * Copyright(c) 2007-2014, Sencha, Inc.
 * licensing@sencha.com
 *
 * http://www.sencha.com/products/gxt/license/
 */
package com.dldinternet.aws.cfn.stacker.desktop.client.theme.base.startbutton;

import com.google.gwt.cell.client.Cell.Context;
import com.google.gwt.core.client.GWT;
import com.google.gwt.resources.client.ClientBundle;
import com.google.gwt.resources.client.ImageResource;
import com.google.gwt.safehtml.shared.SafeHtmlBuilder;
import com.sencha.gxt.cell.core.client.ButtonCell;
import com.dldinternet.aws.cfn.stacker.desktop.client.widget.StartButtonCell.StartButtonCellAppearance;
import com.sencha.gxt.theme.base.client.button.ButtonCellDefaultAppearance;
import com.sencha.gxt.theme.base.client.frame.TableFrame;
import com.sencha.gxt.theme.base.client.frame.TableFrame.TableFrameResources;

public class StartButtonCellDefaultAppearance<C> extends ButtonCellDefaultAppearance<C> implements
    StartButtonCellAppearance<C> {

  public interface StartButtonCellResources extends ButtonCellResources, ClientBundle {

    ImageResource startButtonIcon();

    @Source({"com/sencha/gxt/theme/base/client/button/ButtonCell.css", "StartButtonCell.css"})
    @Override
    StartButtonCellStyle style();
  }

  public interface StartButtonCellStyle extends ButtonCellStyle {
  }

  public StartButtonCellDefaultAppearance() {
    super(GWT.<ButtonCellResources> create(StartButtonCellResources.class),
        GWT.<ButtonCellTemplates> create(ButtonCellTemplates.class), new TableFrame(
            GWT.<TableFrameResources> create(StartButtonTableFrameResources.class)));
  }

  @Override
  public void render(final ButtonCell<C> cell, Context context, C value, SafeHtmlBuilder sb) {
    cell.setIcon(((StartButtonCellResources) resources).startButtonIcon());
    super.render(cell, context, value, sb);
  }

}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
aws-cfn-stacker-0.0.6 ui/src/com/dldinternet/aws/cfn/stacker/desktop/client/theme/base/startbutton/StartButtonCellDefaultAppearance.java