|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.ntnu.item.jt.GUI.GUI
public class GUI
This class is responsible for creating and managing the GUI.
Field Summary | |
---|---|
(package private) String |
ABOUT_STRING
|
(package private) JButton |
analyze
|
(package private) JPanel |
bottomPanel
|
(package private) int |
carretPosition
|
(package private) JButton |
clear
|
(package private) JButton |
clear1
|
(package private) JButton |
clear2
|
(package private) JButton |
clear3
|
(package private) String |
CLOSE_CONSOLE_WARNING
|
(package private) String |
CLOSE_WARNING
|
(package private) JTextField |
configField
|
(package private) JLabel |
configLabel
|
(package private) JTextArea |
consoleTextArea
|
(package private) String |
EMPTY_SAMPLE_PATH_ERROR
|
(package private) JButton |
execute
|
(package private) String |
EXIT_WARNING_QUESTION
|
(package private) JFileChooser |
fc
|
(package private) int |
FIELD_CONFIG
|
(package private) int |
FIELD_MALWARE
|
(package private) int |
FIELD_PROPS
|
(package private) String |
HELP_STRING
|
(package private) JScrollPane |
jScrollPane1
|
(package private) String |
LOOK_AND_FEEL_PATH
|
(package private) String |
MAIN_WINDOW_TITLE
|
(package private) JPanel |
mainPanel
|
(package private) JFrame |
mainWindow
|
(package private) JMenuBar |
menuBar
|
(package private) JMenu |
menuEdit
|
(package private) JMenu |
menuHelp
|
(package private) JMenuItem |
menuItemAbout
|
(package private) JMenuItem |
menuItemConfEditor
|
(package private) JMenuItem |
menuItemExit
|
(package private) JMenuItem |
menuItemHelp
|
(package private) JMenuItem |
menuItemRestart
|
(package private) JMenuItem |
menuItemSave
|
(package private) JMenuItem |
menuItemStart
|
(package private) JMenu |
menuOutput
|
(package private) JMenu |
menuSystem
|
(package private) JPanel |
middlePanel
|
(package private) JButton |
open1
|
(package private) JButton |
open2
|
(package private) JButton |
open3
|
(package private) int |
operation
|
(package private) int |
OPERATION_ANALYZE
|
(package private) int |
OPERATION_EXECUTE
|
(package private) int |
OPERATION_INITIALIZE
|
(package private) int |
OPERATION_SCAN
|
(package private) int |
OPERATION_UPDATE
|
(package private) Preferences |
prefs
|
(package private) JTextField |
propsField
|
(package private) JLabel |
propsLabel
|
(package private) PowerScan |
ps
|
(package private) String |
REGPATH_CONFIG
|
(package private) String |
REGPATH_OUTPUTSAVE
|
(package private) String |
REGPATH_PROPS
|
(package private) JLabel |
samplePath
|
(package private) JTextField |
samplePathField
|
(package private) JFileChooser |
saveFC
|
(package private) JButton |
scan
|
(package private) JButton |
update
|
(package private) JPanel |
upperCenter
|
(package private) JPanel |
upperLeft
|
(package private) JPanel |
upperPanel
|
(package private) JPanel |
upperRight
|
Constructor Summary | |
---|---|
GUI()
Public constructor. |
Method Summary | |
---|---|
void |
actionPerformed(ActionEvent e)
This method is responsible for determining the calling object when an action event is raised. |
void |
appendError(String text)
Method to append text to the console text area, scroll down and display a error dialog box with the text |
void |
appendInfo(String info)
Method to append text to the console text area |
void |
appendWarning(String text)
Method to append text to the console text area, scroll down and display a warning dialog box with the text. |
void |
diablePropertiesInputField()
|
void |
keyPressed(KeyEvent arg0)
(non-Javadoc) |
void |
keyReleased(KeyEvent arg0)
(non-Javadoc) |
void |
keyTyped(KeyEvent arg0)
Inherited method from the KeyListener, to take action as a key is typed |
static void |
main(String[] args)
|
void |
run()
Method implemented from the Runnable interface The GUI needs to run as its own thread to avoid freezing up when an operation is started. |
void |
windowActivated(WindowEvent arg0)
Method implemented from the WindowListener. |
void |
windowClosed(WindowEvent arg0)
Method implemented from the WindowListener. |
void |
windowClosing(WindowEvent arg0)
Method implemented from the WindowListener. |
void |
windowDeactivated(WindowEvent arg0)
(non-Javadoc) |
void |
windowDeiconified(WindowEvent arg0)
(non-Javadoc) |
void |
windowIconified(WindowEvent arg0)
(non-Javadoc) |
void |
windowOpened(WindowEvent arg0)
(non-Javadoc) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
JFrame mainWindow
JPanel mainPanel
JPanel upperPanel
JPanel middlePanel
JPanel bottomPanel
JPanel upperLeft
JPanel upperCenter
JPanel upperRight
JLabel samplePath
JLabel configLabel
JLabel propsLabel
JTextField samplePathField
JTextField configField
JTextField propsField
JTextArea consoleTextArea
JButton scan
JButton clear
JButton execute
JButton analyze
JButton update
JButton open1
JButton open2
JButton open3
JButton clear1
JButton clear2
JButton clear3
JMenu menuSystem
JMenu menuHelp
JMenu menuOutput
JMenu menuEdit
JMenuBar menuBar
JMenuItem menuItemExit
JMenuItem menuItemStart
JMenuItem menuItemAbout
JMenuItem menuItemHelp
JMenuItem menuItemRestart
JMenuItem menuItemSave
JMenuItem menuItemConfEditor
JScrollPane jScrollPane1
JFileChooser fc
JFileChooser saveFC
PowerScan ps
final int FIELD_MALWARE
final int FIELD_CONFIG
final int FIELD_PROPS
final int OPERATION_SCAN
final int OPERATION_EXECUTE
final int OPERATION_ANALYZE
final int OPERATION_INITIALIZE
final int OPERATION_UPDATE
int operation
int carretPosition
Preferences prefs
final String REGPATH_CONFIG
final String REGPATH_PROPS
final String REGPATH_OUTPUTSAVE
final String CLOSE_WARNING
final String CLOSE_CONSOLE_WARNING
final String EXIT_WARNING_QUESTION
final String EMPTY_SAMPLE_PATH_ERROR
final String HELP_STRING
final String ABOUT_STRING
final String MAIN_WINDOW_TITLE
final String LOOK_AND_FEEL_PATH
Constructor Detail |
---|
public GUI()
Method Detail |
---|
public void diablePropertiesInputField()
public void appendInfo(String info)
info
- The text to be appended to the consolepublic void appendWarning(String text)
text
- The text to be appended to the console and shown in the dialog boxpublic void appendError(String text)
text
- public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
public void keyTyped(KeyEvent arg0)
keyTyped
in interface KeyListener
public void keyPressed(KeyEvent arg0)
keyPressed
in interface KeyListener
KeyListener.keyPressed(java.awt.event.KeyEvent)
public void keyReleased(KeyEvent arg0)
keyReleased
in interface KeyListener
KeyListener.keyReleased(java.awt.event.KeyEvent)
public static void main(String[] args)
public void run()
run
in interface Runnable
public void windowActivated(WindowEvent arg0)
windowActivated
in interface WindowListener
public void windowClosed(WindowEvent arg0)
windowClosed
in interface WindowListener
public void windowClosing(WindowEvent arg0)
windowClosing
in interface WindowListener
public void windowDeactivated(WindowEvent arg0)
windowDeactivated
in interface WindowListener
WindowListener.windowDeactivated(java.awt.event.WindowEvent)
public void windowDeiconified(WindowEvent arg0)
windowDeiconified
in interface WindowListener
WindowListener.windowDeiconified(java.awt.event.WindowEvent)
public void windowIconified(WindowEvent arg0)
windowIconified
in interface WindowListener
WindowListener.windowIconified(java.awt.event.WindowEvent)
public void windowOpened(WindowEvent arg0)
windowOpened
in interface WindowListener
WindowListener.windowOpened(java.awt.event.WindowEvent)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |