|
|||||||||
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 net.sourceforge.bee.Bee
public class Bee
Main class for BEE Editor for Pavlov.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JFrame |
---|
JFrame.AccessibleJFrame |
Nested classes/interfaces inherited from class java.awt.Frame |
---|
Frame.AccessibleAWTFrame |
Nested classes/interfaces inherited from class java.awt.Window |
---|
Window.AccessibleAWTWindow |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
---|---|
protected JDesktopPane |
desktop
Bee Editor's JDesktopPane. |
protected Hashtable<String,BookEditor> |
editors
Keeps track of book editors that are active. |
protected JMenuItem |
iExit
Describe variable iOpenBook here. |
protected JMenuItem |
iNewBook
Describe variable iOpenBook here. |
protected JMenuItem |
iOpenBook
Describe variable iOpenBook here. |
protected JMenuItem |
iUnicode
Describe variable iOpenBook here. |
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 | |
---|---|
Bee()
Creates a new Bee instance. |
Method Summary | |
---|---|
void |
actionPerformed(ActionEvent e)
Handles menu events. |
void |
addBookEditor(Book bk,
File bf)
Adds a BookEditor instance to this editing session. |
void |
addInternalFrame(JInternalFrame jif)
Convenience method for adding a JInternalFrame to the editor nicely. |
void |
changeEditorKey(File oldFile,
File newFile)
User tries to rename book from oldFile to newFile. |
boolean |
confirmQuit()
Asks user if he really wants to exit the application. |
boolean |
hasEditorKey(File f)
Returns true if an editor for the given book file is open. |
static void |
main(String[] args)
Runs the BEE Editor for Pavlov. |
void |
newBook()
Creates a new book, saves it to user selected file, opens it for editing. |
void |
newBook(File bookFile,
Book book)
User wants to create a new book. |
void |
niceQuit(boolean confirm)
If confirm is true, asks user if he wants to quit. |
void |
openBook()
User wants to open a book, but hasn't provided the filename. |
void |
openBook(File bookFile)
Opens the given file for editing. |
void |
removeEditorKey(File f)
Removes the reference for an open editor for the given book file. |
void |
showError(String text,
Exception e)
Nice error/exception reporting to user. |
Methods inherited from class java.awt.Frame |
---|
addNotify, finalize, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, 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 JDesktopPane desktop
protected JMenuItem iOpenBook
iOpenBook
here.
protected JMenuItem iNewBook
iOpenBook
here.
protected JMenuItem iExit
iOpenBook
here.
protected JMenuItem iUnicode
iOpenBook
here.
protected Hashtable<String,BookEditor> editors
Constructor Detail |
---|
public Bee()
Bee
instance.
Method Detail |
---|
public void openBook()
public void openBook(File bookFile)
bookFile
- a File
valuepublic void newBook()
public void newBook(File bookFile, Book book)
bookFile
- a File
valuebook
- a Book
valuepublic void addBookEditor(Book bk, File bf)
bk
- a Book
valuebf
- a File
valuepublic void showError(String text, Exception e)
text
- a String
valuee
- an Exception
valuepublic boolean hasEditorKey(File f)
f
- a File
value
boolean
valuepublic void removeEditorKey(File f)
f
- a File
valuepublic void changeEditorKey(File oldFile, File newFile)
oldFile
- a File
valuenewFile
- a File
valuepublic void addInternalFrame(JInternalFrame jif)
jif
- a JInternalFrame
valuepublic void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
e
- an ActionEvent
valuepublic static void main(String[] args)
args[]
- a String
valuepublic void niceQuit(boolean confirm)
confirm
- a boolean
valuepublic boolean confirmQuit()
boolean
value
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |