本文整理了Java中com.vaadin.v7.ui.TextField.setCaption()
方法的一些代码示例,展示了TextField.setCaption()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。TextField.setCaption()
方法的具体详情如下:
包路径:com.vaadin.v7.ui.TextField
类名称:TextField
方法名:setCaption
暂无
代码示例来源:origin: OpenNMS/opennms
/**
* Sets the label of the value input field.
*
* @param fieldName the field name to be used
* @return the instance itself
*/
public KeyValueInputDialogWindow withValueFieldName(String fieldName) {
m_valueInputField.setCaption(fieldName);
return this;
}
代码示例来源:origin: com.vaadin/vaadin-compatibility-server
/**
* Constructs a new <code>TextField</code> that's bound to the specified
* <code>Property</code> and has the given caption <code>String</code>.
*
* @param caption
* the caption <code>String</code> for the editor.
* @param dataSource
* the Property to be edited with this editor.
*/
public TextField(String caption, Property dataSource) {
this(dataSource);
setCaption(caption);
}
代码示例来源:origin: OpenNMS/opennms
/**
* Sets the label of the input field.
*
* @param fieldName the field name to be used
* @return the instance itself
*/
public StringInputDialogWindow withFieldName(String fieldName) {
m_inputField.setCaption(fieldName);
return this;
}
代码示例来源:origin: OpenNMS/opennms
/**
* Sets the label of the key input field.
*
* @param fieldName the field name to be used
* @return the instance itself
*/
public KeyValueInputDialogWindow withKeyFieldName(String fieldName) {
m_keyInputField.setCaption(fieldName);
return this;
}
代码示例来源:origin: com.vaadin/vaadin-compatibility-server
/**
* Constructs an empty <code>TextField</code> with given caption.
*
* @param caption
* the caption <code>String</code> for the editor.
*/
public TextField(String caption) {
this();
setCaption(caption);
}
代码示例来源:origin: com.vaadin/vaadin-compatibility-server
/**
* Constructs a new <code>TextField</code> with the given caption and
* initial text contents. The editor constructed this way will not be bound
* to a Property unless
* {@link Property.Viewer#setPropertyDataSource(Property)} is called to bind
* it.
*
* @param caption
* the caption <code>String</code> for the editor.
* @param value
* the initial text content of the editor.
*/
public TextField(String caption, String value) {
setValue(value);
setCaption(caption);
}
代码示例来源:origin: OpenNMS/opennms
public AbstractField<String> getComponent(CriteriaBuilderHelper criteriaBuilderHelper) {
TextField textField = new TextField();
textField.setCaption("Value");
textField.setStyleName("small");
textField.setDescription("Value");
return textField;
}
},
代码示例来源:origin: OpenNMS/opennms
public AbstractField<String> getComponent(CriteriaBuilderHelper criteriaBuilderHelper) {
TextField textField = new TextField();
textField.setCaption("Text value");
textField.setStyleName("small");
textField.setDescription("Text value");
return textField;
}
},
代码示例来源:origin: OpenNMS/opennms
public AbstractField<String> getComponent(CriteriaBuilderHelper criteriaBuilderHelper) {
TextField textField = new TextField();
textField.setCaption("Integer value");
textField.setStyleName("small");
textField.setDescription("Integer value");
return textField;
}
};
代码示例来源:origin: OpenNMS/opennms
numberOfRequestsField.setCaption("Number of Requests");
numberOfRequestsField.setRequired(true);
numberOfRequestsField.setRequiredError("Must be given");
timeoutField.setCaption("Timeout (seconds)");
timeoutField.setRequired(true);
timeoutField.setRequiredError("Must be given");
代码示例来源:origin: OpenNMS/opennms
m_widthField.setCaption("Graph Width");
m_widthField.setDescription("Width of graphs");
m_widthField.setValue(m_dashletSpec.getParameters().get("width"));
m_heightField.setCaption("Graph Height");
m_heightField.setDescription("Height of graphs");
m_heightField.setValue(m_dashletSpec.getParameters().get("height"));
代码示例来源:origin: OpenNMS/opennms
userField.setCaption("User");
userField.setNullRepresentation("");
userField.setDescription("Username for JMX-RMI Authentication");
serviceNameField.setCaption("Service name");
serviceNameField.setNullRepresentation("");
serviceNameField.setRequired(true);
connectionTextField.setCaption("Connection");
connectionTextField.setRequired(true);
connectionTextField.setRequiredError("required");
代码示例来源:origin: OpenNMS/opennms
timeRangeFrom.setCaption("From");
timeRangeFrom.setDescription("Start of time range to be displayed");
timeRangeFrom.setImmediate(true);
timeRangeTo.setCaption("To");
timeRangeTo.setDescription("End of time range to be displayed");
timeRangeTo.setImmediate(true);
代码示例来源:origin: OpenNMS/opennms
priorityField.setValue(String.valueOf(dashletSpec.getPriority()));
priorityField.setImmediate(true);
priorityField.setCaption("Priority");
priorityField.setDescription("Priority of this dashlet");
boostPriorityField.setValue(String.valueOf(dashletSpec.getBoostPriority()));
boostPriorityField.setImmediate(true);
boostPriorityField.setCaption("Boost-Priority");
boostPriorityField.setDescription("Boost priority of this dashlet");
durationField.setValue(String.valueOf(dashletSpec.getDuration()));
durationField.setImmediate(true);
durationField.setCaption("Duration");
durationField.setDescription("Duration for this dashlet");
boostDurationField.setValue(String.valueOf(dashletSpec.getBoostDuration()));
boostDurationField.setImmediate(true);
boostDurationField.setCaption("Boost-Duration");
boostDurationField.setDescription("Boost duration for this dashlet");
m_titleField.setValue(dashletSpec.getTitle());
m_titleField.setImmediate(true);
m_titleField.setCaption("Title");
m_titleField.setDescription("Title for this dashlet instance");
代码示例来源:origin: OpenNMS/opennms
labelField.setValue(def.getLabel() != null ? def.getLabel() : "");
labelField.setImmediate(true);
labelField.setCaption("Label");
labelField.setDescription("Label of this category");
labelField.setWidth(100, Unit.PERCENTAGE);
代码示例来源:origin: OpenNMS/opennms
titleField.setCaption("Title");
代码示例来源:origin: OpenNMS/opennms
titleField.setValue(view.getName());
titleField.setImmediate(true);
titleField.setCaption("Title");
titleField.setDescription("Title of this surveillance view");
titleField.setWidth(25, Unit.PERCENTAGE);
refreshSecondsField.setValue(String.valueOf(view.getRefreshSeconds()));
refreshSecondsField.setImmediate(true);
refreshSecondsField.setCaption("Refresh seconds");
refreshSecondsField.setDescription("Refresh duration in seconds");
内容来源于网络,如有侵权,请联系作者删除!