|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Frame
javax.swing.JFrame
antsnest.gui.MasterFrame
public class MasterFrame
The main frame that runs the program
| 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 |
|---|
| 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 | |
|---|---|
MasterFrame(AntsNestProperties properties,
AntInfo antInfo,
LevelManager levelManager,
StartupManager startup)
Constructs the new frame |
|
| Method Summary | |
|---|---|
void |
addTaskDefinition()
Adds a task definition to the Task Extension Model |
void |
copy()
Tells the application to perform a copy |
void |
createNewProject()
Creates a new project |
void |
cut()
Tells the application to perform a cut |
void |
displayDoc(String taskName)
Displays Ant documentation in an external window |
void |
displayHTML(URL url)
Displays a web page in an external window |
AntInfo |
getAntInfo()
Gets the Ant information object being used |
Component |
getLastFocused()
Gets the last component to have the focus before the menu bars |
Component |
getMainComponent()
Gets a component reference |
AntProject |
getProject()
Gets the project being currently worked on |
AntsNestProperties |
getProperties()
Gets the user's properties |
String |
getSingleLineString(String title)
Gets a single line string from a specialist input window |
String |
getString(String title,
String text)
Gets a string from a specialist input window |
void |
loadBuildFile()
Loads a build file |
void |
lostOwnership(Clipboard clipboard,
Transferable contents)
Notifies the frame that it's lost ownership of the clipboard contents |
void |
needsToBeSaved()
Notifies the frame that the build file has been edited |
void |
paste()
Tells the application to perform a paste |
void |
projectChanged(AntProject newProject)
Informs the application that the project has changed |
void |
quickSave()
Saves a build file using the current filename |
void |
redo()
Tells the application to perform a redo |
void |
saveBuildFile()
Saves a build file letting the user select a filename |
void |
shutdown()
Responsible for a safe shutdown of the application |
void |
undo()
Tells the application to perform an undo |
void |
useBean()
Uses an Ant Bean |
| 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 |
| Constructor Detail |
|---|
public MasterFrame(AntsNestProperties properties,
AntInfo antInfo,
LevelManager levelManager,
StartupManager startup)
properties - the properties Ant's Nest needs to functionantInfo - the Ant information objectlevelManager - an object that manages the various levelsstartup - the manager to notify when loading is complete| Method Detail |
|---|
public void shutdown()
shutdown in interface ApplicationTaskspublic void createNewProject()
createNewProject in interface ApplicationTaskspublic void needsToBeSaved()
needsToBeSaved in interface ApplicationTaskspublic void displayDoc(String taskName)
displayDoc in interface ApplicationTaskstaskName - the name of the task to documentpublic void displayHTML(URL url)
displayHTML in interface ApplicationTasksurl - the URL of the web pagepublic void loadBuildFile()
loadBuildFile in interface ApplicationTaskspublic void saveBuildFile()
saveBuildFile in interface ApplicationTaskspublic void quickSave()
quickSave in interface ApplicationTaskspublic AntProject getProject()
getProject in interface ApplicationTaskspublic AntInfo getAntInfo()
getAntInfo in interface ApplicationTaskspublic AntsNestProperties getProperties()
getProperties in interface ApplicationTasks
public String getString(String title,
String text)
getString in interface ApplicationTaskstitle - the title of the specialist windowtext - the text to display to start with
public String getSingleLineString(String title)
getSingleLineString in interface ApplicationTaskstitle - the title of the specialist window
public void projectChanged(AntProject newProject)
projectChanged in interface ApplicationTasksnewProject - the changed projectpublic void undo()
undo in interface ApplicationTaskspublic void redo()
redo in interface ApplicationTaskspublic void cut()
cut in interface ApplicationTaskspublic void copy()
copy in interface ApplicationTaskspublic void paste()
paste in interface ApplicationTaskspublic Component getLastFocused()
getLastFocused in interface ApplicationTaskspublic void addTaskDefinition()
addTaskDefinition in interface ApplicationTaskspublic Component getMainComponent()
getMainComponent in interface ApplicationTaskspublic void useBean()
useBean in interface ApplicationTasks
public void lostOwnership(Clipboard clipboard,
Transferable contents)
lostOwnership in interface ClipboardOwnerclipboard - the clipboardcontents - the contents of the clipboard
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||