Methods Summary |
---|
public void | addPropertyChangeListener(java.beans.PropertyChangeListener listener)
propChanges.addPropertyChangeListener(listener);
|
public double | getValue()
return value;
|
public void | processActionEvent(java.awt.event.ActionEvent e)
try {
setValue( new Double( getText() ).doubleValue() );
} catch ( NumberFormatException ex ) {
select(0, getText().length());
}
super.processActionEvent(e);
|
public void | removePropertyChangeListener(java.beans.PropertyChangeListener listener)
propChanges.removePropertyChangeListener(listener);
|
public void | setColumns(int cols)
super.setColumns( cols );
Container parent = getParent();
if ( parent != null ) {
invalidate();
parent.validate();
}
|
public void | setValue(double newValue)
double oldValue = value;
setText( "" + newValue );
propChanges.firePropertyChange("value",
new Double(oldValue), new Double(newValue));
|