本文整理汇总了Java中com.vaadin.ui.TextArea.setStyleName方法的典型用法代码示例。如果您正苦于以下问题:Java TextArea.setStyleName方法的具体用法?Java TextArea.setStyleName怎么用?Java TextArea.setStyleName使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.vaadin.ui.TextArea
的用法示例。
在下文中一共展示了TextArea.setStyleName方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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: addConsole
import com.vaadin.ui.TextArea; //导入方法依赖的package包/类
private TextArea addConsole(String title, String key) {
TextArea console = new TextArea();
console.setData(key);
console.setWidth(100, Unit.PERCENTAGE);
console.setWordWrap(false);
console.setStyleName("console");
consoles.addTab(console, title);
return console;
}
示例4: generateUi
import com.vaadin.ui.TextArea; //导入方法依赖的package包/类
/**
* Diese Methode erstellt das UI, bestehend aus Inputfeld für Projektname und
* Projektbeschreibung.
*
* @author Marco Glaser
*/
public void generateUi(){
setWidth(95, UNITS_PERCENTAGE);
setHeight(SIZE_UNDEFINED, 0);
setStyleName("projectCreationLayout");
projectNameInput = new TextField();
projectDescriptionInput = new TextArea();
gap = new Label();
secondGap = new Label();
projectNameInput.setWidth(80, UNITS_PERCENTAGE);
// projectNameInput.setHeight(30, UNITS_PIXELS);
projectNameInput.setStyleName("projectNameInput");
projectDescriptionInput.setWidth(80, UNITS_PERCENTAGE);
projectDescriptionInput.setHeight(300, UNITS_PIXELS);
projectDescriptionInput.setStyleName("projectNameInput");
gap.setHeight("20px");
secondGap.setSizeFull();
projectNameInput.setValue("Geben Sie hier den Projektnamen ein.");
projectDescriptionInput.setValue("Geben Sie hier eine Beschreibung des Projekts ein.");
addComponent(projectNameInput);
addComponent(gap);
addComponent(projectDescriptionInput);
projectNameInput.setCaption("Projektname");
projectNameInput.setValue("Geben Sie hier den Projektnamen ein.");
projectDescriptionInput.setCaption("Projektbeschreibung");
projectDescriptionInput.setValue("Geben Sie hier eine Projektbeschreibung ein");
// addComponent(secondGap);
// setExpandRatio(secondGap, 1.0f);
}
示例5: 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;
}
示例6: 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;
}
示例7: createField
import com.vaadin.ui.TextArea; //导入方法依赖的package包/类
@Override
public Field createField(Item item, Object propertyId, Component uiContext) {
Field field = super.createField(item, propertyId, uiContext);
if (propertyId.equals(EinschaetzungPojo.EINSCHAETZUNGSTEXT_COLUMN)) {
TextArea text = new TextArea("");
text.setStyleName("einschaetzungText");
text.setWidth("100%");
text.setRows(25);
text.setRequired(true);
return text;
}
return field;
}