本文整理匯總了Java中com.vaadin.ui.TextArea.setEnabled方法的典型用法代碼示例。如果您正苦於以下問題:Java TextArea.setEnabled方法的具體用法?Java TextArea.setEnabled怎麽用?Java TextArea.setEnabled使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類com.vaadin.ui.TextArea
的用法示例。
在下文中一共展示了TextArea.setEnabled方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: createTargetFilterQuery
import com.vaadin.ui.TextArea; //導入方法依賴的package包/類
private static TextArea createTargetFilterQuery() {
final TextArea filterField = new TextAreaBuilder().style("text-area-style")
.id(UIComponentIdProvider.ROLLOUT_TARGET_FILTER_QUERY_FIELD)
.maxLengthAllowed(SPUILabelDefinitions.TARGET_FILTER_QUERY_TEXT_FIELD_LENGTH).buildTextComponent();
filterField.setId(UIComponentIdProvider.ROLLOUT_TARGET_FILTER_QUERY_FIELD);
filterField.setNullRepresentation("");
filterField.setEnabled(false);
filterField.setSizeUndefined();
return filterField;
}
示例2: createTargetFilterQuery
import com.vaadin.ui.TextArea; //導入方法依賴的package包/類
private TextArea createTargetFilterQuery() {
final TextArea filterField = new TextAreaBuilder().style("text-area-style")
.id(UIComponentIdProvider.ROLLOUT_TARGET_FILTER_QUERY_FIELD)
.maxLengthAllowed(SPUILabelDefinitions.TARGET_FILTER_QUERY_TEXT_FIELD_LENGTH).buildTextComponent();
filterField.setNullRepresentation("");
filterField.setEnabled(false);
filterField.setSizeUndefined();
return filterField;
}
示例3: buildUI
import com.vaadin.ui.TextArea; //導入方法依賴的package包/類
protected void buildUI() {
ButtonBar buttonBar = new ButtonBar();
addComponent(buttonBar);
if (!readOnly) {
Button testButton = buttonBar.addButton("Test", FontAwesome.FILE_CODE_O);
testButton.addClickListener(new TestClickListener());
}
filterField = buttonBar.addFilter();
filterField.addTextChangeListener(this);
HorizontalSplitPanel splitPanel = new HorizontalSplitPanel();
splitPanel.setSizeFull();
splitPanel.setSplitPosition(50, Unit.PERCENTAGE);
VerticalLayout leftLayout = new VerticalLayout();
editor = new AceEditor();
editor.setMode(AceMode.xml);
editor.setSizeFull();
editor.setHighlightActiveLine(true);
editor.setShowPrintMargin(false);
editor.addTextChangeListener(new StylesheetChangeListener());
editor.setValue(component.findSetting(XsltProcessor.XSLT_PROCESSOR_STYLESHEET).getValue());
leftLayout.addComponent(new Label("XSLT Stylesheet"));
leftLayout.addComponent(editor);
leftLayout.setExpandRatio(editor, 1.0f);
leftLayout.setSizeFull();
splitPanel.setFirstComponent(leftLayout);
VerticalLayout rightLayout = new VerticalLayout();
rightLayout.setSizeFull();
rightLayout.addComponent(new Label("Sample Input XML"));
textArea = new TextArea();
textArea.setEnabled(false);
textArea.setSizeFull();
textArea.setValue(getSampleXml());
rightLayout.addComponent(textArea);
rightLayout.setExpandRatio(textArea, 1.0f);
splitPanel.setSecondComponent(rightLayout);
addComponent(splitPanel);
setExpandRatio(splitPanel, 1.0f);
textArea.setReadOnly(readOnly);
editor.setReadOnly(readOnly);
}