本文整理了Java中com.vaadin.ui.CheckBox.getData()
方法的一些代码示例,展示了CheckBox.getData()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。CheckBox.getData()
方法的具体详情如下:
包路径:com.vaadin.ui.CheckBox
类名称:CheckBox
方法名:getData
暂无
代码示例来源:origin: org.opencms/opencms-core
/**
* Checks if two different versions are selected, and so can be compared.<p>
*
* @param check1 the first selected check box
* @param check2 the second selected check box
*
* @return true if the check boxes correspond to two different versions
*/
private boolean canCompare(CheckBox check1, CheckBox check2) {
return !((check1 == null) || (check2 == null) || (check1.getData() == check2.getData()));
}
代码示例来源:origin: org.opennms.features.topology.plugins/org.opennms.features.topology.plugins.browsers
public void selectAll(Table source) {
m_selectAll = true;
m_selectedCheckboxes.clear();
m_notSelectedCheckboxes.clear();
// Check all of the checkboxes
for (CheckBox button : m_checkboxes) {
button.setValue(true);
m_selectedCheckboxes.add((Integer)button.getData());
}
}
代码示例来源:origin: org.opencms/opencms-core
CmsVaadinUtils.getMessageText(Messages.GUI_HISTORY_DIALOG_SELECT_TWO_DIFFERENT_VERSIONS_0));
} else {
CmsHistoryResourceBean bean1 = (CmsHistoryResourceBean)(check1.getData());
CmsHistoryResourceBean bean2 = (CmsHistoryResourceBean)(check2.getData());
VerticalLayout diffContainer = new VerticalLayout();
diffContainer.setSpacing(true);
内容来源于网络,如有侵权,请联系作者删除!