本文整理了Java中com.vaadin.ui.CheckBox.setImmediate()
方法的一些代码示例,展示了CheckBox.setImmediate()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。CheckBox.setImmediate()
方法的具体详情如下:
包路径:com.vaadin.ui.CheckBox
类名称:CheckBox
方法名:setImmediate
暂无
代码示例来源:origin: org.aperteworkflow/gui-commons
public static CheckBox checkBox(String caption) {
CheckBox cb = new CheckBox();
if (caption != null) {
cb.setCaption(caption);
}
cb.setValue(false);
cb.setImmediate(true);
cb.setWidth(100, Sizeable.UNITS_PERCENTAGE);
return cb;
}
代码示例来源: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.opennms.features/vaadin-surveillance-views
public Object generateCell(Table source, final Object itemId, Object columnId) {
CheckBox checkBox = new CheckBox();
checkBox.setImmediate(true);
checkBox.setDescription("Make this Surveillance View configuration the default");
final View view = m_beanItemContainer.getItem(itemId).getBean();
checkBox.setValue(SurveillanceViewProvider.getInstance().getSurveillanceViewConfiguration().getDefaultView().equals(view.getName()));
checkBox.addValueChangeListener(new Property.ValueChangeListener() {
@Override
public void valueChange(Property.ValueChangeEvent valueChangeEvent) {
boolean newValue = ((Boolean) valueChangeEvent.getProperty().getValue());
if (newValue) {
SurveillanceViewProvider.getInstance().getSurveillanceViewConfiguration().setDefaultView(view.getName());
}
m_table.refreshRowCache();
SurveillanceViewProvider.getInstance().save();
((SurveillanceViewsConfigUI) getUI()).notifyMessage("Data saved", "Default surveillance view");
}
});
return checkBox;
}
}
代码示例来源:origin: eclipse/hawkbit
private VerticalLayout initView() {
final Label label = new Label(i18n.getMessage("label.auto.assign.description"));
checkBox = new CheckBox(i18n.getMessage("label.auto.assign.enable"));
checkBox.setId(UIComponentIdProvider.DIST_SET_SELECT_ENABLE_ID);
checkBox.setImmediate(true);
checkBox.addValueChangeListener(this);
setTableEnabled(false);
final VerticalLayout verticalLayout = new VerticalLayout();
verticalLayout.addComponent(label);
verticalLayout.addComponent(checkBox);
verticalLayout.addComponent(dsTable);
return verticalLayout;
}
代码示例来源:origin: org.eclipse.hawkbit/hawkbit-ui
private VerticalLayout initView() {
final Label label = new Label(i18n.getMessage("label.auto.assign.description"));
checkBox = new CheckBox(i18n.getMessage("label.auto.assign.enable"));
checkBox.setId(UIComponentIdProvider.DIST_SET_SELECT_ENABLE_ID);
checkBox.setImmediate(true);
checkBox.addValueChangeListener(this);
setTableEnabled(false);
final VerticalLayout verticalLayout = new VerticalLayout();
verticalLayout.addComponent(label);
verticalLayout.addComponent(checkBox);
verticalLayout.addComponent(dsTable);
return verticalLayout;
}
代码示例来源:origin: org.ikasan/ikasan-dashboard-jar
cb.setImmediate(true);
cb.setDescription("Select in order to bulk replay.");
代码示例来源:origin: org.ikasan/ikasan-dashboard-jar
cb.setImmediate(true);
cb.setDescription("Select in order to add to bulk download.");
代码示例来源:origin: org.ikasan/ikasan-dashboard-jar
cb.setImmediate(true);
cb.setDescription("Select in order to add to bulk download.");
代码示例来源:origin: org.activiti/activiti-explorer
nowCheckBox.setImmediate(true);
nowCheckBox.addListener(new ClickListener() {
public void buttonClick(ClickEvent event) {
dateCheckBox.setImmediate(true);
dateCheckBox.addListener(new ClickListener() {
public void buttonClick(ClickEvent event) {
代码示例来源:origin: apache/ace
registerCB.setImmediate(true);
registerCB.setEnabled(!target.isRegistered());
registerCB.setValue(Boolean.valueOf(target.isRegistered()));
autoApproveCB.setImmediate(true);
autoApproveCB.setEnabled(target.isRegistered());
autoApproveCB.setValue(Boolean.valueOf(target.getAutoApprove()));
代码示例来源:origin: org.apache.ace/org.apache.ace.target.mgmt.ui
registerCB.setImmediate(true);
registerCB.setEnabled(!target.isRegistered());
registerCB.setValue(Boolean.valueOf(target.isRegistered()));
autoApproveCB.setImmediate(true);
autoApproveCB.setEnabled(target.isRegistered());
autoApproveCB.setValue(Boolean.valueOf(target.getAutoApprove()));
代码示例来源:origin: org.aperteworkflow/gui-commons
public OptionalDateField(I18NSource messageSource) {
HorizontalLayout layout = new HorizontalLayout();
layout.setSpacing(true);
layout.setWidth("100%");
maxRangeCheckBox = new CheckBox(messageSource.getMessage("date.field.max.range"));
maxRangeCheckBox.setValue(false);
maxRangeCheckBox.setImmediate(true);
maxRangeCheckBox.setWidth("100%");
maxRangeCheckBox.addListener(new ValueChangeListener() {
public void valueChange(com.vaadin.data.Property.ValueChangeEvent event) {
toggleDateField(maxRangeCheckBox.booleanValue() ? null : new Date());
}
});
dateField = new PopupDateField();
dateField.setImmediate(true);
dateField.setDateFormat(VaadinUtility.SIMPLE_DATE_FORMAT_STRING);
dateField.setWidth("100px");
dateField.setResolution(DateField.RESOLUTION_DAY);
layout.addComponent(dateField);
layout.addComponent(maxRangeCheckBox);
layout.setExpandRatio(maxRangeCheckBox, 1.0F);
setCompositionRoot(layout);
}
代码示例来源:origin: org.ikasan/ikasan-dashboard-jar
cb.setImmediate(true);
cb.setDescription("Select in order perform action.");
代码示例来源:origin: org.activiti/activiti-explorer
useSSL.setImmediate(true);
imapForm.getLayout().addComponent(useSSL);
useSSL.addListener(new ValueChangeListener() {
代码示例来源:origin: io.permazen/permazen-vaadin
this.sortComboBox.setItemCaptionPropertyId(SortKeyContainer.DESCRIPTION_PROPERTY);
this.sortComboBox.setImmediate(true);
this.reverseCheckBox.setImmediate(true);
sortLayout.addComponent(this.sortComboBox);
sortLayout.addComponent(this.reverseCheckBox);
代码示例来源:origin: org.jsimpledb/jsimpledb-vaadin
this.sortComboBox.setItemCaptionPropertyId(SortKeyContainer.DESCRIPTION_PROPERTY);
this.sortComboBox.setImmediate(true);
this.reverseCheckBox.setImmediate(true);
sortLayout.addComponent(this.sortComboBox);
sortLayout.addComponent(this.reverseCheckBox);
代码示例来源:origin: org.aperteworkflow/editor
overwriteField.setImmediate(true);
代码示例来源:origin: org.apache.ace/org.apache.ace.webui.vaadin
artifactToolbar.addComponent(createAddArtifactButton(main));
CheckBox dynamicCheckBox = new CheckBox("Dynamic Links");
dynamicCheckBox.setImmediate(true);
dynamicCheckBox.setValue(Boolean.TRUE);
dynamicCheckBox.addListener(new Button.ClickListener() {
代码示例来源:origin: org.ikasan/ikasan-dashboard-jar
checkbox.setImmediate(true);
内容来源于网络,如有侵权,请联系作者删除!