public void onEvent(Event event) {
   if (Events.ON_CHANGE.equals(event.getName()) || Events.ON_OK.equals(event.getName())) {
     String newText = getComponent().getText();
     String oldText = null;
     if (m_value != null) {
       oldText = m_mPAttribute.getDisplay(m_value);
     }
     if (oldText != null && newText != null && oldText.equals(newText)) {
       return;
     }
     if (oldText == null && newText == null) {
       return;
     }
     ValueChangeEvent changeEvent =
         new ValueChangeEvent(this, this.getColumnName(), oldText, newText);
     fireValueChange(changeEvent);
   } else if (Events.ON_CLICK.equals(event.getName())) {
     cmd_dialog();
   }
 }
  public void onEvent(Event event) {
    if (Events.ON_CHANGE.equalsIgnoreCase(event.getName())
        || Events.ON_OK.equalsIgnoreCase(event.getName())) {
      Date date = getComponent().getValue();
      Timestamp newValue = null;

      if (date != null) {
        newValue = new Timestamp(date.getTime());
      }
      if (oldValue != null && newValue != null && oldValue.equals(newValue)) {
        return;
      }
      if (oldValue == null && newValue == null) {
        return;
      }
      ValueChangeEvent changeEvent =
          new ValueChangeEvent(this, this.getColumnName(), oldValue, newValue);
      super.fireValueChange(changeEvent);
      oldValue = newValue;
    }
  }