@Override public void doBuild() { textArea = new TextArea(); textArea.setSizeFull(); textArea.setReadOnly(false); textArea.setWordWrap(false); if (error != null) { String s = ExceptionUtils.getStackTrace(error) + ("\n\n"); //add a couple of blank lines at the bottom to ensure visibility of the last line textArea.setValue(s); } else { textArea.setValue("Error view has been called but no error has been set. This should not happen"); textArea.setReadOnly(true); } setRootComponent(textArea); }
@Override public void doBuild(ViewChangeBusMessage busMessage) { textArea = new TextArea(); textArea.setSizeFull(); textArea.setReadOnly(false); textArea.setWordwrap(false); if (error != null) { String s = ExceptionUtils.getStackTrace(error) + ("\n\n"); //add a couple of blank lines at the bottom to ensure visibility of the last line textArea.setValue(s); } else { textArea.setValue("Error view has been called but no error has been set. This should not happen"); textArea.setReadOnly(true); } setRootComponent(textArea); }
public void buttonClick(ClickEvent event) { Collection<BusinessStreamFlow> businessStreamFlows = (Collection<BusinessStreamFlow>)businessStreamTable.getItemIds(); for(BusinessStreamFlow businessStreamFlow: businessStreamFlows) { topologyService.deleteBusinessStreamFlow(businessStreamFlow); } BusinessStream businessStream = (BusinessStream)businessStreamCombo.getValue(); topologyService.deleteBusinessStream(businessStream); businessStreamTable.removeAllItems(); List<BusinessStream> businessStreams = topologyService.getAllBusinessStreams(); businessStreamCombo.removeItem(businessStream); descriptionTextArea.setReadOnly(false); descriptionTextArea.setValue(""); descriptionTextArea.setReadOnly(true); } });
if ( TRUE.equals( attributes.get( LARGE ) ) ) { TextArea textarea = new TextArea(); textarea.setReadOnly( true );
/** * Creates a {@link TextArea} with a dump of the given event's properties. * * @param event * the event to create a textarea for, cannot be <code>null</code>. * @return a {@link TextArea} instance, never <code>null</code>. */ final TextArea getProperties(Event event) { Map<String, String> props = event.getProperties(); TextArea area = new TextArea("", dumpProperties(props)); area.setWidth(FILL_AREA); area.setRows(props.size()); area.setWordwrap(false); area.setReadOnly(true); area.setImmediate(true); return area; }
/** * Set whether this component is editable. * * @param editable */ public void setEditable(boolean editable) { this.saveRequiredMonitor.setSaveRequired(editable); this.mappingConfigurationConfigurationValuesTable.setEditable(editable); this.typeComboBox.setReadOnly(!editable); this.clientComboBox.setReadOnly(!editable); this.sourceContextComboBox.setReadOnly(!editable); this.targetContextComboBox.setReadOnly(!editable); this.descriptionTextArea.setReadOnly(!editable); }
/** * Set if this panel is editable. */ public void setEditable(boolean editable) { if(this.saveRequiredMonitor!= null) this.saveRequiredMonitor.setSaveRequired(editable); if(this.mappingConfigurationConfigurationValuesTable != null) this.mappingConfigurationConfigurationValuesTable.setEditable(editable); if(this.typeComboBox != null) this.typeComboBox.setReadOnly(!editable); if(this.clientComboBox != null) this.clientComboBox.setReadOnly(!editable); if(this.sourceContextComboBox != null) this.sourceContextComboBox.setReadOnly(!editable); if(this.targetContextComboBox != null) this.targetContextComboBox.setReadOnly(!editable); if(this.descriptionTextArea != null) this.descriptionTextArea.setReadOnly(!editable); if(this.numberOfSourceParametersTextField != null) this.numberOfSourceParametersTextField.setReadOnly(!editable); }
/** * Creates a {@link TextArea} with a dump of the given event's properties. * * @param event the event to create a textarea for, cannot be <code>null</code>. * @return a {@link TextArea} instance, never <code>null</code>. */ private TextArea getProperties(LogEvent event) { Dictionary props = event.getProperties(); TextArea area = new TextArea("", dumpProperties(props)); area.setWidth(FILL_AREA); area.setRows(props.size()); area.setWordwrap(false); area.setReadOnly(true); area.setImmediate(true); return area; }
@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; } }
txtDebug.setReadOnly(true); txtDebug.setWidth("100%"); Label sep = new Label("<hr/>", ContentMode.HTML);
sourceParamNameValueTextArea.setRows(4); sourceParamNameValueTextArea.setValue(sb.toString()); sourceParamNameValueTextArea.setReadOnly(true); targetParamNameValueTextArea.setRows(4); targetParamNameValueTextArea.setValue(sb.toString()); targetParamNameValueTextArea.setReadOnly(true);
legendLabel.setReadOnly(true); legendLabel.addStyleName("borderless"); legendLabel.addStyleName("legend"); tfStruct.setReadOnly(true); tfStruct.addStyleName("legend"); tfStruct.addStyleName("legend-struct"); tfSpan.setReadOnly(true); tfSpan.addStyleName("legend"); tfSpan.addStyleName("legend-span"); tfToken.setReadOnly(true); tfToken.addStyleName("legend"); tfToken.addStyleName("legend-token");
descriptionTextArea.setReadOnly(false); descriptionTextArea.setValue(businessStream.getDescription()); descriptionTextArea.setReadOnly(true);
/** * Method to populate the mapping configuration form. */ public void populateMappingConfigurationForm() { typeComboBox.setReadOnly(false); clientComboBox.setReadOnly(false); sourceContextComboBox.setReadOnly(false); targetContextComboBox.setReadOnly(false); this.descriptionTextArea.setReadOnly(false); this.numberOfSourceParametersTextField.setReadOnly(false); BeanItem<MappingConfiguration> mappingConfigurationItem = new BeanItem<MappingConfiguration>(this.mappingConfiguration); this.clientComboBox.setValue(this.mappingConfiguration.getConfigurationServiceClient()); this.typeComboBox.setValue(mappingConfiguration.getConfigurationType()); this.sourceContextComboBox.setValue(mappingConfiguration.getSourceContext()); this.targetContextComboBox.setValue(mappingConfiguration.getTargetContext()); this.descriptionTextArea.setPropertyDataSource(mappingConfigurationItem.getItemProperty("description")); this.numberOfSourceParametersTextField.setPropertyDataSource(mappingConfigurationItem.getItemProperty("numberOfParams")); this.numberOfTargetParametersTextField.setPropertyDataSource(mappingConfigurationItem.getItemProperty("numTargetValues")); typeComboBox.setReadOnly(true); clientComboBox.setReadOnly(true); sourceContextComboBox.setReadOnly(true); targetContextComboBox.setReadOnly(true); this.descriptionTextArea.setReadOnly(true); this.numberOfSourceParametersTextField.setReadOnly(true); }
tf1.addValidator(new NonZeroLengthStringValidator("You must enter a comment!")); tf1.setRows(5); tf1.setReadOnly(false); tf1.setWidth("100%"); tf1.setValidationVisible(false);
tf1.addValidator(new NonZeroLengthStringValidator("You must enter a comment!")); tf1.setRows(5); tf1.setReadOnly(false); tf1.setWidth("100%"); tf1.setValidationVisible(false);
editor.setSizeFull(); editor.setRows(30); editor.setReadOnly(readOnly);
commentTextArea.addValidator(new NonZeroLengthStringValidator("You must enter a comment!")); commentTextArea.setRows(5); commentTextArea.setReadOnly(false); commentTextArea.setWidth("80%"); commentTextArea.setValidationVisible(false);
comments.setRows(4); comments.setValue(this.replayAudit.getReplayReason()); comments.setReadOnly(true);