| Viewing file:  presentation_manager.py (3.02 KB)      -rw-r--r-- Select action/file-type:
 
  (+) |  (+) |  (+) | Code (+) | Session (+) |  (+) | SDB (+) |  (+) |  (+) |  (+) |  (+) |  (+) | 
 
# Orca#
 # Copyright 2005 Sun Microsystems Inc.
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Library General Public
 # License as published by the Free Software Foundation; either
 # version 2 of the License, or (at your option) any later version.
 #
 # This library is distributed in the hope that it will be useful,
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 # Library General Public License for more details.
 #
 # You should have received a copy of the GNU Library General Public
 # License along with this library; if not, write to the
 # Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 # Boston, MA 02111-1307, USA.
 
 """Provides the PresentationManager class for Orca."""
 
 __id__        = "$Id: presentation_manager.py,v 1.3 2006/06/10 00:54:47 wwalker Exp $"
 __version__   = "$Revision: 1.3 $"
 __date__      = "$Date: 2006/06/10 00:54:47 $"
 __copyright__ = "Copyright (c) 2005-2006 Sun Microsystems Inc."
 __license__   = "LGPL"
 
 class PresentationManager:
 """High level manager for reacting to user input events and
 presenting information to the user."""
 
 def processKeyboardEvent(self, keyboardEvent):
 """Called when a key is pressed on the keyboard.
 
 Arguments:
 - keyboardEvent: an instance of input_event.KeyboardEvent
 
 Returns True if the event should be consumed.
 """
 return False
 
 def processBrailleEvent(self, brailleEvent):
 """Called when keys or buttons are pressed on the Braille display.
 
 Arguments:
 - brailleEvent: an instance of input_event.BrailleEvent
 
 Returns True if the command was consumed; otherwise False
 """
 return False
 
 def locusOfFocusChanged(self, event, oldLocusOfFocus, newLocusOfFocus):
 """Called when the visual object with focus changes.
 
 Arguments:
 - event: if not None, the Event that caused the change
 - oldLocusOfFocus: Accessible that is the old locus of focus
 - newLocusOfFocus: Accessible that is the new locus of focus
 """
 pass
 
 def visualAppearanceChanged(self, event, obj):
 """Called when the visual appearance of an object changes.
 This method should not be called for objects whose visual
 appearance changes solely because of focus -- locusOfFocusChanged
 is used for that.  Instead, it is intended mostly for objects
 whose notional 'value' has changed, such as a checkbox changing
 state, a progress bar advancing, a slider moving, text inserted,
 caret moved, etc.
 
 Arguments:
 - event: if not None, the Event that caused this to happen
 - obj: the Accessible whose visual appearance changed.
 """
 pass
 
 def activate(self):
 """Called when this presentation manager is activated."""
 pass
 
 def deactivate(self):
 """Called when this presentation manager is deactivated."""
 pass
 
 |