Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.service.keybindings
Class KeybindingSet

java.lang.Object
  extended by java.util.Observable
      extended by net.java.sip.communicator.service.keybindings.KeybindingSet
Direct Known Subclasses:
KeybindingSetImpl

public abstract class KeybindingSet
extends Observable

Wrapper for keybinding sets. Observers are notified when there's a change.

Author:
Damian Johnson

Nested Class Summary
static class KeybindingSet.Category
          Keybinding sets available in the Sip Communicator.
 
Constructor Summary
KeybindingSet()
           
 
Method Summary
abstract  HashMap<KeyStroke,String> getBindings()
          Provides current keybinding mappings.
abstract  KeybindingSet.Category getCategory()
          Provides the portion of the UI to which the bindings belong.
abstract  void setBindings(Map<KeyStroke,String> newBindings)
          Resets the bindings and notifies the observer's listeners if they've changed.
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeybindingSet

public KeybindingSet()
Method Detail

getBindings

public abstract HashMap<KeyStroke,String> getBindings()
Provides current keybinding mappings.

Returns:
mapping of keystrokes to the string representation of the actions they perform

setBindings

public abstract void setBindings(Map<KeyStroke,String> newBindings)
Resets the bindings and notifies the observer's listeners if they've changed.

Parameters:
newBindings - new keybindings to be held

getCategory

public abstract KeybindingSet.Category getCategory()
Provides the portion of the UI to which the bindings belong.

Returns:
binding category

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.