|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectturingmachine.CTMApplication
The root application class for the turing machine simulator.
Field Summary | |
---|---|
static java.awt.Cursor |
cursor_grab
Instance of cursor for use by application components. |
static java.awt.Cursor |
cursor_move
Instance of cursor for use by application components. |
static CTMFileFilter |
defaultFileFilter
This applications default file filter. |
static java.lang.String[] |
defaultFileTypes
This applications default file types. |
private java.util.ArrayList<CTMDocument> |
mDocuments
List of documents open in this application. |
private CTMFrame |
mFrame
The application main frame. |
static int |
mInstanceCount
Count of application instances created. |
Constructor Summary | |
---|---|
CTMApplication()
Constructor. |
Method Summary | |
---|---|
void |
addDocument(CTMDocument aDocument)
Add a document to applications open document list. |
boolean |
closeAllDocuments()
Close all documents belonging to this application. |
boolean |
fileIsAlreadyOpen(java.lang.String filename)
Checks whether a file is already open by the application. |
CTMFrame |
getApplicationFrame()
Get the application main frame. |
int |
getInstanceCount()
Get number of instances of application. |
CTMInternalFrameView |
getSelectedFrame()
|
static void |
main(java.lang.String[] args)
Main method. |
boolean |
quitApplication()
Quit an application instance. |
void |
removeDocument(CTMDocument aDocument)
Remove a document from applications open document list. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private CTMFrame mFrame
public static int mInstanceCount
private java.util.ArrayList<CTMDocument> mDocuments
public static java.lang.String[] defaultFileTypes
public static CTMFileFilter defaultFileFilter
public static java.awt.Cursor cursor_grab
public static java.awt.Cursor cursor_move
Constructor Detail |
---|
public CTMApplication()
Method Detail |
---|
public boolean quitApplication()
public boolean closeAllDocuments()
public int getInstanceCount()
public CTMFrame getApplicationFrame()
public void addDocument(CTMDocument aDocument)
aDocument
- The document to add.public void removeDocument(CTMDocument aDocument)
aDocument
- The document to remove.public boolean fileIsAlreadyOpen(java.lang.String filename)
filename
- String Filename of file.
public CTMInternalFrameView getSelectedFrame()
public static void main(java.lang.String[] args)
args
- Command line arguments for application(There are none).
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |