Java Code Examples for com.vaadin.ui.CheckBox#setDescription()
The following examples show how to use
com.vaadin.ui.CheckBox#setDescription() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: InputOutputUI.java From chipster with MIT License | 5 votes |
protected void initElements() { type2 = new ComboBox(); type2.setImmediate(true); type2.setWidth(WIDTH); lbMeta = new Label("Meta:"); cbMeta = new CheckBox(); cbMeta.setDescription("Is this element Meta data"); optional.setWidth(WIDTH); type = new ComboBox(); type.setWidth(WIDTH); type.setNullSelectionAllowed(false); type.setImmediate(true); type.addItem(SINGLE_FILE); type.addItem(MULTI_FILE); type.select(SINGLE_FILE); type.addValueChangeListener(new ValueChangeListener() { private static final long serialVersionUID = -1134955257251483403L; @Override public void valueChange(ValueChangeEvent event) { if(type.getValue().toString().contentEquals(SINGLE_FILE)) { getSingleFileUI(); } else if(type.getValue().toString().contentEquals(MULTI_FILE)){ getMultipleFilesUI(); } } }); }
Example 2
Source File: BasicModel.java From chipster with MIT License | 5 votes |
private void initElements() { lbName = new Label("Display name:"); lbId = new Label(); lbDescription = new Label("Description:"); lbOptional = new Label("Optional:"); name = new TextField(); name.setWidth(WIDTH); name.setDescription("Display name for the element"); name.setImmediate(true); name.addTextChangeListener(new CSCTextChangeListener(this)); id = new TextField(); id.setDescription("file name or unique identification"); id.setImmediate(true); id.setRequired(true); id.setRequiredError(REQUIRED_TEXT); id.setWidth(WIDTH); id.addTextChangeListener(new CSCTextChangeListener(this, true)); description = new TextArea(); description.setWidth(WIDTH); description.setDescription("Short description"); layout = new HorizontalLayout(); prefix = new TextField(); postfix = new TextField(); layout.addComponent(prefix); layout.addComponent(new Label(MULTI_FILE_TEXT)); layout.addComponent(postfix); optional = new CheckBox(); optional.setDescription("Is this element optional"); optional.setImmediate(true); }
Example 3
Source File: ExpressionBuilderComponent.java From XACML with MIT License | 4 votes |
@AutoGenerated private HorizontalLayout buildHorizontalLayout_1() { // common part: create layout horizontalLayout_1 = new HorizontalLayout(); horizontalLayout_1.setImmediate(false); horizontalLayout_1.setWidth("-1px"); horizontalLayout_1.setHeight("-1px"); horizontalLayout_1.setMargin(false); horizontalLayout_1.setSpacing(true); // buttonAddExpression buttonAddExpression = new Button(); buttonAddExpression.setCaption("Add Expression"); buttonAddExpression.setImmediate(true); buttonAddExpression.setWidth("-1px"); buttonAddExpression.setHeight("-1px"); horizontalLayout_1.addComponent(buttonAddExpression); // buttonDeleteExpression buttonDeleteExpression = new Button(); buttonDeleteExpression.setCaption("Delete Expression"); buttonDeleteExpression.setImmediate(true); buttonDeleteExpression.setWidth("-1px"); buttonDeleteExpression.setHeight("-1px"); horizontalLayout_1.addComponent(buttonDeleteExpression); // buttonClearAll buttonClearAll = new Button(); buttonClearAll.setCaption("Clear All"); buttonClearAll.setImmediate(true); buttonClearAll.setDescription("Clears all the expressions."); buttonClearAll.setWidth("-1px"); buttonClearAll.setHeight("-1px"); horizontalLayout_1.addComponent(buttonClearAll); // checkBoxShortName checkBoxShortName = new CheckBox(); checkBoxShortName.setCaption("Display Short XACML ID's"); checkBoxShortName.setImmediate(false); checkBoxShortName .setDescription("If checked, the right-most string of the function and datatype URI's will only be displayed."); checkBoxShortName.setWidth("-1px"); checkBoxShortName.setHeight("-1px"); horizontalLayout_1.addComponent(checkBoxShortName); return horizontalLayout_1; }
Example 4
Source File: PolicyEditor.java From XACML with MIT License | 4 votes |
@AutoGenerated private HorizontalLayout buildHorizontalLayoutToolbar() { // common part: create layout horizontalLayoutToolbar = new HorizontalLayout(); horizontalLayoutToolbar.setImmediate(false); horizontalLayoutToolbar.setWidth("-1px"); horizontalLayoutToolbar.setHeight("-1px"); horizontalLayoutToolbar.setMargin(true); horizontalLayoutToolbar.setSpacing(true); // checkBoxReadOnly checkBoxReadOnly = new CheckBox(); checkBoxReadOnly.setCaption("Read Only"); checkBoxReadOnly.setImmediate(false); checkBoxReadOnly .setDescription("Check this to turn-off policy editing."); checkBoxReadOnly.setWidth("-1px"); checkBoxReadOnly.setHeight("-1px"); horizontalLayoutToolbar.addComponent(checkBoxReadOnly); // checkBoxAutoSave checkBoxAutoSave = new CheckBox(); checkBoxAutoSave.setCaption("Auto Save"); checkBoxAutoSave.setImmediate(false); checkBoxAutoSave .setDescription("Check this to turn-on automatic saving of policy when a change occurs."); checkBoxAutoSave.setWidth("-1px"); checkBoxAutoSave.setHeight("-1px"); horizontalLayoutToolbar.addComponent(checkBoxAutoSave); // buttonSave buttonSave = new Button(); buttonSave.setCaption("Save"); buttonSave.setImmediate(true); buttonSave.setDescription("Click to save the policy."); buttonSave.setWidth("-1px"); buttonSave.setHeight("-1px"); horizontalLayoutToolbar.addComponent(buttonSave); // buttonViewXML buttonViewXML = new Button(); buttonViewXML.setCaption("View XML"); buttonViewXML.setImmediate(true); buttonViewXML.setWidth("-1px"); buttonViewXML.setHeight("-1px"); horizontalLayoutToolbar.addComponent(buttonViewXML); // buttonExport buttonExport = new Button(); buttonExport.setCaption("Export Policy"); buttonExport.setImmediate(false); buttonExport.setWidth("-1px"); buttonExport.setHeight("-1px"); horizontalLayoutToolbar.addComponent(buttonExport); return horizontalLayoutToolbar; }