getNewValue() публичный Метод

public getNewValue ( ) : global::java.lang.Object
Результат global::java.lang.Object
Пример #1
0
 public void propertyChange(PropertyChangeEvent pcEvent)
 {
     String name = pcEvent.getPropertyName();
     if (name.Equals("mol"))
     {
         currentMol = (Molecule) pcEvent.getNewValue();
         textBoxFormula.Text = currentMol.getFormula();
         textBoxSmiles.Text = currentMol.toFormat("smiles");
         textBoxWeight.Text = Convert.ToString(currentMol.getMass());
     }
 }
Пример #2
0
 public void propertyChange(PropertyChangeEvent pcEvent)
 {
     String name = pcEvent.getPropertyName();
     if (name.Equals("mol"))
     {
         currentMol = (Molecule) pcEvent.getNewValue();
         updateMolProperties();
     }
 }