
Public Member Functions | |
| Insets | getInsets () |
| void | scrollToBottom () |
| void | traceMessage (String message, boolean error) |
| void | traceProgressMessage (String message, boolean result) |
| String | getScreenName () |
| void | checkScreen (String screenName) |
Static Public Member Functions | |
| static GUI | getInstance () |
Protected Member Functions | |
| GUI () | |
Private Attributes | |
| JPanel | mainPanel = new JPanel(new BorderLayout()) |
| JPanel | topPanel = new JPanel(new BorderLayout()) |
| JPanel | screenPanel = new JPanel(new BorderLayout()) |
| JLabel | title |
| JTextField | screenField = new JTextField(6) |
| JButton | screenButton = new JButton("Start") |
| JTextArea | status = new JTextArea() |
| JScrollPane | statusScroll |
| String | screenName = "" |
| String | encoding = "ISO-8859-1" |
Static Private Attributes | |
| static GUI | instance = null |
GUI class builds a GUI to accept the users choice of screen configuration and output status messages.
Definition at line 16 of file GUI.java.
|
|
Builds the GUI and makes it visible to the user, centered on the screen. Definition at line 69 of file GUI.java. References checkScreen(), screenButton, screenField, screenName, and screenPanel. Referenced by getInstance(). Here is the call graph for this function: ![]() |
|
|
Checks if the specified screen exists. If it does exist then the Bluetooth class is instantiated. Otherwise an error message is outputted to the status text area.
Definition at line 203 of file GUI.java. Referenced by GUI(). |
|
|
Gets the insets on this window for neater appearance.
|
|
|
Enforces the Singleton pattern to ensure only a single instance of this class exists. Returns the instance of this class if it is instantiated, otherwise it returns a new instantiation of this class.
Definition at line 43 of file GUI.java. References GUI(), and instance. Referenced by Bluetooth.Bluetooth(), BluetoothClient.BluetoothClient(), BluetoothConnectionListener.BluetoothConnectionListener(), and Database.Database(). Here is the call graph for this function: ![]() |
|
|
Returns the screen name entered by the user.
Definition at line 188 of file GUI.java. Referenced by Database.getQuestions(). |
|
|
Scrolls to the bottom of the status text area. |
|
||||||||||||
|
Outputs a message (with the current time) to the status text area.
Definition at line 130 of file GUI.java. Referenced by Bluetooth.initialiseStack(), Server.main(), BluetoothConnectionListener.run(), and BluetoothClient.run(). |
|
||||||||||||
|
Outputs a progress message (with the current time) to the status text area.
Definition at line 162 of file GUI.java. Referenced by Database.getQuestions(), and Bluetooth.initialiseStack(). |
|
|
|
|
|
Definition at line 19 of file GUI.java. Referenced by getInstance(). |
|
|
|
|
|
Definition at line 27 of file GUI.java. Referenced by GUI(). |
|
|
Definition at line 26 of file GUI.java. Referenced by GUI(). |
|
|
Definition at line 32 of file GUI.java. Referenced by GUI(). |
|
|
Definition at line 22 of file GUI.java. Referenced by GUI(). |
|
|
|
|
|
Initial value: new JScrollPane(status, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_NEVER) |
|
|
Initial value: new JLabel("<html><font size=5 color=#CC0000>" + "<b>UniVote</b></font><br><font size=3 color=#333333>Server " + "Application</font></html>") |
|
|
|
1.4.6