本文整理了Java中com.vaadin.ui.Button.setReadOnly()
方法的一些代码示例,展示了Button.setReadOnly()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Button.setReadOnly()
方法的具体详情如下:
包路径:com.vaadin.ui.Button
类名称:Button
方法名:setReadOnly
暂无
代码示例来源:origin: org.aperteworkflow/gui-commons
@Override
public void setReadOnly(boolean readOnly) {
addButton.setReadOnly(readOnly);
super.setReadOnly(readOnly);
}
}
代码示例来源:origin: nz.co.senanque/madura-workflow-vaadin
@Override
public void bind() {
panel.removeAllComponents();
ValidationObject o = (ValidationObject)getContext();
BeanItem<ValidationObject> beanItem = new BeanItem<>(o);
m_maduraSessionManager.getValidationSession().bind(o);
fieldGroup = m_maduraSessionManager.createMaduraFieldGroup();
Layout actions = createButtons();
log.debug("park:{}",(park.isEnabled()?"enabled":"disabled"));
Map<String,Field<?>> fields = fieldGroup.buildAndBind(m_fieldList,beanItem);
for (Field<?> f:fields.values()) {
if (isReadOnlyForm()) {
f.setReadOnly(true);
f.setEnabled(false);
}
panel.addComponent(f);
}
m_referenceField = fields.get(m_referenceName);
m_launcher = (m_processInstance==null || m_processInstance.getId()== 0);
park.setVisible(!isLauncher());
panel.addComponent(actions);
if (isReadOnlyForm()) {
park.setReadOnly(true);
park.setEnabled(false);
okay.setReadOnly(true);
okay.setEnabled(false);
}
log.debug("park:{}",(park.isEnabled()?"enabled":"disabled"));
}
@Override
代码示例来源:origin: nz.co.senanque/madura-workflow-vaadin
protected HorizontalLayout createButtons() {
log.debug("isReadOnlyForm():{}",isReadOnlyForm());
okay = fieldGroup.createSubmitButton("OK", this);
okay.setReadOnly(isReadOnlyForm());
okay.setEnabled(!isReadOnlyForm());
cancel = fieldGroup.createButton("cancel",this);
HorizontalLayout actions = new HorizontalLayout();
actions.setMargin(true);
actions.setSpacing(true);
actions.addComponent(okay);
cancel.addClickListener(this);
actions.addComponent(cancel);
park = fieldGroup.createSubmitButton("park",this);
park.setReadOnly(this.isReadOnlyForm());
park.setEnabled(!isReadOnlyForm());
actions.addComponent(park);
park.addClickListener(this);
park.setVisible(false);
return actions;
}
代码示例来源:origin: nz.co.senanque/madura-vaadin
ret.setReadOnly(true);
代码示例来源:origin: nz.co.senanque/madura-vaadin-touchkit
ret.setData(property);
ret.setCaption(property.getLabel());
ret.setReadOnly(property.isReadOnly());
ret.setEnabled(property.isEnabled());
ret.setVisible(property.isVisible());
内容来源于网络,如有侵权,请联系作者删除!