org.freehep.application
Class Application.ApplicationCommandProcessor
java.lang.Object
java.util.Observable
org.freehep.util.commanddispatcher.CommandProcessor
org.freehep.application.Application.ApplicationCommandProcessor
- All Implemented Interfaces:
- CommandGroup
- Direct Known Subclasses:
- MDIApplication.MDICommandProcessor
- Enclosing class:
- Application
- public class Application.ApplicationCommandProcessor
- extends CommandProcessor
Extends CommandProcessor to handle some standard Application commands.
Also allows the onXXX() enableXXX() methods to be declared on the application
itself, as well as the command processor, as a convenience for simple applications.
- Source Code:
- Application.ApplicationCommandProcessor.java
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Application.ApplicationCommandProcessor
public Application.ApplicationCommandProcessor()
onExit
public void onExit()
onAbout
public void onAbout()
onHelpContents
public void onHelpContents()
onHelpSearch
public void onHelpSearch()
onHelpIndex
public void onHelpIndex()
onShowStatusBar
public void onShowStatusBar(boolean show)
enableShowStatusBar
public void enableShowStatusBar(BooleanCommandState state)
onShowToolBar
public void onShowToolBar(boolean show)
enableShowToolBar
public void enableShowToolBar(BooleanCommandState state)
acceptCommand
public CommandTarget acceptCommand(String command)
- Description copied from class:
CommandProcessor
- The CommandTargetManager calls acceptCommand to find out if this CommandProcessor
can respond to the specified command. If it can it returns a CommandTarget for the command,
otherwise it returns null.
- Specified by:
acceptCommand
in interface CommandGroup
- Overrides:
acceptCommand
in class CommandProcessor
- Parameters:
command
- The command to test for
invoke
protected void invoke(Method method,
Object[] args)
throws IllegalAccessException,
InvocationTargetException
- Overrides:
invoke
in class CommandProcessor
- Throws:
IllegalAccessException
InvocationTargetException
Copyright © 2000-2004 FreeHEP, All Rights Reserved.