jaxx.demo.fun
Class CalculatorEngine

java.lang.Object
  extended by jaxx.demo.fun.CalculatorEngine

public class CalculatorEngine
extends Object


Field Summary
static int ADD
           
static String DISPLAY_TEXT_PROPERTY
           
static int DIVIDE
           
static int MULTIPLY
           
static int RESULT
           
static int SUBTRACT
           
 
Constructor Summary
CalculatorEngine()
           
 
Method Summary
 void add()
           
 void addPropertyChangeListener(PropertyChangeListener listener)
           
 void addPropertyChangeListener(String property, PropertyChangeListener listener)
           
 void clear()
           
 void clearEntry()
           
 void digit(int digit)
           
 void divide()
           
 void dot()
           
 void equal()
           
protected  void firePropertyChange(String property, Object oldValue, Object newValue)
           
 String getDisplayText()
           
 void multiply()
           
 void operation(int operation)
           
 void removePropertyChangeListener(PropertyChangeListener listener)
           
 void removePropertyChangeListener(String property, PropertyChangeListener listener)
           
 void setDisplayText(String displayText)
           
 void subtract()
           
 void toggleSign()
           
static String toString(BigDecimal decimal)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

CalculatorEngine

public CalculatorEngine()
Method Detail

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-2011 CodeLutin. All Rights Reserved.