|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.EventObject
com.timjohnstondev.unitconverter.view.listener.FactorChangeEvent
public class FactorChangeEvent
FactorChangeEvent is used to notify interested parties that factor has changed.
| Field Summary | |
|---|---|
static int |
CLEAR_FACTOR_ACTION
Tells the listeners to clear the factor displays |
| Fields inherited from class java.util.EventObject |
|---|
source |
| Constructor Summary | |
|---|---|
FactorChangeEvent(Object eventSource,
int newAction)
Constructs a FactorChangeEvent object and sets the action. |
|
FactorChangeEvent(Object eventSource,
String value,
BigDecimal mw)
Constructs a FactorChangeEvent object and sets the conversion value. |
|
| Method Summary | |
|---|---|
int |
getAction()
Returns the event's action |
String |
getCoversion()
Returns the conversion factor value |
BigDecimal |
getMolecularWeight()
Returns the molecular weight, default is 1 |
| Methods inherited from class java.util.EventObject |
|---|
getSource, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int CLEAR_FACTOR_ACTION
| Constructor Detail |
|---|
public FactorChangeEvent(Object eventSource,
int newAction)
FactorChangeEvent object and sets the action.
eventSource - the originator of the eventnewAction - the action to be performed by listeners
public FactorChangeEvent(Object eventSource,
String value,
BigDecimal mw)
FactorChangeEvent object and sets the conversion value.
eventSource - the originator of the eventvalue - the conversion factor valuemw - the molecular weight| Method Detail |
|---|
public final String getCoversion()
public final int getAction()
public final BigDecimal getMolecularWeight()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||