com.vaadin.v7.ui.TextField.setCaption()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(6.6k)|赞(0)|评价(0)|浏览(180)

本文整理了Java中com.vaadin.v7.ui.TextField.setCaption()方法的一些代码示例,展示了TextField.setCaption()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。TextField.setCaption()方法的具体详情如下:
包路径:com.vaadin.v7.ui.TextField
类名称:TextField
方法名:setCaption

TextField.setCaption介绍

暂无

代码示例

代码示例来源:origin: OpenNMS/opennms

  1. /**
  2. * Sets the label of the value input field.
  3. *
  4. * @param fieldName the field name to be used
  5. * @return the instance itself
  6. */
  7. public KeyValueInputDialogWindow withValueFieldName(String fieldName) {
  8. m_valueInputField.setCaption(fieldName);
  9. return this;
  10. }

代码示例来源:origin: com.vaadin/vaadin-compatibility-server

  1. /**
  2. * Constructs a new <code>TextField</code> that's bound to the specified
  3. * <code>Property</code> and has the given caption <code>String</code>.
  4. *
  5. * @param caption
  6. * the caption <code>String</code> for the editor.
  7. * @param dataSource
  8. * the Property to be edited with this editor.
  9. */
  10. public TextField(String caption, Property dataSource) {
  11. this(dataSource);
  12. setCaption(caption);
  13. }

代码示例来源:origin: OpenNMS/opennms

  1. /**
  2. * Sets the label of the input field.
  3. *
  4. * @param fieldName the field name to be used
  5. * @return the instance itself
  6. */
  7. public StringInputDialogWindow withFieldName(String fieldName) {
  8. m_inputField.setCaption(fieldName);
  9. return this;
  10. }

代码示例来源:origin: OpenNMS/opennms

  1. /**
  2. * Sets the label of the key input field.
  3. *
  4. * @param fieldName the field name to be used
  5. * @return the instance itself
  6. */
  7. public KeyValueInputDialogWindow withKeyFieldName(String fieldName) {
  8. m_keyInputField.setCaption(fieldName);
  9. return this;
  10. }

代码示例来源:origin: com.vaadin/vaadin-compatibility-server

  1. /**
  2. * Constructs an empty <code>TextField</code> with given caption.
  3. *
  4. * @param caption
  5. * the caption <code>String</code> for the editor.
  6. */
  7. public TextField(String caption) {
  8. this();
  9. setCaption(caption);
  10. }

代码示例来源:origin: com.vaadin/vaadin-compatibility-server

  1. /**
  2. * Constructs a new <code>TextField</code> with the given caption and
  3. * initial text contents. The editor constructed this way will not be bound
  4. * to a Property unless
  5. * {@link Property.Viewer#setPropertyDataSource(Property)} is called to bind
  6. * it.
  7. *
  8. * @param caption
  9. * the caption <code>String</code> for the editor.
  10. * @param value
  11. * the initial text content of the editor.
  12. */
  13. public TextField(String caption, String value) {
  14. setValue(value);
  15. setCaption(caption);
  16. }

代码示例来源:origin: OpenNMS/opennms

  1. public AbstractField<String> getComponent(CriteriaBuilderHelper criteriaBuilderHelper) {
  2. TextField textField = new TextField();
  3. textField.setCaption("Value");
  4. textField.setStyleName("small");
  5. textField.setDescription("Value");
  6. return textField;
  7. }
  8. },

代码示例来源:origin: OpenNMS/opennms

  1. public AbstractField<String> getComponent(CriteriaBuilderHelper criteriaBuilderHelper) {
  2. TextField textField = new TextField();
  3. textField.setCaption("Text value");
  4. textField.setStyleName("small");
  5. textField.setDescription("Text value");
  6. return textField;
  7. }
  8. },

代码示例来源:origin: OpenNMS/opennms

  1. public AbstractField<String> getComponent(CriteriaBuilderHelper criteriaBuilderHelper) {
  2. TextField textField = new TextField();
  3. textField.setCaption("Integer value");
  4. textField.setStyleName("small");
  5. textField.setDescription("Integer value");
  6. return textField;
  7. }
  8. };

代码示例来源:origin: OpenNMS/opennms

  1. numberOfRequestsField.setCaption("Number of Requests");
  2. numberOfRequestsField.setRequired(true);
  3. numberOfRequestsField.setRequiredError("Must be given");
  4. timeoutField.setCaption("Timeout (seconds)");
  5. timeoutField.setRequired(true);
  6. timeoutField.setRequiredError("Must be given");

代码示例来源:origin: OpenNMS/opennms

  1. m_widthField.setCaption("Graph Width");
  2. m_widthField.setDescription("Width of graphs");
  3. m_widthField.setValue(m_dashletSpec.getParameters().get("width"));
  4. m_heightField.setCaption("Graph Height");
  5. m_heightField.setDescription("Height of graphs");
  6. m_heightField.setValue(m_dashletSpec.getParameters().get("height"));

代码示例来源:origin: OpenNMS/opennms

  1. userField.setCaption("User");
  2. userField.setNullRepresentation("");
  3. userField.setDescription("Username for JMX-RMI Authentication");
  4. serviceNameField.setCaption("Service name");
  5. serviceNameField.setNullRepresentation("");
  6. serviceNameField.setRequired(true);
  7. connectionTextField.setCaption("Connection");
  8. connectionTextField.setRequired(true);
  9. connectionTextField.setRequiredError("required");

代码示例来源:origin: OpenNMS/opennms

  1. timeRangeFrom.setCaption("From");
  2. timeRangeFrom.setDescription("Start of time range to be displayed");
  3. timeRangeFrom.setImmediate(true);
  4. timeRangeTo.setCaption("To");
  5. timeRangeTo.setDescription("End of time range to be displayed");
  6. timeRangeTo.setImmediate(true);

代码示例来源:origin: OpenNMS/opennms

  1. priorityField.setValue(String.valueOf(dashletSpec.getPriority()));
  2. priorityField.setImmediate(true);
  3. priorityField.setCaption("Priority");
  4. priorityField.setDescription("Priority of this dashlet");
  5. boostPriorityField.setValue(String.valueOf(dashletSpec.getBoostPriority()));
  6. boostPriorityField.setImmediate(true);
  7. boostPriorityField.setCaption("Boost-Priority");
  8. boostPriorityField.setDescription("Boost priority of this dashlet");
  9. durationField.setValue(String.valueOf(dashletSpec.getDuration()));
  10. durationField.setImmediate(true);
  11. durationField.setCaption("Duration");
  12. durationField.setDescription("Duration for this dashlet");
  13. boostDurationField.setValue(String.valueOf(dashletSpec.getBoostDuration()));
  14. boostDurationField.setImmediate(true);
  15. boostDurationField.setCaption("Boost-Duration");
  16. boostDurationField.setDescription("Boost duration for this dashlet");
  17. m_titleField.setValue(dashletSpec.getTitle());
  18. m_titleField.setImmediate(true);
  19. m_titleField.setCaption("Title");
  20. m_titleField.setDescription("Title for this dashlet instance");

代码示例来源:origin: OpenNMS/opennms

  1. labelField.setValue(def.getLabel() != null ? def.getLabel() : "");
  2. labelField.setImmediate(true);
  3. labelField.setCaption("Label");
  4. labelField.setDescription("Label of this category");
  5. labelField.setWidth(100, Unit.PERCENTAGE);

代码示例来源:origin: OpenNMS/opennms

  1. titleField.setCaption("Title");

代码示例来源:origin: OpenNMS/opennms

  1. titleField.setValue(view.getName());
  2. titleField.setImmediate(true);
  3. titleField.setCaption("Title");
  4. titleField.setDescription("Title of this surveillance view");
  5. titleField.setWidth(25, Unit.PERCENTAGE);
  6. refreshSecondsField.setValue(String.valueOf(view.getRefreshSeconds()));
  7. refreshSecondsField.setImmediate(true);
  8. refreshSecondsField.setCaption("Refresh seconds");
  9. refreshSecondsField.setDescription("Refresh duration in seconds");

相关文章