本文整理了Java中com.vaadin.ui.TextArea.setReadOnly()
方法的一些代码示例,展示了TextArea.setReadOnly()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。TextArea.setReadOnly()
方法的具体详情如下:
包路径:com.vaadin.ui.TextArea
类名称:TextArea
方法名:setReadOnly
暂无
代码示例来源:origin: KrailOrg/krail
@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);
}
代码示例来源:origin: uk.q3c.krail/krail
@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);
}
代码示例来源:origin: org.ikasan/ikasan-dashboard-jar
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);
}
});
代码示例来源:origin: org.metawidget.modules/metawidget-all
if ( TRUE.equals( attributes.get( LARGE ) ) ) {
TextArea textarea = new TextArea();
textarea.setReadOnly( true );
代码示例来源:origin: apache/ace
/**
* 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;
}
代码示例来源:origin: org.ikasan/ikasan-dashboard-jar
/**
* 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);
}
代码示例来源:origin: org.ikasan/ikasan-dashboard-jar
/**
* 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);
}
代码示例来源:origin: org.apache.ace/org.apache.ace.server.log.ui
/**
* 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;
}
代码示例来源:origin: org.eclipse.hawkbit/hawkbit-ui
@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;
}
}
代码示例来源:origin: eclipse/hawkbit
@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;
}
}
代码示例来源:origin: korpling/ANNIS
txtDebug.setReadOnly(true);
txtDebug.setWidth("100%");
Label sep = new Label("<hr/>", ContentMode.HTML);
代码示例来源:origin: org.ikasan/ikasan-dashboard-jar
sourceParamNameValueTextArea.setRows(4);
sourceParamNameValueTextArea.setValue(sb.toString());
sourceParamNameValueTextArea.setReadOnly(true);
targetParamNameValueTextArea.setRows(4);
targetParamNameValueTextArea.setValue(sb.toString());
targetParamNameValueTextArea.setReadOnly(true);
代码示例来源:origin: korpling/ANNIS
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");
代码示例来源:origin: org.ikasan/ikasan-dashboard-jar
descriptionTextArea.setReadOnly(false);
descriptionTextArea.setValue(businessStream.getDescription());
descriptionTextArea.setReadOnly(true);
代码示例来源:origin: org.ikasan/ikasan-dashboard-jar
/**
* 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);
}
代码示例来源:origin: org.ikasan/ikasan-dashboard-jar
tf1.addValidator(new NonZeroLengthStringValidator("You must enter a comment!"));
tf1.setRows(5);
tf1.setReadOnly(false);
tf1.setWidth("100%");
tf1.setValidationVisible(false);
代码示例来源:origin: org.ikasan/ikasan-dashboard-jar
tf1.addValidator(new NonZeroLengthStringValidator("You must enter a comment!"));
tf1.setRows(5);
tf1.setReadOnly(false);
tf1.setWidth("100%");
tf1.setValidationVisible(false);
代码示例来源:origin: org.opennms.features/vaadin-snmp-events-and-metrics
editor.setSizeFull();
editor.setRows(30);
editor.setReadOnly(readOnly);
代码示例来源:origin: org.ikasan/ikasan-dashboard-jar
commentTextArea.addValidator(new NonZeroLengthStringValidator("You must enter a comment!"));
commentTextArea.setRows(5);
commentTextArea.setReadOnly(false);
commentTextArea.setWidth("80%");
commentTextArea.setValidationVisible(false);
代码示例来源:origin: org.ikasan/ikasan-dashboard-jar
comments.setRows(4);
comments.setValue(this.replayAudit.getReplayReason());
comments.setReadOnly(true);
内容来源于网络,如有侵权,请联系作者删除!