// Utility function for clearing the textboxes ("") public void clearTextBoxes() { organismName.setText(""); sequenceFile.setText(""); genus.setText(""); species.setText(""); blatdb.setText(""); }
public void setInputMap(@Observes SetFormParamsEvent event) { Map<String, String> params = event.getParams(); requestorTextBox.setText((String) params.get("in_requestor")); operationTextBox.setText((String) params.get("in_operation")); repositoryTextBox.setText((String) params.get("in_repository")); projectTextBox.setText((String) params.get("in_project")); setReadOnly(event.isReadOnly()); }
public void triggerUpdate(int fivePrimeValue, int threePrimeValue) { final AnnotationInfo originalInfo = this.internalAnnotationInfo; fivePrimeField.setText(Integer.toString(fivePrimeValue)); this.internalAnnotationInfo.setMin(this.inputFmin); threePrimeField.setText(Integer.toString(threePrimeValue)); this.internalAnnotationInfo.setMax(this.inputFmax); updateFeatureLocation(originalInfo); }
@Override public void setText(final String text) { if (!isValidValue(text, false)) { final String validValue = makeValidValue(text); super.setText(validValue); ValueChangeEvent.fire(AbstractRestrictedEntryTextBox.this, validValue); } else { super.setText(text); } }
@Override public NameEditBoxWidget.View show(final String name) { nameBox.setValue(name); nameBox.setText(name); mainPanel.setVisible(true); return this; }
private Widget createValuePairItem( final Annotation annotation, final AnnotationValuePairDefinition valuePairDefinition, final AnnotationSource annotationSource) { final Row valuePairRow = new Row(); final FormGroup formGroup = new FormGroup(); valuePairRow.add(formGroup); final FormLabel formLabel = new FormLabel(); formLabel.addStyleName(ColumnSize.MD_3.getCssName()); formLabel.setText(valuePairDefinition.getName()); formGroup.add(formLabel); final Column column = new Column(ColumnSize.MD_9); formGroup.add(column); final TextBox content = new TextBox(); column.add(content); final String valuePairString = getValuePairStringValue(annotation, valuePairDefinition, annotationSource); content.setText(valuePairString); content.setReadOnly(true); content.setTitle(valuePairString); final Button editButton = new Button( Constants.INSTANCE.advanced_domain_annotation_list_editor_action_edit(), new ClickHandler() { @Override public void onClick(ClickEvent event) { presenter.onEditValuePair(annotation, valuePairDefinition.getName()); } }); editButton.setEnabled(!readonly); editButton.setIcon(IconType.EDIT); final Button clearButton = new Button( Constants.INSTANCE.advanced_domain_annotation_list_editor_action_clear(), new ClickHandler() { @Override public void onClick(ClickEvent event) { presenter.onClearValuePair(annotation, valuePairDefinition.getName()); } }); clearButton.setEnabled(!readonly); clearButton.setIcon(IconType.ERASER); final FormGroup formGroupButton = new FormGroup(); formGroupButton.add(editButton); formGroupButton.add(clearButton); final Column columnButton = new Column(ColumnSize.MD_9); columnButton.setOffset(ColumnOffset.MD_3); columnButton.add(formGroupButton); valuePairRow.add(columnButton); return valuePairRow; }
public void loadOrganismInfo(OrganismInfo organismInfo) { if (organismInfo == null) { setNoSelection(); return; } organismName.setEnabled(true); blatdb.setEnabled(true); genus.setEnabled(true); species.setEnabled(true); organismName.setText(organismInfo.getName()); blatdb.setText(organismInfo.getBlatDb()); genus.setText(organismInfo.getGenus()); species.setText(organismInfo.getSpecies()); sequenceFile.setText(organismInfo.getDirectory()); deleteButton.setVisible(true); sequenceFile.setEnabled(true); deleteButton.setEnabled(true); }
private void init(String value, int maxLength) { if (maxLength > 0) { addErrorValidator(new StringMaxLengthValidator(maxLength)); } inititalValue = value; textBox.setText(value); textBox.setEnabled(enabled); textBox.addChangeHandler(this); textBox.addKeyUpHandler(this); panel.add(textBox); }
@Override public void setNewPropertyValue(String value) { newPropertyValueTextBox.setText(value); }
@Override public void setNewPropertyName(String name) { newPropertyNameTextBox.setText(name); }
@Override public void setPattern(String pattern) { form.setValidationState(ValidationState.NONE); searchPatternTextBox.setText(pattern); }
@Override public void setMaxIntervalsValue(String max) { maxIntervalsTextBox.setText(max); }
@Override public void setValue(String value) { textBox.setText(value); inititalValue = value; validate(this.getValue()); }
@Override public void setJTADataSource(String jtaDataSource) { datasourceTextBox.setText(jtaDataSource); }
@Override public void setPersistenceProvider(String persistenceProvider) { persistenceProviderTextBox.setText(persistenceProvider); }
@Override public void setPersistenceUnitName(String persistenceUnitName) { persistenceUnitTextBox.setText(persistenceUnitName); }