本文整理了Java中com.vaadin.ui.TextArea.setSizeFull()
方法的一些代码示例,展示了TextArea.setSizeFull()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。TextArea.setSizeFull()
方法的具体详情如下:
包路径:com.vaadin.ui.TextArea
类名称:TextArea
方法名:setSizeFull
暂无
代码示例来源: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: net.sf.itcb.common/itcb-common-web-vaadin
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);
}
代码示例来源:origin: uk.q3c.krail/krail
@Override
protected void doBuild(ViewChangeBusMessage busMessage) {
super.doBuild(busMessage);
reportArea = new TextArea();
// reportArea.setEnabled(false);
reportArea.setSizeFull();
reportArea.setValue(masterSitemap.getReport());
setCentreCell(reportArea);
setColumnWidths(1f, 4f, 1f);
setRowHeights(1f, 10f, 1f);
}
代码示例来源:origin: KrailOrg/krail
@Override
protected void doBuild() {
super.doBuild();
reportArea = new TextArea();
// reportArea.setEnabled(false);
reportArea.setSizeFull();
reportArea.setValue(masterSitemap.getReport());
setCentreCell(reportArea);
setColumnWidths(1f, 4f, 1f);
setRowHeights(1f, 10f, 1f);
}
代码示例来源:origin: org.opennms.features/jmxconfiggenerator.webui
private TabContent(OutputDataKey key) {
setSizeFull();
setLocked(false);
setSplitPosition(50, Unit.PERCENTAGE);
configTextArea.setSizeFull();
descriptionLabel = new Label(UIHelper.loadContentFromFile(getClass(), key.getDescriptionFilename()),
ContentMode.HTML);
addComponent(configTextArea);
addComponent(descriptionLabel);
setCaption(key.name());
}
代码示例来源:origin: eclipse/hawkbit
private TextArea createValueTextField() {
valueTextArea = new TextAreaBuilder(MetaData.VALUE_MAX_SIZE).caption(i18n.getMessage("textfield.value"))
.required(true, i18n).id(UIComponentIdProvider.METADATA_VALUE_ID).buildTextComponent();
valueTextArea.setSizeFull();
valueTextArea.setHeight(100, Unit.PERCENTAGE);
valueTextArea.addTextChangeListener(this::onValueChange);
valueTextArea.setTextChangeEventMode(TextChangeEventMode.EAGER);
return valueTextArea;
}
代码示例来源:origin: org.eclipse.hawkbit/hawkbit-ui
private TextArea createValueTextField() {
valueTextArea = new TextAreaBuilder(MetaData.VALUE_MAX_SIZE).caption(i18n.getMessage("textfield.value"))
.required(true, i18n).id(UIComponentIdProvider.METADATA_VALUE_ID).buildTextComponent();
valueTextArea.setSizeFull();
valueTextArea.setHeight(100, Unit.PERCENTAGE);
valueTextArea.addTextChangeListener(this::onValueChange);
valueTextArea.setTextChangeEventMode(TextChangeEventMode.EAGER);
return valueTextArea;
}
代码示例来源: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.opennms.features/vaadin-jmxconfiggenerator
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());
}
代码示例来源:origin: org.ikasan/ikasan-dashboard-jar
/**
* Helper method to initialise this object.
*
* @param message
*/
protected void init(String text)
{
super.setWidth("50%");
super.setHeight("50%");
super.setModal(true);
super.setResizable(true);
super.center();
TextArea ta = new TextArea();
ta.setSizeFull();
ta.setValue(text);
ta.setWordwrap(false);
HorizontalLayout layout = new HorizontalLayout();
layout.setMargin(true);
layout.addComponent(ta);
layout.setSizeFull();
Panel p = new Panel();
p.setSizeFull();
p.setContent(layout);
super.setContent(p);
}
}
代码示例来源:origin: org.opennms.features.topology/org.opennms.features.topology.netutils
resultArea.setSizeFull();
代码示例来源:origin: org.opennms.features/vaadin-snmp-events-and-metrics
editor.setPropertyDataSource(new TextFileProperty(file));
editor.setImmediate(false);
editor.setSizeFull();
editor.setRows(30);
editor.setReadOnly(readOnly);
代码示例来源:origin: org.opennms.features.topology/netutils
resultArea.setSizeFull();
代码示例来源:origin: com.haulmont.cuba/cuba-web
stackTraceTextArea.setSizeFull();
stackTraceTextArea.setWordWrap(false);
stackTraceTextArea.setValue(stackTrace);
代码示例来源:origin: org.ikasan/ikasan-dashboard-jar
synchronisedTextArea.setSizeFull();
synchronisedTextArea.setReadOnly(true);
内容来源于网络,如有侵权,请联系作者删除!