|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--puzzled.actions.ActionManager
Class responsible for initializing the action required by the application in order to build the menu bar, the toolbar, and the popub menu. It also has a few method for enabling or disabling some widgets depending on the state of the application.
Constructor Summary | |
ActionManager(ProblemSolver parent_arg)
Constructor receiving the application reference as a parameter. |
Method Summary | |
protected void |
createEditMenu()
Method defining the Edit Menu, its keyboard accelerators, and shortcuts. |
protected void |
createFileMenu()
Method defining the File Menu, its keyboard accelerators, and shortcuts. |
protected void |
createHelpMenu()
Method defining the Help Menu, its keyboard accelerators, and shortcuts. |
protected void |
createToolbar()
Creates the toolbar by adding the actions onto the toolbar. |
void |
triggerNew(java.io.File theFile)
|
void |
triggerOpen(java.io.File aFile)
|
void |
triggerSave()
This method creates a new event to simulate a Save action. |
void |
triggerSaveAs()
This method creates a new event to simulate a SaveAs action. |
void |
updatePopupLAF(java.lang.String LAF_arg)
Since the popup is built before the LAF is loaded, an explicit call to update its LAF is necessary |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ActionManager(ProblemSolver parent_arg)
arg_parent
- the application reference used for callbacksMethod Detail |
protected void createToolbar()
protected void createFileMenu()
protected void createEditMenu()
protected void createHelpMenu()
public void updatePopupLAF(java.lang.String LAF_arg)
public void triggerSaveAs()
public void triggerSave()
public void triggerOpen(java.io.File aFile)
public void triggerNew(java.io.File theFile)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |