MakeLogicTM - FileMenu API
v1.1

Package com.makeLogic.utils

Class Summary
ExitMenuItem Exit MenuItem is One of the MenuItems of FileMenu.
It closes all the windows if any
Closes the Application whenever it is clicked
FileMenu A convenience implementation of FileMenu that creates all MenuItems like
New
Open
Save
SaveAs
RecentFiles
Exit
with their functionality which are required for the FileMenu Creation.
FileMenu with all its Functionality can be added easily using the following simple code
InternalFrameClosingHandler This Class contains all the methods which are necessary to execute when the closing event of the JInternalFrame(file) fires.
It takes care of saving the file if it is not saved , etc,,.
MLEditorListener This class will implements the methods of DocumentListener which are used by the MLInternalFrame class of FileMenu
MLInternalFrame This class will create its own InternalFrame which extends
from JInternalFrame.It will act as a container for JEditorPane
and JScrollPane.
NewMenuItem NewMenuItem is one of the MenuItems of FileMenu.
Itis to Open a new JInternalFrame whenever user clicks on it.
OpenMenuItem Open MenuItem is one of the MenuItems of FileMenu.
Open a FileChooser to select the File and Click on OK
to display its contents into a JInternalFrame.
RecentFilesMenuItem RecentFiles Menu is a Menu of FileMenu.
Its Functionality is to display the recent 8 Filepaths into it.
It opens the file if it is selected from the list.
SaveAsMenuItem SaveAs MenuItem is one of the MenuItems of FileMenu.
It opens a FileChooser DialogBox.
User can enter a File Name and click on OK to save it into a New File.
SaveMenuItem Save MenuItem is one of the MenuItems of FileMenu.
It saves the contents of a selected File.
 


MakeLogicTM - FileMenu API
v1.1

Submit a bug or feature

MakeLogic is a trademark or regis.
Copyright 2002 MakeLogic. 19-111/1,Gauthamnagar,Malkajgiri,Hyderabad, AP, India