public ProcessDataWidgetsDefinitionEditor() { hierarchyEditor = new ProcessDataHierarchyEditor(this); rawText.setNullRepresentation(""); rawText.setWidth("100%"); rawText.setHeight("400px"); TabSheet tabSheet = new TabSheet(); tabSheet.setWidth("100%"); tabSheet.addTab(hierarchyEditor, getLocalizedMessage("hierarchy-editor")); tabSheet.addTab(getRawTextEditorTab(), getLocalizedMessage("source-xml")); tabSheet.addTab(processPreview, getLocalizedMessage("preview")); tabSheet.setSelectedTab(hierarchyEditor); setCompositionRoot(tabSheet); }
public ScriptCodeEditor() { VerticalLayout compositionRoot = new VerticalLayout(); setCompositionRoot(compositionRoot); code = new TextArea(); code.setWidth("100%"); code.setNullRepresentation(""); compositionRoot.addComponent(code); HorizontalLayout hl = new HorizontalLayout(); Button save = new Button(getLocalizedMessage("script.editor.save")); save.addListener(new Button.ClickListener() { @Override public void buttonClick(Button.ClickEvent event) { validateAndSave(); } }); hl.addComponent(save); compositionRoot.addComponent(hl); }
descriptionTextArea.setNullRepresentation(""); descriptionTextArea.setWidth(100, UNITS_PERCENTAGE); descriptionTextArea.setValue(task.getDescription());
eventDescr.setRows(10); eventDescr.setRequired(true); eventDescr.setNullRepresentation(""); eventLayout.addComponent(eventDescr); logMsgContent.setRows(10); logMsgContent.setRequired(true); logMsgContent.setNullRepresentation(""); eventLayout.addComponent(logMsgContent); eventDescr.setRows(10); eventDescr.setRequired(true); eventDescr.setNullRepresentation(""); eventLayout.addComponent(eventDescr); eventOperInstruct.setNullRepresentation(""); eventLayout.addComponent(eventOperInstruct);
protected void createRequiredComponents() { colorLabel = new LabelBuilder().name(i18n.getMessage("label.choose.tag.color")).buildLabel(); colorLabel.addStyleName(SPUIStyleDefinitions.COLOR_LABEL_STYLE); tagName = new TextFieldBuilder(getTagNameSize()).caption(i18n.getMessage("textfield.name")) .styleName(ValoTheme.TEXTFIELD_TINY + " " + SPUIDefinitions.TAG_NAME).required(true, i18n) .prompt(i18n.getMessage("textfield.name")).immediate(true).id(getTagNameId()).buildTextComponent(); tagDesc = new TextAreaBuilder(getTagDescSize()).caption(i18n.getMessage("textfield.description")) .styleName(ValoTheme.TEXTFIELD_TINY + " " + SPUIDefinitions.TAG_DESC) .prompt(i18n.getMessage("textfield.description")).id(getTagDescId()).buildTextComponent(); tagDesc.setNullRepresentation(""); tagColorPreviewBtn = new Button(); tagColorPreviewBtn.setId(UIComponentIdProvider.TAG_COLOR_PREVIEW_ID); getPreviewButtonColor(ColorPickerConstants.DEFAULT_COLOR); tagColorPreviewBtn.setStyleName(TAG_DYNAMIC_STYLE); }
protected void createRequiredComponents() { colorLabel = new LabelBuilder().name(i18n.getMessage("label.choose.tag.color")).buildLabel(); colorLabel.addStyleName(SPUIStyleDefinitions.COLOR_LABEL_STYLE); tagName = new TextFieldBuilder(getTagNameSize()).caption(i18n.getMessage("textfield.name")) .styleName(ValoTheme.TEXTFIELD_TINY + " " + SPUIDefinitions.TAG_NAME).required(true, i18n) .prompt(i18n.getMessage("textfield.name")).immediate(true).id(getTagNameId()).buildTextComponent(); tagDesc = new TextAreaBuilder(getTagDescSize()).caption(i18n.getMessage("textfield.description")) .styleName(ValoTheme.TEXTFIELD_TINY + " " + SPUIDefinitions.TAG_DESC) .prompt(i18n.getMessage("textfield.description")).id(getTagDescId()).buildTextComponent(); tagDesc.setNullRepresentation(""); tagColorPreviewBtn = new Button(); tagColorPreviewBtn.setId(UIComponentIdProvider.TAG_COLOR_PREVIEW_ID); getPreviewButtonColor(ColorPickerConstants.DEFAULT_COLOR); tagColorPreviewBtn.setStyleName(TAG_DYNAMIC_STYLE); }
textField.addValidator(validator); textField.setNullSettingAllowed(true); textField.setNullRepresentation(""); textField.setValidationVisible(false); textField.setRows(4);
textField.addValidator(validator); textField.setNullSettingAllowed(true); textField.setNullRepresentation(""); textField.setValidationVisible(false); textField.setRows(1);
tf5.setWidth("95%"); tf5.setRows(4); tf5.setNullRepresentation(""); layout.addComponent(tf5, 1, 5, 3, 5);
tf5.setWidth("95%"); tf5.setRows(3); tf5.setNullRepresentation(""); layout.addComponent(tf5, 1, 7, 3, 7);
tf5.setWidth("95%"); tf5.setRows(3); tf5.setNullRepresentation(""); layout.addComponent(tf5, 1, 7, 3, 7);
descriptionField.setWidth("65%"); descriptionField.setRows(5); descriptionField.setNullRepresentation("");
this.comment.setWidth("90%"); this.comment.setValidationVisible(false); this.comment.setNullRepresentation(""); this.comment.setPropertyDataSource(startupControlItem.getItemProperty("comment"));
descriptionField.setWidth("65%"); descriptionField.setRows(5); descriptionField.setNullRepresentation("");