|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--Observable | +--visualmodeler.FileModel
FileModel deals with the back-end operation of the VisualModeler system. The operations handle by this class are:
Constructor Summary | |
FileModel(javax.swing.JFrame frame,
UserModel user,
ResourceModel res)
Allocates a new FileModel object |
Method Summary | |
void |
closeFile()
A method that shows a close file dialog |
void |
generateCode()
Generates a Java source code |
void |
newFile()
A method that asks the user to save the changes before exiting the program |
void |
openFile()
A method that handles the dialog to open a new file |
boolean |
quitProgram()
A method that asks the user whether to quit the program or not |
void |
saveAsFile()
A method that shows a Save As dialog |
void |
saveFile()
Saves the Visual Modeler project file |
Methods inherited from class Observable |
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FileModel(javax.swing.JFrame frame, UserModel user, ResourceModel res)
frame
- a JFrame objectuser
- a UserModel objectres
- a ResourceModel objectMethod Detail |
public void saveFile()
public void newFile()
public void openFile()
public void closeFile()
public void saveAsFile()
public boolean quitProgram()
public void generateCode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |