/** * 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; }
/** * 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); }
/** * 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; }
/** * 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; }
/** * 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); }
/** * 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); }
public AbstractField<String> getComponent(CriteriaBuilderHelper criteriaBuilderHelper) { TextField textField = new TextField(); textField.setCaption("Value"); textField.setStyleName("small"); textField.setDescription("Value"); return textField; } },
public AbstractField<String> getComponent(CriteriaBuilderHelper criteriaBuilderHelper) { TextField textField = new TextField(); textField.setCaption("Text value"); textField.setStyleName("small"); textField.setDescription("Text value"); return textField; } },
public AbstractField<String> getComponent(CriteriaBuilderHelper criteriaBuilderHelper) { TextField textField = new TextField(); textField.setCaption("Integer value"); textField.setStyleName("small"); textField.setDescription("Integer value"); return textField; } };
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");
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"));
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");
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);
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");
labelField.setValue(def.getLabel() != null ? def.getLabel() : ""); labelField.setImmediate(true); labelField.setCaption("Label"); labelField.setDescription("Label of this category"); labelField.setWidth(100, Unit.PERCENTAGE);
titleField.setCaption("Title");
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");