|
FTP-Server API | ||||||||||
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 | +--javax.swing.JFrame | +--graphic.MemoryFrame
Memoryframe is the service-implementing JFrame that remembers the JFrames positioning, and the size of the JFrame. It saves these data in the 'setup.conf' file. The frame also implements a few common things for all frames. Such as hotkeys and closing for all frames.
Field Summary | |
protected static ResourceBundle |
res
|
Fields inherited from class javax.swing.JFrame |
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled |
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.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface javax.swing.WindowConstants |
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
MemoryFrame(String name)
Set-Construcor. |
|
MemoryFrame(String name,
String tagName)
Set-Construcor. |
Method Summary | |
void |
closeAllWindows()
Closes all JFrames in the system. |
void |
configurationFileReloaded()
|
void |
dispose()
Overriding metod makes shure the positioning and size is saved before close. |
protected void |
initializeData()
|
void |
keyPressed(KeyEvent e)
Finds CTRL+ALT+E, and opens the ErrorConsole! |
void |
keyReleased(KeyEvent e)
I had to implement it! |
void |
keyTyped(KeyEvent e)
I had to implement it! |
void |
restore()
Restores the Window to a certain position and size. |
void |
save()
Saves positioning and size. |
void |
savePosition()
Saves the positioning of the window to 'setup.conf' |
void |
saveSize()
Saves the size of the window to 'setup.cof'. |
void |
setMyLocale(Locale locale)
|
abstract void |
setText()
|
void |
setVisible(boolean b)
Sets the frame's state to Frame.Normal, and calls on to super-class. |
Methods inherited from class java.awt.Frame |
addNotify, finalize, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, 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 static ResourceBundle res
Constructor Detail |
public MemoryFrame(String name, String tagName)
name
- visual name of the frame.tagName
- The tagname, that the frame will have in 'setup.conf'.public MemoryFrame(String name)
name
- the visual name of the frame, and the name of the tag.Method Detail |
public void closeAllWindows()
public void setVisible(boolean b)
setVisible
in class Component
b
- visible?public void dispose()
dispose
in class Window
public void save()
public void savePosition()
public void saveSize()
public void configurationFileReloaded()
configurationFileReloaded
in interface ConfObserver
protected void initializeData()
public void restore()
public void keyPressed(KeyEvent e)
keyPressed
in interface KeyListener
e
- KeyEventpublic void keyReleased(KeyEvent e)
keyReleased
in interface KeyListener
e
- KeyEventpublic void keyTyped(KeyEvent e)
keyTyped
in interface KeyListener
e
- KeyEventpublic void setMyLocale(Locale locale)
public abstract void setText()
|
FTP-Server API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |