本文整理汇总了Java中com.vaadin.ui.TextArea.setSizeFull方法的典型用法代码示例。如果您正苦于以下问题:Java TextArea.setSizeFull方法的具体用法?Java TextArea.setSizeFull怎么用?Java TextArea.setSizeFull使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.vaadin.ui.TextArea
的用法示例。
在下文中一共展示了TextArea.setSizeFull方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createDescription
import com.vaadin.ui.TextArea; //导入方法依赖的package包/类
/**
* Creates the description.
*
* @return the text area
*/
private static TextArea createDescription() {
final TextArea totalpartytoplistLabel = new TextArea(
"Party Ranking by topic",
"Time served in Parliament:ALL:CURRENT:"
+ "\nTime served in Committees:ALL:CURRENT:"
+ "\nTime served in Government:ALL:CURRENT:"
+ "\nTop document author NR:ALL:YEAR:CURRENT:*FILTER:DocumnetType"
+ "\nTop document author SIZE:YEAR:ALL:CURRENT:*FILTER:DocumnetType"
+ "\nTop votes NR/PERCENTAGE :ALL:YEAR:CURRENT::#Views:List,Timeline,BarChart,PieChart"
+ "\nTop vote winner NR/PERCENTAGE :ALL:YEAR:CURRENT::#Views:List,Timeline,BarChart,PieChart"
+ "\nTop vote party rebel NR/PERCENTAGE :ALL:YEAR:CURRENT::#Views:List,Timeline,BarChart,PieChart"
+ "\nTop vote presence NR/PERCENTAGE :ALL:YEAR:CURRENT::#Views:List,Timeline,BarChart,PieChart"
+ "\nSearch by name");
totalpartytoplistLabel.setSizeFull();
totalpartytoplistLabel.setStyleName("Level2Header");
return totalpartytoplistLabel;
}
示例2: createDescription
import com.vaadin.ui.TextArea; //导入方法依赖的package包/类
/**
* Creates the description.
*
* @return the text area
*/
private static TextArea createDescription() {
final TextArea totalpoliticantoplistLabel = new TextArea("Politician Ranking by topic",
"Time served in Parliament:ALL:CURRENT:*FILTER:Gender,Party,ElectionRegion"
+ "\nTime served in Committees:ALL:CURRENT:*FILTER:Gender,Party,ElectionRegion"
+ "\nTime served in Government:ALL:CURRENT:*FILTER:Gender,Party,ElectionRegion"
+ "\nTop document author NR:ALL:YEAR:CURRENT:*FILTER:DocumnetType,Gender,Party,ElectionRegion"
+ "\nTop document author SIZE:YEAR:ALL:CURRENT:*FILTER:DocumnetType,Gender,Party,ElectionRegion"
+ "\nTop votes:ALL:YEAR:CURRENT::*FILTER:Gender,Party,ElectionRegion"
+ "\nTop vote winner NR/PERCENTAGE :ALL:YEAR:CURRENT::*FILTER:Gender,Party,ElectionRegion"
+ "\nTop vote party rebel NR/PERCENTAGE :ALL:YEAR:CURRENT::*FILTER:Gender,Party,ElectionRegion"
+ "\nTop vote presence NR/PERCENTAGE :ALL:YEAR:CURRENT::*FILTER:Gender,Party,ElectionRegion"
+ "\nSearch by name");
totalpoliticantoplistLabel.setSizeFull();
totalpoliticantoplistLabel.setStyleName("Level2Header");
return totalpoliticantoplistLabel;
}
示例3: TestWindow
import com.vaadin.ui.TextArea; //导入方法依赖的package包/类
public TestWindow() {
super("Test Transformation");
setWidth(800f, Unit.PIXELS);
setHeight(600f, Unit.PIXELS);
content.setMargin(true);
TextArea textField = new TextArea();
textField.setSizeFull();
textField.setWordwrap(false);
Thread thread = Thread.currentThread();
ClassLoader previousLoader = thread.getContextClassLoader();
try {
thread.setContextClassLoader(getClass().getClassLoader());
textField.setValue(XsltProcessor.getTransformedXml(textArea.getValue(), editor.getValue(), XsltProcessor.PRETTY_FORMAT, false));
} finally {
thread.setContextClassLoader(previousLoader);
}
addComponent(textField);
content.setExpandRatio(textField, 1.0f);
addComponent(buildButtonFooter(buildCloseButton()));
}
示例4: buildDialogLayout
import com.vaadin.ui.TextArea; //导入方法依赖的package包/类
@Override
protected void buildDialogLayout() {
final VerticalLayout mainLayout = new VerticalLayout();
mainLayout.setSizeFull();
mainLayout.setSpacing(true);
mainLayout.setMargin(true);
checkPerGraph = new CheckBox(ctx.tr("sparqlUpdate.dialog.perGraph"));
checkPerGraph.setWidth("100%");
mainLayout.addComponent(checkPerGraph);
mainLayout.setExpandRatio(checkPerGraph, 0.0f);
txtQuery = new TextArea(ctx.tr("sparqlUpdate.dialog.query"));
txtQuery.setSizeFull();
txtQuery.setRequired(true);
txtQuery.addValidator(createSparqlUpdateQueryValidator());
txtQuery.setImmediate(true);
mainLayout.addComponent(txtQuery);
mainLayout.setExpandRatio(txtQuery, 1.0f);
setCompositionRoot(mainLayout);
}
示例5: buildDialogLayout
import com.vaadin.ui.TextArea; //导入方法依赖的package包/类
@Override
protected void buildDialogLayout() {
final VerticalLayout mainLayout = new VerticalLayout();
mainLayout.setSizeFull();
mainLayout.setSpacing(true);
mainLayout.setMargin(true);
optMessageType = new OptionGroup(ctx.tr("rdfvalidation.dialog.optMessageType.caption"));
optMessageType.addItem(DPUContext.MessageType.ERROR);
optMessageType.addItem(DPUContext.MessageType.WARNING);
optMessageType.setValue(optMessageType.getItem(0));
mainLayout.addComponent(optMessageType);
txtAskQuery = new TextArea(ctx.tr("rdfvalidation.dialog.txtAskQuery.caption"));
txtAskQuery.setSizeFull();
txtAskQuery.setNullRepresentation("");
txtAskQuery.setNullSettingAllowed(true);
mainLayout.addComponent(txtAskQuery);
mainLayout.setExpandRatio(txtAskQuery, 1.0f);
setCompositionRoot(mainLayout);
}
示例6: buildDialogLayout
import com.vaadin.ui.TextArea; //导入方法依赖的package包/类
@Override
protected void buildDialogLayout() {
final VerticalLayout mainLayout = new VerticalLayout();
mainLayout.setSizeFull();
mainLayout.setSpacing(true);
mainLayout.setMargin(true);
checkPerGraph = new CheckBox(ctx.tr("SparqlConstructVaadinDialog.perGraphMode"));
checkPerGraph.setWidth("100%");
mainLayout.addComponent(checkPerGraph);
mainLayout.setExpandRatio(checkPerGraph, 0.0f);
txtQuery = new TextArea(ctx.tr("SparqlConstructVaadinDialog.constructQuery"));
txtQuery.setSizeFull();
txtQuery.setRequired(true);
txtQuery.addValidator(createSparqlQueryValidator());
txtQuery.setImmediate(true);
mainLayout.addComponent(txtQuery);
mainLayout.setExpandRatio(txtQuery, 1.0f);
setCompositionRoot(mainLayout);
}
示例7: buildEditor
import com.vaadin.ui.TextArea; //导入方法依赖的package包/类
@Override
protected Component buildEditor(final ValidatingFieldGroup<Note> fieldGroup2)
{
final VerticalLayout layout = new VerticalLayout();
layout.setSizeFull();
final MultiColumnFormLayout<Note> overviewForm = new MultiColumnFormLayout<Note>(1, this.fieldGroup);
overviewForm.setColumnFieldWidth(0, 500);
overviewForm.setColumnLabelWidth(0, 70);
// overviewForm.setColumnExpandRatio(0, 1.0f);
overviewForm.setSizeFull();
// overviewForm.colspan(2);
overviewForm.bindDateField("Note Date", Note_.noteDate, "yyyy-MM-dd hh:mm", Resolution.MINUTE);
overviewForm.newLine();
overviewForm.bindTextField("Subject", Note_.subject);
overviewForm.newLine();
final TextArea detailsEditor = overviewForm.bindTextAreaField("Body", Note_.body, 6);
detailsEditor.setSizeFull();
overviewForm.setExpandRatio(1.0f);
layout.addComponent(overviewForm);
return layout;
}
示例8: buildNotes
import com.vaadin.ui.TextArea; //导入方法依赖的package包/类
private Component buildNotes() {
TextArea notes = new TextArea("Notes");
notes.setValue("Remember to:\n· Zoom in and out in the Sales view\n· Filter the transactions and drag a set of them to the Reports tab\n· Create a new report\n· Change the schedule of the movie theater");
notes.setSizeFull();
notes.addStyleName(ValoTheme.TEXTAREA_BORDERLESS);
Component panel = createContentWrapper(notes);
panel.addStyleName("notes");
return panel;
}
示例9: TextArea
import com.vaadin.ui.TextArea; //导入方法依赖的package包/类
protected TextArea createTextArea(String value, int lines) {
TextArea area = new TextArea();
area.setValue(value);
area.setNullRepresentation("");
area.setSizeFull();
area.setReadOnly(true);
area.setRows(lines);
return area;
}
示例10: createDescription
import com.vaadin.ui.TextArea; //导入方法依赖的package包/类
/**
* Creates the description.
*
* @return the text area
*/
private static TextArea createDescription() {
final TextArea totalCommitteeRankinglistLabel = new TextArea(COMMITTEE_RANKING_BY_TOPIC,
COMMITTEE_RANKING_BY_TOPIC_DESCRIPTION);
totalCommitteeRankinglistLabel.setSizeFull();
totalCommitteeRankinglistLabel.setStyleName("Level2Header");
return totalCommitteeRankinglistLabel;
}
示例11: createDescription
import com.vaadin.ui.TextArea; //导入方法依赖的package包/类
/**
* Creates the description.
*
* @return the text area
*/
private static TextArea createDescription() {
final TextArea totalCommitteeRankinglistLabel = new TextArea(MINISTRY_RANKING_BY_TOPIC,
MINISTRY_RANKING_BY_TOPIC_DESCRIPTION);
totalCommitteeRankinglistLabel.setSizeFull();
totalCommitteeRankinglistLabel.setStyleName("Level2Header");
return totalCommitteeRankinglistLabel;
}
示例12: getTargetComponent
import com.vaadin.ui.TextArea; //导入方法依赖的package包/类
@Override
public Component getTargetComponent() {
final TextArea textArea = new TextArea();
textArea.setSizeFull();
textArea.setValue("Copy to clipboard textarea value....");
textArea.setId("tocopie-textarea");
return textArea;
}
示例13: ErrorWindow
import com.vaadin.ui.TextArea; //导入方法依赖的package包/类
public ErrorWindow(String intro, String message) {
super("Error");
setWidth(600f, Unit.PIXELS);
setHeight(300f, Unit.PIXELS);
content.setMargin(true);
HorizontalLayout layout = new HorizontalLayout();
Label icon = new Label();
icon.setIcon(new ThemeResource("images/error.png"));
icon.setWidth(70f, Unit.PIXELS);
layout.addComponent(icon);
Label labelIntro = new Label(intro, ContentMode.HTML);
labelIntro.setStyleName("large");
labelIntro.setWidth(530f, Unit.PIXELS);
layout.addComponent(labelIntro);
addComponent(layout);
TextArea textField = new TextArea();
textField.setSizeFull();
textField.setWordwrap(false);
textField.setValue(message);
addComponent(textField);
content.setExpandRatio(textField, 1.0f);
addComponent(buildButtonFooter(buildCloseButton()));
}
示例14: buildDialogLayout
import com.vaadin.ui.TextArea; //导入方法依赖的package包/类
@Override
protected void buildDialogLayout() {
VerticalLayout mainLayout = new VerticalLayout();
mainLayout.setSizeFull();
mainLayout.setSpacing(true);
mainLayout.setMargin(true);
mainLayout.setWidth("100%");
mainLayout.setHeight("100%");
txtQuery= new TextArea(ctx.tr("dialog.query"), query);
txtQuery.setWidth("100%");
txtQuery.setSizeFull();
txtQuery.setNullRepresentation("");
txtQuery.setNullSettingAllowed(true);
txtQuery.setImmediate(true);
txtQuery.addValidator(createSparqlQueryValidator());
mainLayout.addComponent(txtQuery);
mainLayout.setExpandRatio(txtQuery, 1.0f);
VerticalLayout bottomLayout = new VerticalLayout();
bottomLayout.addComponent(new CheckBox(ctx.tr("dialog.messageType.fail"), failExecution));
mainLayout.addComponent(bottomLayout);
mainLayout.setExpandRatio(bottomLayout, 0.1f);
setCompositionRoot(mainLayout);
}
示例15: buildDialogLayout
import com.vaadin.ui.TextArea; //导入方法依赖的package包/类
@Override
public void buildDialogLayout() {
Map<String, String> env = this.getContext().getEnvironment();
pathToShellScripts = env.get(ExecuteShellScript.SHELL_SCRIPT_PATH);
final VerticalLayout mainLayout = new VerticalLayout();
mainLayout.setSizeFull();
mainLayout.setMargin(true);
mainLayout.setSpacing(true);
lstScriptName = new ListSelect(ctx.tr("ExecuteShellScript.dialog.scriptName"));
lstScriptName.setRows(5);
lstScriptName.setNullSelectionAllowed(true);
lstScriptName.setWidth("100%");
mainLayout.addComponent(lstScriptName);
txtConfiguration = new TextArea(ctx.tr("ExecuteShellScript.dialog.configuration"));
txtConfiguration.setSizeFull();
mainLayout.addComponent(txtConfiguration);
errorLabel = new Label();
errorLabel.setVisible(false);
errorLabel.setStyleName("dpu-error-label");
mainLayout.addComponent(errorLabel);
fillListValues();
setCompositionRoot(mainLayout);
}