|
|||||||||||
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
gui.WDYSFrame
This class is the main window of WhatDoYouSee'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 WDYSControl |
control
The control class. |
protected TextField |
decryptedfield
The input field. |
protected TextField |
encryptedfield
The output field. |
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 | |
WDYSFrame()
Constructs a new WDSYFrame and initialises it. |
Method Summary | |
String |
askForFileSelection(String title,
int mode)
Pops up a FileDialog and returns the selected file. |
String |
getDecryptedFilename()
Returns the name of the decrypted file the user selected/typed in. |
String |
getEncryptedFilename()
Returns the name of the encrypted file the user selected/typed in. |
void |
popup(String message)
Pops up a window with an error message in it. |
void |
selectDecryptedFilenameFieldText()
Selects all the text in the decrypted file field. |
void |
selectEncryptedFilenameFieldText()
Selects all the text in the encrypted filename field. |
void |
setDecryptedFilename(String filename)
Sets the name of the decrypted file. |
void |
setDecryptedFilenameFieldFocus()
Sets the focus on the decrypted file field. |
void |
setEncryptedFilename(String filename)
Sets the name of the encrypted file. |
void |
setEncryptedFilenameFieldFocus()
Sets the focus on the encrypted filename field. |
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 TextField decryptedfield
protected TextField encryptedfield
protected WDYSControl control
Constructor Detail |
public WDYSFrame()
WDSYFrame
and initialises it.
Method Detail |
public void popup(String message)
message
- The message to be displayed.public String 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 String getDecryptedFilename()
public void setDecryptedFilename(String filename)
filename
- The name of the decrypted file to be set.public void selectDecryptedFilenameFieldText()
public void setDecryptedFilenameFieldFocus()
public String getEncryptedFilename()
public void setEncryptedFilename(String filename)
filename
- The name of the encrypted file to be set.public void selectEncryptedFilenameFieldText()
public void setEncryptedFilenameFieldFocus()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |