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

x33g5p2x  于2022-01-18 转载在 其他  
字(1.4k)|赞(0)|评价(0)|浏览(130)

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

CheckBox.setPropertyDataSource介绍

暂无

代码示例

代码示例来源:origin: fi.vm.sade.organisaatio/organisaatio-ui-widgets

private CheckBox initializeCheckbox(String messageKey, String debugId, String dataSourceProp, VerticalLayout parentC) {
  CheckBox cb = new CheckBox(I18N.getMessage(messageKey));
  cb.setDebugId(createDebugId(debugId));
  cb.setImmediate(true);
  //model.setSuunnitellut(true);
  cb.setPropertyDataSource(new NestedMethodProperty(model, dataSourceProp));
  cb.addListener(new Property.ValueChangeListener() {
    @Override
    public void valueChange(ValueChangeEvent event) {
      //DEBUGSAWAY:log.debug("checkbox was clicked!!!");
      tree.reloadWithSearchData(model);
    }
  });
  parentC.addComponent(cb);
  return cb;
}

代码示例来源:origin: org.opencms/opencms-core

hl.setComponentAlignment(checkbox, Alignment.MIDDLE_LEFT);
m_selectionContainer.addItem(deleted.getStructureId());
checkbox.setPropertyDataSource(
  m_selectionContainer.getItem(deleted.getStructureId()).getItemProperty(PROP_SELECTED));
m_deletedResourceContainer.addComponent(hl);

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

filterSelected.setPropertyDataSource(filterItem.getItemProperty("selected"));

相关文章