示例#1
0
  public ToolButton(ToolBarCommand cmd) {
    super(null);
    this.addStyleDependentName("tool");

    this.cmd = cmd;
    super.getElement().getStyle().setBackgroundImage(cmd.getIconUrlAsString());
  }
示例#2
0
 public void setCmd(ToolBarCommand cmd) {
   this.cmd = cmd;
   super.getElement().getStyle().setBackgroundImage(cmd.getIconUrlAsString());
 }