Extension SDK 10.1.2


oracle.jdeveloper.uieditor
Class CanvasKeyStrokeContext

java.lang.Object
  extended byoracle.ide.keyboard.XMLKeyStrokeContext
      extended byoracle.jdeveloper.uieditor.CanvasKeyStrokeContext

All Implemented Interfaces:
KeyStrokeContext

public class CanvasKeyStrokeContext
extends XMLKeyStrokeContext

CanvasKeyStrokeContext is a KeyStrokeContext based upon XmlKeyStrokeContext and customized for ModelFactory implementations. Integrators are encouraged to return an instance of this class from their ModelFactory.getKeyStrokeContext implementation.

See Also:
ModelFactory, KeyStrokeContext

Constructor Summary
CanvasKeyStrokeContext(ModelFactory factory)
Constructor.

Method Summary
java.util.Set getAllActions(boolean bGlobal)
Get the set of actions represented by this context.

Methods inherited from class oracle.ide.keyboard.XMLKeyStrokeContext
getAcceleratorFile, getAllPresets, getName, getPresetKeyStrokeMap

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

CanvasKeyStrokeContext

public CanvasKeyStrokeContext(ModelFactory factory)
Constructor.
Parameters:
factory - the ModelFactory which produces the UIEditorCanvas instances to which this XMLKeyStrokeContext applies.

Method Detail

getAllActions

public java.util.Set getAllActions(boolean bGlobal)
Get the set of actions represented by this context. Defers to all registered actions of the associated ModelFactory.
Specified by:
getAllActions in interface KeyStrokeContext
Specified by:
getAllActions in class XMLKeyStrokeContext
Parameters:
bGlobal - true if only global actions are desired.
Returns:
a Set of IdeAction.
See Also:
ModelFactory.getActions()

Extension SDK


Copyright © 1997, 2004, Oracle. All rights reserved.