@Override protected TextArea createTextComponent() { final TextArea textArea = new TextArea(); textArea.addStyleName(ValoTheme.TEXTAREA_SMALL); return textArea; }
@Override protected TextArea createTextComponent() { final TextArea textArea = new TextArea(); textArea.addStyleName(ValoTheme.TEXTAREA_SMALL); return textArea; }
@Override public Component getDetails(final RowReference rowReference) { // Find the bean to generate details for final Item item = rowReference.getItem(); final String message = (String) item.getItemProperty(ProxyMessage.PXY_MSG_VALUE).getValue(); final TextArea textArea = new TextArea(); textArea.addStyleName(ValoTheme.TEXTAREA_BORDERLESS); textArea.addStyleName(ValoTheme.TEXTAREA_TINY); textArea.addStyleName("inline-icon"); textArea.setHeight(120, Unit.PIXELS); textArea.setWidth(100, Unit.PERCENTAGE); textArea.setValue(message); textArea.setReadOnly(Boolean.TRUE); return textArea; } }
@Override public Component getDetails(final RowReference rowReference) { // Find the bean to generate details for final Item item = rowReference.getItem(); final String message = (String) item.getItemProperty(ProxyMessage.PXY_MSG_VALUE).getValue(); final TextArea textArea = new TextArea(); textArea.addStyleName(ValoTheme.TEXTAREA_BORDERLESS); textArea.addStyleName(ValoTheme.TEXTAREA_TINY); textArea.addStyleName("inline-icon"); textArea.setHeight(120, Unit.PIXELS); textArea.setWidth(100, Unit.PERCENTAGE); textArea.setValue(message); textArea.setReadOnly(Boolean.TRUE); return textArea; } }
/** * reset the tag name and tag description component border color. */ protected void restoreComponentStyles() { tagName.removeStyleName(TAG_NAME_DYNAMIC_STYLE); tagDesc.removeStyleName(TAG_DESC_DYNAMIC_STYLE); tagName.addStyleName(SPUIDefinitions.TAG_NAME); tagDesc.addStyleName(SPUIDefinitions.TAG_DESC); getPreviewButtonColor(ColorPickerConstants.DEFAULT_COLOR); }
/** * reset the tag name and tag description component border color. */ protected void restoreComponentStyles() { tagName.removeStyleName(TAG_NAME_DYNAMIC_STYLE); tagDesc.removeStyleName(TAG_DESC_DYNAMIC_STYLE); tagName.addStyleName(SPUIDefinitions.TAG_NAME); tagDesc.addStyleName(SPUIDefinitions.TAG_DESC); getPreviewButtonColor(ColorPickerConstants.DEFAULT_COLOR); }
/** * Set tag name and desc field border color based on chosen color. * * @param tagName * @param tagDesc * @param taregtTagColor */ protected void createDynamicStyleForComponents(final TextField tagName, final TextArea tagDesc, final String taregtTagColor) { tagName.removeStyleName(SPUIDefinitions.TAG_NAME); tagDesc.removeStyleName(SPUIDefinitions.TAG_DESC); getTargetDynamicStyles(taregtTagColor); tagName.addStyleName(TAG_NAME_DYNAMIC_STYLE); tagDesc.addStyleName(TAG_DESC_DYNAMIC_STYLE); }
/** * Set tag name and desc field border color based on chosen color. * * @param tagName * @param tagDesc * @param taregtTagColor */ protected void createDynamicStyleForComponents(final TextField tagName, final TextArea tagDesc, final String taregtTagColor) { tagName.removeStyleName(SPUIDefinitions.TAG_NAME); tagDesc.removeStyleName(SPUIDefinitions.TAG_DESC); getTargetDynamicStyles(taregtTagColor); tagName.addStyleName(TAG_NAME_DYNAMIC_STYLE); tagDesc.addStyleName(TAG_DESC_DYNAMIC_STYLE); }
private static void createDynamicStyleForComponents(final TextField tagName, final TextField typeKey, final TextArea typeDesc, final String typeTagColor) { tagName.removeStyleName(SPUIDefinitions.TYPE_NAME); typeKey.removeStyleName(SPUIDefinitions.TYPE_KEY); typeDesc.removeStyleName(SPUIDefinitions.TYPE_DESC); getDynamicStyles(typeTagColor); tagName.addStyleName(TYPE_NAME_DYNAMIC_STYLE); typeKey.addStyleName(TYPE_NAME_DYNAMIC_STYLE); typeDesc.addStyleName(TYPE_DESC_DYNAMIC_STYLE); }
private static void createDynamicStyleForComponents(final TextField tagName, final TextField typeKey, final TextArea typeDesc, final String typeTagColor) { tagName.removeStyleName(SPUIDefinitions.TYPE_NAME); typeKey.removeStyleName(SPUIDefinitions.TYPE_KEY); typeDesc.removeStyleName(SPUIDefinitions.TYPE_DESC); getDynamicStyles(typeTagColor); tagName.addStyleName(TYPE_NAME_DYNAMIC_STYLE); typeKey.addStyleName(TYPE_NAME_DYNAMIC_STYLE); typeDesc.addStyleName(TYPE_DESC_DYNAMIC_STYLE); }
public ContextAnalyserPanel(final Jaxb2Marshaller marshaller, final ContextHolder contextHolder, final Component specificComponentToAdd, final Button.ClickListener specificClickListener) { this.setSizeFull(); StringWriter writer = new StringWriter(); StreamResult stringResult = new StreamResult(writer); marshaller.marshal(contextHolder.getNavigationContext(), stringResult); textArea= new TextArea("Flow content", writer.toString()); textArea.setSizeFull(); textArea.addStyleName("ContextAnalyserPanelTextArea"); addComponent(textArea); if(specificComponentToAdd != null) { addComponent(specificComponentToAdd); } modifyButton = new Button("Modify context", new Button.ClickListener() { private static final long serialVersionUID = 1L; @Override public void buttonClick(ClickEvent event) { contextHolder.setNavigationContext(marshaller.unmarshal(new StreamSource(new ByteArrayInputStream(textArea.getValue().toString().getBytes()) ))); if(specificClickListener != null) { specificClickListener.buttonClick(event); } } }); modifyButton.addStyleName("ContextAnalyserPanelModifyButton"); addComponent(modifyButton); }
legendLabel.setValue("Legend:"); legendLabel.setReadOnly(true); legendLabel.addStyleName("borderless"); legendLabel.addStyleName("legend"); legendLabel.addStyleName("legend-label"); tfStruct.addStyleName("legend"); tfStruct.addStyleName("legend-struct"); tfSpan.addStyleName("legend"); tfSpan.addStyleName("legend-span"); tfToken.addStyleName("legend"); tfToken.addStyleName("legend-token");
private TabContent(OutputDataKey key) { configTextArea.setSizeFull(); configTextArea.addStyleName("borderless"); descriptionLabel = new Label( UIHelper.loadContentFromFile(getClass(), key.getDescriptionFilename()), ContentMode.HTML); VerticalLayout leftLayout = new VerticalLayout(descriptionLabel); leftLayout.setMargin(true); addComponent(configTextArea); addComponent(leftLayout); setSizeFull(); setLocked(false); setSplitPosition(75, Unit.PERCENTAGE); setCaption(key.getTitle()); }
protected void addFields() { formLayout = new GridLayout(2, 3); formLayout.setSpacing(true); formLayout.addComponent(new Label(i18nManager.getMessage(Messages.TASK_NAME))); nameTextField = new TextField(); nameTextField.setWidth(25, Sizeable.UNITS_EM); nameTextField.focus(); formLayout.addComponent(nameTextField); formLayout.addComponent(new Label(i18nManager.getMessage(Messages.TASK_DESCRIPTION))); descriptionTextArea = new TextArea(); descriptionTextArea.setRows(8); descriptionTextArea.setWidth(25, Sizeable.UNITS_EM); descriptionTextArea.addStyleName(ExplorerLayout.STYLE_TEXTAREA_NO_RESIZE); formLayout.addComponent(descriptionTextArea); Label editorLabel = new Label(i18nManager.getMessage(Messages.PROCESS_EDITOR_CHOICE)); formLayout.addComponent(editorLabel); formLayout.setComponentAlignment(editorLabel, Alignment.MIDDLE_LEFT); selectEditorComponent = new SelectEditorComponent(); formLayout.addComponent(selectEditorComponent); addComponent(formLayout); // Some empty space Label emptySpace = new Label(" ", Label.CONTENT_XHTML); addComponent(emptySpace); }
this.exprField.setRows(6); this.exprField.setWidth("100%"); this.exprField.addStyleName("jsdb-fixed-width"); this.showForm.addComponent(this.exprField); this.showForm.addComponent(this.showButton);
this.exprField.setRows(6); this.exprField.setWidth("100%"); this.exprField.addStyleName("jsdb-fixed-width"); this.showForm.addComponent(this.exprField); this.showForm.addComponent(this.showButton);
stackTraceTextArea.setValue(stackTrace); stackTraceTextArea.setStyleName(cubaLogContentClass); stackTraceTextArea.addStyleName(cubaCopyLogContentClass); stackTraceTextArea.setReadOnly(true);