本文整理了Java中com.vaadin.ui.Button.getIcon()
方法的一些代码示例,展示了Button.getIcon()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Button.getIcon()
方法的具体详情如下:
包路径:com.vaadin.ui.Button
类名称: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();
内容来源于网络,如有侵权,请联系作者删除!