Пример #1
0
 // Utility function for toggling the textboxes (gray out)
 public void setTextEnabled(boolean enabled) {
   sequenceFile.setEnabled(enabled);
   organismName.setEnabled(enabled);
   genus.setEnabled(enabled);
   species.setEnabled(enabled);
   blatdb.setEnabled(enabled);
 }
Пример #2
0
  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);
  }
Пример #3
0
 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);
 }
Пример #4
0
 @Override
 public void setEnabled(Boolean enabled) {
   textBox.setEnabled(enabled);
 }