org.freehep.application
Class Application.ApplicationCommandProcessor

java.lang.Object
  extended by java.util.Observable
      extended by org.freehep.util.commanddispatcher.CommandProcessor
          extended by org.freehep.application.Application.ApplicationCommandProcessor
All Implemented Interfaces:
org.freehep.util.commanddispatcher.CommandGroup
Direct Known Subclasses:
MDIApplication.MDICommandProcessor
Enclosing class:
Application

public class Application.ApplicationCommandProcessor
extends org.freehep.util.commanddispatcher.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.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.freehep.util.commanddispatcher.CommandProcessor
org.freehep.util.commanddispatcher.CommandProcessor.BooleanTarget, org.freehep.util.commanddispatcher.CommandProcessor.SimpleTarget
 
Constructor Summary
Application.ApplicationCommandProcessor()
           
 
Method Summary
 org.freehep.util.commanddispatcher.CommandTarget acceptCommand(String command)
           
 void enableShowStatusBar(org.freehep.util.commanddispatcher.BooleanCommandState state)
           
 void enableShowToolBar(org.freehep.util.commanddispatcher.BooleanCommandState state)
           
protected  void invoke(Method method, Object[] args)
           
 void onAbout()
           
 void onExit()
           
 void onHelpContents()
           
 void onHelpIndex()
           
 void onHelpSearch()
           
 void onShowStatusBar(boolean show)
           
 void onShowToolBar(boolean show)
           
 
Methods inherited from class org.freehep.util.commanddispatcher.CommandProcessor
acceptCommand, invokeCommand, invokeCommand, invokeCommand, invokeEnable, setChanged, setManager, translate
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.freehep.util.commanddispatcher.CommandGroup
addObserver, deleteObserver
 

Constructor Detail

Application.ApplicationCommandProcessor

public Application.ApplicationCommandProcessor()
Method Detail

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(org.freehep.util.commanddispatcher.BooleanCommandState state)

onShowToolBar

public void onShowToolBar(boolean show)

enableShowToolBar

public void enableShowToolBar(org.freehep.util.commanddispatcher.BooleanCommandState state)

acceptCommand

public org.freehep.util.commanddispatcher.CommandTarget acceptCommand(String command)
Specified by:
acceptCommand in interface org.freehep.util.commanddispatcher.CommandGroup
Overrides:
acceptCommand in class org.freehep.util.commanddispatcher.CommandProcessor

invoke

protected void invoke(Method method,
                      Object[] args)
               throws IllegalAccessException,
                      InvocationTargetException
Overrides:
invoke in class org.freehep.util.commanddispatcher.CommandProcessor
Throws:
IllegalAccessException
InvocationTargetException


Copyright © 2000-2006 FreeHEP. All Rights Reserved.