|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container java.awt.Window java.awt.Frame com.fasteasytrade.JRandTest.GUI.Gui
Main Java application to run randomness tests on files and algorithms.
Nested Class Summary |
Nested classes inherited from class java.awt.Frame |
Frame.AccessibleAWTFrame |
Nested classes inherited from class java.awt.Window |
Window.AccessibleAWTWindow |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
(package private) AboutDialog |
ad
|
(package private) String |
algoclassname
|
(package private) String[] |
algoClassNames
|
(package private) Choice |
algolist
|
(package private) String |
algoname
|
(package private) String[] |
algoNames
|
(package private) String[] |
cardNames
|
private Panel |
cards
|
(package private) String[] |
classNames
|
(package private) int |
currentCard
|
(package private) Cursor |
defaultCursor
|
(package private) FileDialog |
fd
|
(package private) String |
filename
|
(package private) TextField |
filenameLabel
|
(package private) int |
fontSize
|
(package private) int |
fontSizeMax
|
(package private) int |
fontSizeMin
|
private CardLayout |
layout
|
(package private) MsgBox |
msgbox
|
(package private) int |
numCards
|
(package private) String |
privateKeyFilename
|
(package private) TextField |
privateKeyFilenameLabel
|
(package private) String |
publicKeyFilename
|
(package private) TextField |
publicKeyFilenameLabel
|
private Panel |
tabs
|
(package private) Choice |
testslist
|
(package private) Label |
tLabel
|
(package private) Vector |
vecSP
|
(package private) Cursor |
waitCursor
|
Fields inherited from class java.awt.Frame |
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR |
Fields inherited from class java.awt.Window |
|
Fields inherited from class java.awt.Container |
|
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
Gui()
constructor to gui application. |
Method Summary | |
void |
actionPerformed(ActionEvent evt)
main method logic to process click/typed information. |
void |
addButton(String name)
make new button in defualt panel, tabs panel |
void |
addButton(String name,
Panel p)
make new button and insert it into a panel |
void |
addButton(String name,
Panel p,
int width)
make new button, with specified size, and insert it into a panel |
void |
addRadioButton(String name,
CheckboxGroup cg)
|
void |
addRadioButton(String name,
Panel p,
CheckboxGroup cg)
|
void |
itemStateChanged(ItemEvent e)
|
private Vector |
loadPropFile(String fn)
read list of tests from property file named alltests.txt. |
static void |
main(String[] args)
|
Methods inherited from class java.awt.Frame |
addNotify, finalize, getAccessibleContext, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, paramString, remove, removeNotify, setCursor, setExtendedState, setIconImage, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.awt.MenuContainer |
getFont, postEvent |
Field Detail |
private Panel cards
private Panel tabs
private CardLayout layout
FileDialog fd
AboutDialog ad
MsgBox msgbox
String filename
String publicKeyFilename
String privateKeyFilename
Label tLabel
TextField filenameLabel
TextField publicKeyFilenameLabel
TextField privateKeyFilenameLabel
String[] cardNames
String[] classNames
String[] algoNames
String[] algoClassNames
Vector vecSP
int currentCard
int numCards
String algoname
String algoclassname
Choice algolist
Choice testslist
int fontSize
int fontSizeMin
int fontSizeMax
Cursor waitCursor
Cursor defaultCursor
Constructor Detail |
public Gui()
Method Detail |
private Vector loadPropFile(String fn)
Property file contains:
shortname=classname
where shortname will be displayed toend user in GUI window.
classname is the real class name of the test to be laoded dynamically and run (as Base interface).
public void addButton(String name, Panel p)
name
- label of buttonp
- panel contains new buttonpublic void addButton(String name, Panel p, int width)
name
- label of buttonp
- panel contains new buttonwidth
- of buttonpublic void addButton(String name)
name
- label of buttonpublic void addRadioButton(String name, Panel p, CheckboxGroup cg)
public void addRadioButton(String name, CheckboxGroup cg)
public void itemStateChanged(ItemEvent e)
itemStateChanged
in interface ItemListener
public void actionPerformed(ActionEvent evt)
buttons specify test/file/algorithm.
"run" buttons will load test class dynamically and invoked with setting TextArea as OutputDestination, and filename/algrorithm as input random stream.
actionPerformed
in interface ActionListener
public static void main(String[] args)
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |