|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.geeboss.controller.EventManager
public class EventManager
The Event Manager is responsible to react on user-action. User action may for example occur when any item from the main menu is selected.
Field Summary | |
---|---|
static int |
EDIT_ACTION_COPY
Edit Menu Action: Copy |
static int |
EDIT_ACTION_CUT
Edit Menu Action: Cut |
static int |
EDIT_ACTION_DELETE
Edit Menu Action: Delete |
static int |
EDIT_ACTION_PASTE
Edit Menu Action: Paste |
static int |
EDIT_ACTION_PROPERTIES
Edit Menu Action: Properties |
static int |
EDIT_ACTION_SELECTALL
Edit Menu Action: Select All |
Constructor Summary | |
---|---|
EventManager(GeebossContainer container)
Instantiate a new EventManager |
Method Summary | |
---|---|
void |
actionCloseAll()
Close all opened tabs |
void |
actionCloseCurrent()
Close displayed tab |
void |
actionExit()
Exit application |
void |
actionHandleTreeItemSelect()
The user has selected to open a TreeItem. |
boolean |
actionImportSettings()
Import settings from local file |
void |
actionMinimizeWindow()
Minimize application window |
void |
actionOpenAbout()
Show the about dialog |
void |
actionOpenPreferences()
Show Geeboss's preferences in a dialog |
void |
actionOpenURL(java.lang.String url)
Open the URL in the browser |
void |
actionOpenURLExternal(java.lang.String url)
Open the URL in the external browser |
void |
actionShowLicense()
Show the CPL license in a new tab |
void |
actionShowQuickview(boolean show)
Show / Hide the quickview control |
void |
handleEditAction(int action)
This method is called when a MenuItem from the Edit Menu is selected. |
void |
initEditorsFromDevice()
Init the editors configuration according to the device |
void |
initialize()
Initialize this component |
void |
openMidiPorts(java.lang.String inputPortName,
java.lang.String outputPortName)
Open input and output port using the MidiPortOpenner thread |
void |
setActiveEditor(Editor editor)
Set the currently active editor |
void |
syncControls()
Get the main controls from the maincontroller |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int EDIT_ACTION_COPY
public static final int EDIT_ACTION_CUT
public static final int EDIT_ACTION_DELETE
public static final int EDIT_ACTION_PASTE
public static final int EDIT_ACTION_PROPERTIES
public static final int EDIT_ACTION_SELECTALL
Constructor Detail |
---|
public EventManager(GeebossContainer container)
container
- the geeboss containerMethod Detail |
---|
public void initialize() throws java.lang.Exception
initialize
in interface org.apache.avalon.framework.activity.Initializable
java.lang.Exception
public void setActiveEditor(Editor editor)
editor
- the active editorpublic void initEditorsFromDevice()
public void openMidiPorts(java.lang.String inputPortName, java.lang.String outputPortName)
inputPortName
- the input port name or nulloutputPortName
- the output port name or nullpublic void actionHandleTreeItemSelect()
public boolean actionImportSettings()
public void syncControls()
public void actionCloseAll()
public void actionCloseCurrent()
public void actionExit()
public void actionMinimizeWindow()
public void actionOpenAbout()
public void actionOpenPreferences()
public void actionOpenURL(java.lang.String url)
url
- The URL to openpublic void actionShowLicense()
public void actionShowQuickview(boolean show)
show
- true if visiblepublic void handleEditAction(int action)
action
- One of the supported actions of the edit menupublic void actionOpenURLExternal(java.lang.String url)
url
- The URL to open
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |