| java.lang.Object calculator.business.CalculatorManagerImpl
Method Summary | |
public void | addDigit(SessionData sd, String button) Add a digit to the current display. | public void | addPoint(SessionData sd) Add a decimal point to the current display. | public void | clear(SessionData sd) | public void | doEquals(SessionData sd) If there is a "pending number" (not in the current display),
and there is a "pending operation" (add, subtract etc...),
then use them and the current contents of the display and do some
math. | public void | doFunction(SessionData sd, String op) Remember that a math function was pushed. | public void | negate(SessionData sd) Flip the sign of the number currently in the display. |
addDigit | public void addDigit(SessionData sd, String button) throws KeywordValueException(Code) | | Add a digit to the current display. We might be looking at a
"stale" number (if overwrite is set). If so, then clear the
display and save the current number for later use.
|
addPoint | public void addPoint(SessionData sd) throws KeywordValueException(Code) | | Add a decimal point to the current display. If it already has a
decimal point, then do nothing.
|
doEquals | public void doEquals(SessionData sd) throws KeywordValueException(Code) | | If there is a "pending number" (not in the current display),
and there is a "pending operation" (add, subtract etc...),
then use them and the current contents of the display and do some
math. Leave the result in the current display.
|
|
|