EDU.ksu.cis.calculator
Interface CalculatorUI

All Known Implementing Classes:
DefaultUI, JNLPCompatibleUI

public interface CalculatorUI

An interface abstracting user interface for a calculator.

Author:
Rod Howell (howell@cis.ksu.edu)

Method Summary
 String getInput()
          Returns the current contents of the input buffer.
 void insert(String s)
          Inserts the given String into the input buffer at a location determined by the implementation.
 void setBusy(boolean b)
          Notifies the user interface whether work is being done.
 void setOutput(String s, int b)
          Displays the given String and radix.
 void showError(Throwable e)
          Displays an error message describing the given Throwable.
 

Method Detail

getInput

public String getInput()
Returns the current contents of the input buffer.


insert

public void insert(String s)
Inserts the given String into the input buffer at a location determined by the implementation.


setOutput

public void setOutput(String s,
                      int b)
Displays the given String and radix.


setBusy

public void setBusy(boolean b)
Notifies the user interface whether work is being done.


showError

public void showError(Throwable e)
Displays an error message describing the given Throwable.