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

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