|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The command manager API exported by the maingui plugin.
This API is not thread-safe, and should only be called from the AWT/Swing thread.
Nested Class Summary | |
static class |
CommandManager.CommandCategory
A category for commands, specifying where in the menus the command will appear, as well as additional behaviors involving appearance and enabling. |
Field Summary | |
static CommandManager.CommandCategory |
ADD_SONG_COMMANDS
Denotes commands for song adding. |
static CommandManager.CommandCategory |
CREATE_DATABASE_COMMANDS
Denotes commands for database creating. |
static CommandManager.CommandCategory |
MODIFY_SONG_COMMANDS
Denotes commands for song manipulation. |
static CommandManager.CommandCategory |
OPEN_DATABASE_COMMANDS
Denotes commands for database opening. |
static CommandManager.CommandCategory |
SAVE_DATABASE_COMMANDS
Denotes commands for database saving. |
static CommandManager.CommandCategory |
TOOL_COMMANDS
Denotes commands for publishing, report generation, and other features provided by the plugin. |
Method Summary | |
CommandNode |
createCommandGroup(CommandManager.CommandCategory category)
Returns a group-flavored CommandNode that can be filled with commands which a plugin wants to submit to the menu system. |
boolean |
installDefaultSongCommand(CommandNode node,
StringID priority)
Sets the default song command. |
boolean |
removeCommandGroup(CommandNode node)
Removes a command node previously created by createCommandGroup. |
boolean |
removeDefaultSongCommand(CommandNode node)
Removes a default song command. |
Field Detail |
public static final CommandManager.CommandCategory OPEN_DATABASE_COMMANDS
public static final CommandManager.CommandCategory CREATE_DATABASE_COMMANDS
public static final CommandManager.CommandCategory SAVE_DATABASE_COMMANDS
public static final CommandManager.CommandCategory ADD_SONG_COMMANDS
public static final CommandManager.CommandCategory MODIFY_SONG_COMMANDS
public static final CommandManager.CommandCategory TOOL_COMMANDS
Method Detail |
public CommandNode createCommandGroup(CommandManager.CommandCategory category)
category
- a category for the command
public boolean removeCommandGroup(CommandNode node)
node
- the node to remove
public boolean installDefaultSongCommand(CommandNode node, StringID priority)
node
- a CommandNode for the default song commandpriority
- priority of this command
public boolean removeDefaultSongCommand(CommandNode node)
node
- a CommandNode for the default song command
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |