当前位置: 首页>>代码示例>>Java>>正文


Java TextArea.setStyleName方法代码示例

本文整理汇总了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;
}
 
开发者ID:Hack23,项目名称:cia,代码行数:24,代码来源:PartyRankingOverviewPageModContentFactoryImpl.java

示例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;
}
 
开发者ID:Hack23,项目名称:cia,代码行数:23,代码来源:PoliticianRankingOverviewPageModContentFactoryImpl.java

示例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;
}
 
开发者ID:Terracotta-OSS,项目名称:tinypounder,代码行数:12,代码来源:TinyPounderMainUI.java

示例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);
	}
 
开发者ID:DHBW-Karlsruhe,项目名称:businesshorizon2,代码行数:40,代码来源:ProjectCreationViewImpl.java

示例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;
}
 
开发者ID:Hack23,项目名称:cia,代码行数:13,代码来源:CommitteeRankingOverviewPageModContentFactoryImpl.java

示例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;
}
 
开发者ID:Hack23,项目名称:cia,代码行数:13,代码来源:MinistryRankingOverviewPageModContentFactoryImpl.java

示例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;
}
 
开发者ID:fossaag,项目名称:rolp,代码行数:15,代码来源:EinschaetzungAnlegenFormFields.java


注:本文中的com.vaadin.ui.TextArea.setStyleName方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。