/** * Creates a new checkbox with a set caption. * * @param caption * the Checkbox caption. */ public CheckBox(String caption) { this(); setCaption(caption); }
public void setMaximumRangeCaption(String caption) { maxRangeCheckBox.setCaption(caption); }
private CheckBox createTargetVisibleField() { final CheckBox checkBox = new CheckBox(); checkBox.setId(UIComponentIdProvider.METADATA_TARGET_VISIBLE_ID); checkBox.setCaption(i18n.getMessage("metadata.targetvisible")); checkBox.addValueChangeListener(this::onCheckBoxChange); return checkBox; }
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; }
private CheckBox createTargetVisibleField() { final CheckBox checkBox = new CheckBox(); checkBox.setId(UIComponentIdProvider.METADATA_TARGET_VISIBLE_ID); checkBox.setCaption(i18n.getMessage("metadata.targetvisible")); checkBox.addValueChangeListener(this::onCheckBoxChange); return checkBox; }
private void initComponent() { roleNameLabel = new Label(queueRolePermission.getRoleName()); browsingAllowedCheckbox = new CheckBox(); browsingAllowedCheckbox.setCaption("browsing allowed"); browsingAllowedCheckbox.addListener(new Button.ClickListener() { @Override public void buttonClick(Button.ClickEvent clickEvent) { if (Boolean.TRUE.equals(queueRolePermission.isBrowsingAllowed())) { queueRolePermission.setBrowsingAllowed(false); } else { queueRolePermission.setBrowsingAllowed(true); // we handle null as well here } } }); if (Boolean.TRUE.equals(queueRolePermission.isBrowsingAllowed())) { browsingAllowedCheckbox.setValue(true); } deleteButton = new Button(); deleteButton.setCaption(" X "); deleteButton.setStyleName(BaseTheme.BUTTON_LINK); deleteButton.addListener(new Button.ClickListener() { @Override public void buttonClick(Button.ClickEvent event) { handler.removeQueueRolePermissionBox(QueueRolePermissionBox.this); } }); }
m_maximizeWidth.setCaption("Maximize width"); m_maximizeWidth.setDescription("Maximize width"); m_maximizeHeight.setCaption("Maximize height"); m_maximizeHeight.setDescription("Maximize height");
autoSaveField.setCaption(messages.getMainMessage("PresentationsEditor.autoSave")); autoSaveField.setValue(BooleanUtils.isTrue(presentation.getAutoSave())); root.addComponent(autoSaveField); defaultField.setCaption(messages.getMainMessage("PresentationsEditor.default")); defaultField.setValue(presentation.getId().equals(component.getDefaultPresentationId())); root.addComponent(defaultField); globalField.setCaption(messages.getMainMessage("PresentationsEditor.global")); globalField.setValue(!isNew && presentation.getUser() == null); root.addComponent(globalField);
selectedField.setCaption("selected"); selectedField.addValueChangeListener(new Property.ValueChangeListener() { @Override
authenticateField.setCaption("Authentication"); authenticateField.setId("authenticate"); authenticateField.addValueChangeListener(new Property.ValueChangeListener() {