jaxx.demo.fun
Class CalculatorEngine
java.lang.Object
jaxx.demo.fun.CalculatorEngine
public class CalculatorEngine
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DISPLAY_TEXT_PROPERTY
public static final String DISPLAY_TEXT_PROPERTY
- See Also:
- Constant Field Values
ADD
public static final int ADD
- See Also:
- Constant Field Values
SUBTRACT
public static final int SUBTRACT
- See Also:
- Constant Field Values
MULTIPLY
public static final int MULTIPLY
- See Also:
- Constant Field Values
DIVIDE
public static final int DIVIDE
- See Also:
- Constant Field Values
RESULT
public static final int RESULT
- See Also:
- Constant Field Values
CalculatorEngine
public CalculatorEngine()
getDisplayText
public String getDisplayText()
setDisplayText
public void setDisplayText(String displayText)
clear
public void clear()
clearEntry
public void clearEntry()
digit
public void digit(int digit)
dot
public void dot()
toggleSign
public void toggleSign()
equal
public void equal()
toString
public static String toString(BigDecimal decimal)
operation
public void operation(int operation)
add
public void add()
subtract
public void subtract()
multiply
public void multiply()
divide
public void divide()
addPropertyChangeListener
public void addPropertyChangeListener(PropertyChangeListener listener)
addPropertyChangeListener
public void addPropertyChangeListener(String property,
PropertyChangeListener listener)
removePropertyChangeListener
public void removePropertyChangeListener(PropertyChangeListener listener)
removePropertyChangeListener
public void removePropertyChangeListener(String property,
PropertyChangeListener listener)
firePropertyChange
protected void firePropertyChange(String property,
Object oldValue,
Object newValue)
Copyright © 2008-2012 CodeLutin. All Rights Reserved.