本文整理了Java中com.vaadin.ui.CheckBox.setWidth()
方法的一些代码示例,展示了CheckBox.setWidth()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。CheckBox.setWidth()
方法的具体详情如下:
包路径:com.vaadin.ui.CheckBox
类名称:CheckBox
方法名:setWidth
暂无
代码示例来源: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: 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.opennms.features/vaadin-snmp-events-and-metrics
eventLayout.addComponent(logMsgContent);
hasAlarmData.setWidth("100%");
hasAlarmData.addValueChangeListener(new Property.ValueChangeListener() {
@Override
eventLayout.addComponent(alarmDataAlarmType);
alarmDataAutoClean.setWidth("100%");
alarmDataAutoClean.setVisible(false);
eventLayout.addComponent(alarmDataAutoClean);
代码示例来源:origin: org.ikasan/ikasan-dashboard-jar
this.isManyToManyCheckbox.setWidth(175, Unit.PIXELS);
内容来源于网络,如有侵权,请联系作者删除!