當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。