|
trassare.com | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.trassare.calculator.ui.CalculatorGUI
public class CalculatorGUI
CalculatorGUI initializes a data structure for all GUI components then renders the GUI.
| Nested Class Summary | |
|---|---|
class |
CalculatorGUI.SolveListener
This is what happens when '=' is pressed. |
| Field Summary | |
|---|---|
protected static String |
APP_NAME
The title, as it appears in the title bar, of this application. |
| Constructor Summary | |
|---|---|
protected |
CalculatorGUI()
Constructor for objects of class CalculatorGUI. |
| Method Summary | |
|---|---|
void |
evaluate(String inputData)
|
static ActionListener[] |
getActionListeners()
Get the ActionListeners for the buttons. |
static ExpressionScanner |
getScanner()
Get the ExpressionScanner that is currently in use. |
void |
run()
Run the calculator GUI. |
static void |
setLandF(String load)
Setter for the look and feel. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final String APP_NAME
| Constructor Detail |
|---|
protected CalculatorGUI()
| Method Detail |
|---|
public static ActionListener[] getActionListeners()
public static ExpressionScanner getScanner()
public static void setLandF(String load)
load - the look and feel to loadpublic final void evaluate(String inputData)
evaluate in interface UserInterfaceinputData - a String containing the mathematical expression that
should be evaluated by the calculator engine.public final void run()
run in interface UserInterface
|
trassare.com | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||