private void fillFields(ValueObject valueObject) {
   setTitle(valueObject);
   if (!valueObject.getClientValueObjectProxy().isNew()) {
     idTextField.setText(((BargeTariffValue) valueObject).getId().toString());
     durationFromTextField.setDate(
         new java.sql.Date(((BargeTariffValue) valueObject).getDurationFrom().getTime()));
     durationToTextField.setDate(
         new java.sql.Date(((BargeTariffValue) valueObject).getDurationTo().getTime()));
     importCheckBox.setSelected(((BargeTariffValue) valueObject).getIsImport());
     vendor.setText(((BargeTariffValue) valueObject).getVendorName());
     facility.setText(((BargeTariffValue) valueObject).getFacilityName());
     currency.setSelectedCurrencyId(model.getCurrencyId());
     currency.setEnabled(false);
   }
   copyButton.setEnabled(!model.getClientValueObjectProxy().isNew());
   valueObject.getClientValueObjectProxy().setChanged(false);
 }
 /*
  * (non-Javadoc)
  *
  * @see net.metaship.swing.generic.widgets.WidgetChangeListener#widgetChanged(javax.swing.JComponent)
  */
 public void widgetChanged(JComponent component) {
   log.debug("changed");
   model.getClientValueObjectProxy().setChanged();
 }
 public void notifyModel() {
   model.getClientValueObjectProxy().setChanged();
 }
 public void comboBoxChanged(ContextJComboBox c) {
   if (c.equals(currency)) {
     model.setCurrencyId(((CurrencyValue) currency.getSelectedItem()).getId().longValue());
     notifyModel();
   }
 }