當前位置: 首頁>>代碼示例>>Java>>正文


Java TextArea.addStyleName方法代碼示例

本文整理匯總了Java中com.vaadin.ui.TextArea.addStyleName方法的典型用法代碼示例。如果您正苦於以下問題:Java TextArea.addStyleName方法的具體用法?Java TextArea.addStyleName怎麽用?Java TextArea.addStyleName使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在com.vaadin.ui.TextArea的用法示例。


在下文中一共展示了TextArea.addStyleName方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: getDetails

import com.vaadin.ui.TextArea; //導入方法依賴的package包/類
@Override
public Component getDetails(final RowReference rowReference) {
    // Find the bean to generate details for
    final Item item = rowReference.getItem();
    final String message = (String) item.getItemProperty(ProxyMessage.PXY_MSG_VALUE).getValue();

    final TextArea textArea = new TextArea();
    textArea.addStyleName(ValoTheme.TEXTAREA_BORDERLESS);
    textArea.addStyleName(ValoTheme.TEXTAREA_TINY);
    textArea.addStyleName("inline-icon");
    textArea.setHeight(120, Unit.PIXELS);
    textArea.setWidth(100, Unit.PERCENTAGE);
    textArea.setValue(message);
    textArea.setReadOnly(Boolean.TRUE);
    return textArea;
}
 
開發者ID:eclipse,項目名稱:hawkbit,代碼行數:17,代碼來源:ActionStatusMsgGrid.java

示例2: addSystemInfo

import com.vaadin.ui.TextArea; //導入方法依賴的package包/類
@Override
public void addSystemInfo(Accordion systemInfoPanel) {
    VerticalLayout layout = new VerticalLayout();
    textArea = new TextArea("System Info");
    textArea.addStyleName(UIConstants.FIXED_FONT);
    textArea.setValue(getInfo());
    textArea.setRows(20);
    textArea.setHeight("400px");
    textArea.setWidth("100%");
    layout.addComponents(textArea);
    systemInfoPanel.addTab(layout, getCaption());
}
 
開發者ID:apache,項目名稱:incubator-tamaya-sandbox,代碼行數:13,代碼來源:AbstractTextInfoProvider.java

示例3: 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;
}
 
開發者ID:mcollovati,項目名稱:vaadin-vertx-samples,代碼行數:10,代碼來源:DashboardView.java

示例4: createDynamicStyleForComponents

import com.vaadin.ui.TextArea; //導入方法依賴的package包/類
/**
 * Set tag name and desc field border color based on chosen color.
 *
 * @param tagName
 * @param tagDesc
 * @param taregtTagColor
 */
private void createDynamicStyleForComponents(final TextField tagName, final TextField typeKey,
        final TextArea typeDesc, final String typeTagColor) {

    tagName.removeStyleName(SPUIDefinitions.TYPE_NAME);
    typeKey.removeStyleName(SPUIDefinitions.TYPE_KEY);
    typeDesc.removeStyleName(SPUIDefinitions.TYPE_DESC);
    getDynamicStyles(typeTagColor);
    tagName.addStyleName(TYPE_NAME_DYNAMIC_STYLE);
    typeKey.addStyleName(TYPE_NAME_DYNAMIC_STYLE);
    typeDesc.addStyleName(TYPE_DESC_DYNAMIC_STYLE);
}
 
開發者ID:eclipse,項目名稱:hawkbit,代碼行數:19,代碼來源:CreateUpdateTypeLayout.java

示例5: createDynamicStyleForComponents

import com.vaadin.ui.TextArea; //導入方法依賴的package包/類
/**
 * Set tag name and desc field border color based on chosen color.
 *
 * @param tagName
 * @param tagDesc
 * @param taregtTagColor
 */
protected void createDynamicStyleForComponents(final TextField tagName, final TextArea tagDesc,
        final String taregtTagColor) {

    tagName.removeStyleName(SPUIDefinitions.TAG_NAME);
    tagDesc.removeStyleName(SPUIDefinitions.TAG_DESC);
    getTargetDynamicStyles(taregtTagColor);
    tagName.addStyleName(TAG_NAME_DYNAMIC_STYLE);
    tagDesc.addStyleName(TAG_DESC_DYNAMIC_STYLE);
}
 
開發者ID:eclipse,項目名稱:hawkbit,代碼行數:17,代碼來源:AbstractCreateUpdateTagLayout.java

示例6: createTextComponent

import com.vaadin.ui.TextArea; //導入方法依賴的package包/類
@Override
protected TextArea createTextComponent() {
    final TextArea textArea = new TextArea();
    textArea.addStyleName(ValoTheme.TEXTAREA_SMALL);
    return textArea;
}
 
開發者ID:eclipse,項目名稱:hawkbit,代碼行數:7,代碼來源:TextAreaBuilder.java

示例7: doLayout

import com.vaadin.ui.TextArea; //導入方法依賴的package包/類
private void doLayout(String caption, String name, String desc,
		String notesForTeachers) {
		
	setSpacing(true);
	
	this.setWidth("100%");
	showDescriptions = true;
	
	Panel p = new Panel(caption);
	p.setWidth("100%");
	p.addStyleName("bubble");
	p.addStyleName("info-panel-bolded");
	
	VerticalLayout pLayout = new VerticalLayout();
	pLayout.setMargin(true);
	pLayout.setSpacing(true);
	pLayout.setWidth("100%");
	
	exerciseName = new TextField();
	exerciseName.setWidth("100%");
	exerciseName.setValue(name);
	exerciseName.addStyleName("component-margin-bottom");
	pLayout.addComponent(new Label(localizer
			.getUIText(StubUiConstants.EXERCISE_NAME)));
	pLayout.addComponent(exerciseName);
	
	description = new CleanRichTextArea();
	
	description.setWidth("100%");
	description.setHeight("200px");
	description.setValue(desc);
	description.addStyleName("component-margin-bottom");
	descriptionLabel = new Label(
			localizer.getUIText(StubUiConstants.DEFAULT_DESCRIPTION));
	pLayout.addComponent(descriptionLabel);
	pLayout.addComponent(description);
	
	notes = new TextArea();
	notes.setWidth("100%");
	notes.setRows(3);
	notes.setValue(notesForTeachers);
	notes.addStyleName("component-margin-bottom");
	notesLabel = new Label(
			localizer.getUIText(StubUiConstants.NOTES_FOR_TEACHERS));
	pLayout.addComponent(notesLabel);
	pLayout.addComponent(notes);
	
	hideShowButton = new Button(
			localizer.getUIText(StubUiConstants.HIDE_DESCRIPTIONS));
	hideShowButton.addClickListener(this);
	hideShowButton.setStyleName(BaseTheme.BUTTON_LINK);
	pLayout.addComponent(hideShowButton);
	
	p.setContent(pLayout);
	this.addComponent(p);
	
}
 
開發者ID:villeteam,項目名稱:vexer,代碼行數:58,代碼來源:EditorHelperStubImpl.java


注:本文中的com.vaadin.ui.TextArea.addStyleName方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。