Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.7.2)

E13403-10


oracle.ide.keyboard
Class KeyStrokeContextRegistry

java.lang.Object
  extended by oracle.ide.keyboard.KeyStrokeContextRegistry


public final class KeyStrokeContextRegistry
extends java.lang.Object

The KeyStrokeContextRegistry is a collection of KeyStrokeContext. The class supports CollectionListeners

See Also:
CollectionListener

Constructor Summary
KeyStrokeContextRegistry()
          Constructor

 

Method Summary
 void addAcceleratorDefinitionFile(java.lang.ClassLoader classLoader, java.lang.String fileName)
          Adds an accelerator definition file.
 void addContext(KeyStrokeContext ksc)
          Add a context to the list of known context.
 void addListener(CollectionListener l)
          Adds a CollectionListener
 java.util.Iterator getAllContexts()
           
 java.util.Set getAllPresets()
           
 KeyStrokeContext getContext(java.lang.String sName)
          Searches the KeyStrokeContext with the specified name.
 void removeAcceleratorDefinitionFile(java.lang.ClassLoader classLoader, java.lang.String fileName)
          Remove context
 void removeContext(KeyStrokeContext ksc)
          Remove a context to the list of known context.
 void removeListener(CollectionListener l)
          Removes a CollectionListener

 

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

 

Constructor Detail

KeyStrokeContextRegistry

public KeyStrokeContextRegistry()
Constructor

Method Detail

addListener

public void addListener(CollectionListener l)
Adds a CollectionListener
See Also:
CollectionListener

removeListener

public void removeListener(CollectionListener l)
Removes a CollectionListener
See Also:
CollectionListener

addContext

public void addContext(KeyStrokeContext ksc)
Add a context to the list of known context.

removeContext

public void removeContext(KeyStrokeContext ksc)
Remove a context to the list of known context.

addAcceleratorDefinitionFile

public void addAcceleratorDefinitionFile(java.lang.ClassLoader classLoader,
                                         java.lang.String fileName)
Adds an accelerator definition file.
Parameters:
classLoader - The accelerator file is loaded using ClassLoader.getResourceAsStream(String fileName).
fileName - the name of the kdf file that contains the accelerator definitions

removeAcceleratorDefinitionFile

public void removeAcceleratorDefinitionFile(java.lang.ClassLoader classLoader,
                                            java.lang.String fileName)
Remove context
Parameters:
fileName -

getContext

public KeyStrokeContext getContext(java.lang.String sName)
Searches the KeyStrokeContext with the specified name. Search is based on equalsIgnoreCase(ksc.getName()).
Returns:
null if the context is not found.

getAllContexts

public java.util.Iterator getAllContexts()
Returns:
an Iterator of KeyStrokeContext

getAllPresets

public java.util.Set getAllPresets()
Returns:
a Set of Strings representing an unique set of declared presets.

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.7.2)

E13403-10


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