com.ibm.dse.gui
Class Currency
java.lang.Object
|
+--com.ibm.dse.gui.Currency
- public class Currency
- extends java.lang.Object
The Currency class is used to store the rate and the number of decimals for a currency.
Field Summary |
protected java.beans.PropertyChangeSupport |
propertyChange
|
Constructor Summary |
Currency(java.lang.String r,
int cP)
This constructor creates a Currency object. |
Method Summary |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Generated to support the propertyChange field. |
void |
firePropertyChange(java.lang.String propertyName,
java.lang.Object oldValue,
java.lang.Object newValue)
Generated to support the propertyChange field. |
int |
getCurrPoint()
Gets the currPoint property (int) value, that represents the number of digits after
the decimal point. |
java.lang.String |
getRate()
Gets the rate property (java.lang.String) value. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Generated to support the propertyChange field. |
void |
setCurrPoint(int currPoint)
Sets the currPoint property (int) value. |
void |
setRate(java.lang.String rate)
Sets the rate property (java.lang.String) value. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
propertyChange
protected transient java.beans.PropertyChangeSupport propertyChange
Currency
public Currency(java.lang.String r,
int cP)
- This constructor creates a Currency object.
- Parameters:
r
- java.lang.String, the currency ratecP
- int, the number of digits after decimal point
addPropertyChangeListener
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
- Generated to support the propertyChange field.
- Parameters:
listener
- PropertyChangeListener, the listener
firePropertyChange
public void firePropertyChange(java.lang.String propertyName,
java.lang.Object oldValue,
java.lang.Object newValue)
- Generated to support the propertyChange field.
getCurrPoint
public int getCurrPoint()
- Gets the currPoint property (int) value, that represents the number of digits after
the decimal point.
- Returns:
- int, the currPoint property value
- See Also:
setCurrPoint(int)
getRate
public java.lang.String getRate()
- Gets the rate property (java.lang.String) value.
- Returns:
- String, the rate property value
- See Also:
setRate(java.lang.String)
removePropertyChangeListener
public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
- Generated to support the propertyChange field.
- Parameters:
listener
- PropertyChangeListener, the listener
setCurrPoint
public void setCurrPoint(int currPoint)
- Sets the currPoint property (int) value.
- Parameters:
currPoint
- int, the new value for the property- See Also:
getCurrPoint()
setRate
public void setRate(java.lang.String rate)
- Sets the rate property (java.lang.String) value.
- Parameters:
rate
- String, the new value for the property- See Also:
getRate()