@Override public void setLabel(String label) { this.label.setText(label); }
public void setShowRequiredIndicator(final boolean required) { formLabel.setShowRequiredIndicator(required); } }
@Override public String getLabel() { return label.getText(); }
@Override public void onChange(ChangeEvent event) { if (iconElement != null) { iconElement.removeFromParent(); } String html = getHTML(); if (showRequiredIndicator && html != null && !"".equals(html)) { iconElement = createIconElement(); getElement().appendChild(iconElement); } } }, ChangeEvent.getType());
@Override public void init(ProcessInstanceSignalPresenter presenter) { this.presenter = presenter; clearButton.setText(constants.Clear()); signalButton.setText(constants.Signal()); signalRefLabel.setText(constants.Signal_Name()); signalRefLabel.setShowRequiredIndicator(true); eventLabel.setText(constants.Signal_Data()); clearFields(); }
public TitledAttachmentFileWidget(String title, LibraryPlaces libraryPlaces, AssetQueryService assetQueryService) { titleLabel.setStyleName("control-label"); titleLabel.setText(title); fields.add(titleLabel); fields.add(this.comboBox); this.libraryPlaces = libraryPlaces; this.assetQueryService = assetQueryService; this.workspaceProject = libraryPlaces.getActiveWorkspace(); initWidget(fields); comboBox.addValueChangeHandler(this); }
public void addTextBoxToFilter(String label, String fieldName, String defaultValue) { FormGroup controlGroup = new FormGroup(); FormLabel controlLabel = new FormLabel(); controlLabel.setTitle(label); HTML lab = new HTML("<span style=\"margin-right:10px\">" + label + "</span>"); controlLabel.setHTML(lab.getHTML()); TextBox textBox = new TextBox(); textBox.setName(fieldName); if (defaultValue != null && defaultValue.trim().length() > 0) { textBox.setText(defaultValue); } controlGroup.add(controlLabel); controlGroup.add(textBox); filterControlGroups.add(controlGroup); horizontalForm.add(controlGroup); }
public void setFor(final String f) { if (f != null) { getElement().setAttribute(Attributes.FOR, f); } else { getElement().removeAttribute(Attributes.FOR); } }
public void setFor(final String forValue) { formLabel.setFor(forValue); }
public FormLabelHelp() { this(new FormLabel(), new FlowPanel()); }
public void addTextBoxToFilter(String label, String fieldName, String defaultValue) { FormGroup controlGroup = new FormGroup(); FormLabel controlLabel = new FormLabel(); controlLabel.setTitle(label); HTML lab = new HTML("<span style=\"margin-right:10px\">" + label + "</span>"); controlLabel.setHTML(lab.getHTML()); TextBox textBox = new TextBox(); textBox.setName(fieldName); if (defaultValue != null && defaultValue.trim().length() > 0) { textBox.setText(defaultValue); } controlGroup.add(controlLabel); controlGroup.add(textBox); filterControlGroups.add(controlGroup); filterForm.add(controlGroup); }
@Override public void onChange(ChangeEvent event) { if (iconElement != null) { iconElement.removeFromParent(); } String html = getHTML(); if (showRequiredIndicator && html != null && !"".equals(html)) { iconElement = createIconElement(); getElement().appendChild(iconElement); } } }, ChangeEvent.getType());
public void setFor(final String f) { if (f != null) { getElement().setAttribute(Attributes.FOR, f); } else { getElement().removeAttribute(Attributes.FOR); } }
public void setFor(final String forValue) { formLabel.setFor(forValue); }
public FormLabelHelp() { this(new FormLabel(), new FlowPanel()); }
@Override public void setText(final String text) { formLabel.setText(text); }
public void addListBoxToFilter(String label, String fieldName, boolean multiselect, HashMap<String, String> listBoxInfo) { FormGroup controlGroup = new FormGroup(); FormLabel controlLabel = new FormLabel(); controlLabel.setTitle(label); HTML lab = new HTML("<span style=\"margin-right:10px\">" + label + "</span>"); controlLabel.setHTML(lab.getHTML()); ListBox listBox = new ListBox(multiselect); if (listBoxInfo != null) { Set listBoxKeys = listBoxInfo.keySet(); Iterator it = listBoxKeys.iterator(); String key; while (it.hasNext()) { key = (String) it.next(); listBox.addItem(listBoxInfo.get(key), key); } } listBox.setName(fieldName); controlGroup.add(controlLabel); controlGroup.add(listBox); filterControlGroups.add(controlGroup); horizontalForm.add(controlGroup); }
public void setShowRequiredIndicator(final boolean required) { formLabel.setShowRequiredIndicator(required); } }
@Override public String getText() { return formLabel.getText(); }
@Override public void setEnabled(boolean enabled) { decorated.setEnabled(enabled); if (enabled) { label.getElement().replaceClassName(style.labelDisabled(), style.labelEnabled()); } else { label.getElement().replaceClassName(style.labelEnabled(), style.labelDisabled()); } }