com.vaadin.ui.Button.getIcon()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(2.1k)|赞(0)|评价(0)|浏览(98)

本文整理了Java中com.vaadin.ui.Button.getIcon()方法的一些代码示例,展示了Button.getIcon()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Button.getIcon()方法的具体详情如下:
包路径:com.vaadin.ui.Button
类名称:Button
方法名:getIcon

Button.getIcon介绍

[英]Returns the icon's alt text.
[中]

代码示例

代码示例来源:origin: com.haulmont.cuba/cuba-web

public String getClearButtonIcon() {
  return clearButton.getIcon().toString();
}

代码示例来源:origin: org.ikasan/ikasan-dashboard-jar

public void buttonClick(ClickEvent event)
  {
    Collection<ExclusionEvent> items = (Collection<ExclusionEvent>)container.getItemIds();
    Resource r = selectAllButton.getIcon();
    if(r.equals(VaadinIcons.CHECK_SQUARE_O))
    {
      selectAllButton.setIcon(VaadinIcons.CHECK_SQUARE);
      for(ExclusionEvent eo: items)
      {
        Item item = container.getItem(eo);
        CheckBox cb = (CheckBox)item.getItemProperty("").getValue();
        cb.setValue(true);
      }
    }
    else
    {
      selectAllButton.setIcon(VaadinIcons.CHECK_SQUARE_O);
      for(ExclusionEvent eo: items)
      {
        Item item = container.getItem(eo);
        CheckBox cb = (CheckBox)item.getItemProperty("").getValue();
        cb.setValue(false);
      }
    }
  }
});

代码示例来源:origin: org.ikasan/ikasan-dashboard-jar

Resource r = selectAllButton.getIcon();

代码示例来源:origin: org.ikasan/ikasan-dashboard-jar

Resource r = selectAllButton.getIcon();

代码示例来源:origin: org.ikasan/ikasan-dashboard-jar

Resource r = selectAllButton.getIcon();

代码示例来源:origin: org.ikasan/ikasan-dashboard-jar

Resource r = selectAllButton.getIcon();

代码示例来源:origin: org.ikasan/ikasan-dashboard-jar

public void buttonClick(Button.ClickEvent event)
  {
    Collection<Flow> itemIds = (Collection<Flow>)container.getItemIds();
    Resource r = selectAllButton.getIcon();
    if(r.equals(VaadinIcons.CHECK_SQUARE_O))
    {
      selectAllButton.setIcon(VaadinIcons.CHECK_SQUARE);
      for(Flow eo: itemIds)
      {
        Item item = container.getItem(eo);
        CheckBox cb = (CheckBox)item.getItemProperty("").getValue();
        cb.setValue(true);
      }
    }
    else
    {
      selectAllButton.setIcon(VaadinIcons.CHECK_SQUARE_O);
      for(Flow eo: itemIds)
      {
        Item item = container.getItem(eo);
        CheckBox cb = (CheckBox)item.getItemProperty("").getValue();
        cb.setValue(false);
      }
    }
  }
});

代码示例来源:origin: org.ikasan/ikasan-dashboard-jar

Resource r = selectAllButton.getIcon();

相关文章