|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Frame
com.kirkwarez.wdysdv.gui.WVFrame
The main GUI for WDYS'd.
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 | |
protected WVControl |
control
The associated control class. |
protected Checkbox |
decryptbox
The Decrypt checkbox. |
protected Checkbox |
encryptbox
The Encrypt checkbox. |
protected Checkbox |
eoabox
The MYST V checkbox. |
protected FilePanel |
inputpanel
The input panel |
protected CheckboxGroup |
mode
The checkbox group for the mode. |
protected FilePanel |
outputpanel
The output panel |
protected List |
tasklist
The list of tasks. |
protected CheckboxGroup |
type
The checkbox group for the type. |
protected Checkbox |
urubox
The Uru checkbox. |
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 | |
WVFrame()
Creates a new frame and initialises it. |
Method Summary | |
File |
askForFileSelection(String title,
int mode)
Pops up a FileDialog and returns the selected file. |
File |
getInFile()
Retrieves what the user put in the input field, or null if he didn't put in anything. |
int |
getMode()
Retrieves the user selected mode. |
File |
getOutFile()
Retrieves what the user put in the output field, or null if he didn't put in anything. |
int |
getSelectedTask()
Returns the index of the task that is currently selected. |
int |
getType()
Retrieves the user selected type. |
void |
popup(String message)
This must be my favourite method or something, it's in each of my programs with a GUI. |
void |
popup(String title,
String message)
Pops up a message on a dialog with the given title. |
void |
popupError(String message)
This method pops up the given error message. |
void |
setBatchList(String[] list)
Replaces the current batch list with the given batch list. |
void |
setInFile(File file)
Sets the input field to the given file. |
void |
setMode(int mode)
Sets the mode to the given mode. |
void |
setOutFile(File file)
Sets the output field to the given file. |
void |
setType(int type)
Sets the type to the given type. |
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 |
protected List tasklist
protected FilePanel inputpanel
protected FilePanel outputpanel
protected CheckboxGroup type
protected Checkbox urubox
protected Checkbox eoabox
protected CheckboxGroup mode
protected Checkbox encryptbox
protected Checkbox decryptbox
protected WVControl control
Constructor Detail |
public WVFrame()
Method Detail |
public void popup(String title, String message)
title
- The title to use for the dialog.message
- The message to be displayed.public void popup(String message)
message
- The message to be displayed.public void popupError(String message)
message
- The message to be displayed.public File askForFileSelection(String title, int mode)
FileDialog
and returns the selected file.
title
- The title of the selection dialog.mode
- Whether it is about loading or saving.
public void setBatchList(String[] list)
list
- The new list.public int getSelectedTask()
public File getInFile()
public void setInFile(File file)
file
- The input file or null if none (empties the field).public File getOutFile()
public void setOutFile(File file)
file
- The output file or null if none (empties the field).public int getType()
public void setType(int type)
type
- The new type.public int getMode()
public void setMode(int mode)
mode
- The new mode.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |