Documentation of 'jas2.util.CommandProcessor' Java class
CommandProcessor
jas2.util

Class CommandProcessor

  • Direct Known Subclasses:
    JASCommandProcessor, NestedCommandProcessor


    public class CommandProcessor
    extends java.util.Observable
    A CommandProcessor represents a collection of CommandTargets. The CommandProcessor is Observable, and is normally Observed by the CommandTargetManager. When the CommandProcessor calls its notifyObservers method, the CommandTargetManager prompts each CommandSource currently attached to CommandTargets within the CommandProcessor to update their enabled/disabled status. Typically applications provide their own CommandProcessor(s) which extend this base class and which can handle a set of commands. By default CommandProcessor's acceptCommand method uses reflection to search for methods in the subClass which correspond to specific commands, although subclasses could also override the acceptCommand method to implement a different scheme. The default scheme looks for methods of type:
                public void onXXX()
     
    to handle the command XXX. Also
                public void enableXXX(JASState state)
     
    to determine if the command is active or not.
    • Constructor Summary

      Constructors 
      Constructor and Description
      CommandProcessor() 
    • Method Summary

      • Methods inherited from class java.util.Observable

        addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CommandProcessor

        public CommandProcessor()

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.