public interface Bridge<I,L extends Listener<I>>
Modifier and Type | Method and Description |
---|---|
Bridge<I,L> |
addListener(L listener)
Adds a listener to this class
|
Bridge<I,L> |
addLog(java.lang.String log)
Adds a log message
|
Bridge<I,L> |
clearLog()
Delete all log messages
|
Bridge<I,L> |
notifyInputReady()
Notify all objects connected to the bridge that there is an input ready to be displayed
|
Bridge<I,L> |
notifyLogAdded()
Notify all objects connected to the bridge that there are new log to display
|
Bridge<I,L> |
notifyLogCleared()
Notify all objects connected to the bridge that the log has been cleared
|
Bridge<I,L> |
notifyOutputReady()
Notify all objects connected to the bridge that there is an output ready to be displayed
|
Bridge<I,L> |
setInput(I input)
Set an input object
|
Bridge<I,L> |
setOutput(GridOutput output)
Set the output
|
Bridge<I,L> |
setOutput(TextOutput<?> output)
Set the output
|
Bridge<I,L> addListener(L listener)
listener
- a listenerBridge<I,L> addLog(java.lang.String log)
log
- the messageBridge<I,L> notifyLogAdded()
Bridge<I,L> notifyLogCleared()
Bridge<I,L> setInput(I input)
input
- An input objectBridge<I,L> notifyInputReady()
Bridge<I,L> setOutput(TextOutput<?> output)
output
- An output that can be displayed as a textBridge<I,L> setOutput(GridOutput output)
output
- An output that can be displayed as a datagrid