/**
   * Set Value
   *
   * @param value value
   * @param fire data binding
   */
  private void setValue(Object value, boolean fire) {
    if (value != null) {
      m_mLocator.setOnly_Warehouse_ID(getOnly_Warehouse_ID());
      m_mLocator.setOnly_Product_ID(getOnly_Product_ID());

      if (!m_mLocator.isValid(value)) value = null;
    }

    m_value = value;
    getComponent().setText(m_mLocator.getDisplay(value)); // 	loads value

    //	Data Binding
    if (fire) {
      ValueChangeEvent val = new ValueChangeEvent(this, getColumnName(), null, value);
      fireValueChange(val);
    }
  }
Beispiel #2
0
  /**
   * Set Value
   *
   * @param value value
   * @param fire data binding
   */
  private void setValue(Object value, boolean fire) {
    if (m_mLocator == null) {
      return;
    }

    if (value != null) {
      m_mLocator.setOnly_Warehouse_ID(getOnly_Warehouse_ID());
      m_mLocator.setOnly_Product_ID(getOnly_Product_ID());
      if (!m_mLocator.isValid(value)) value = null;
    }
    //
    m_value = value;
    m_text.setText(m_mLocator.getDisplay(value)); // 	loads value

    //	Data Binding
    try {
      fireVetoableChange(m_columnName, null, value);
    } catch (PropertyVetoException pve) {
    }
  } //	setValue