public class KeyObservable extends java.lang.Object implements IKeyObservable
Modifier and Type | Class and Description |
---|---|
static class |
KeyObservable.DummyKeyObservableCallback |
static interface |
KeyObservable.IKeyObservableCallback |
Constructor and Description |
---|
KeyObservable() |
KeyObservable(KeyObservable.IKeyObservableCallback observableCallback) |
Modifier and Type | Method and Description |
---|---|
void |
addKeyListener(IKeyListener listener)
Adds a key listener
|
void |
fireKeyPressed(IKeyEvent event) |
void |
fireKeyReleased(IKeyEvent event) |
void |
removeKeyListener(IKeyListener listener)
Removes a key listener
|
int |
size() |
public KeyObservable()
public KeyObservable(KeyObservable.IKeyObservableCallback observableCallback)
public final void addKeyListener(IKeyListener listener)
IKeyObservable
addKeyListener
in interface IKeyObservable
listener
- The listener to addpublic final void removeKeyListener(IKeyListener listener)
IKeyObservable
removeKeyListener
in interface IKeyObservable
listener
- The listener to removepublic final void fireKeyPressed(IKeyEvent event)
public final void fireKeyReleased(IKeyEvent event)
public final int size()
Siehe auch Jowidgets Nutzerhandbuch