当前位置: 首页>>代码示例>>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;未经允许,请勿转载。