|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ShellStatusProvider
Implemented by shells that support the publication of shell status changes.
Implementations are not required to provide any guarantees with respect to the order in which notifications are delivered to listeners.
Implementations must permit modification of the listener list, even while delivering event notifications to listeners. However, listeners do not receive any guarantee that their addition or removal from the listener list will be effective or not for any event notification that is currently proceeding.
Implementations must ensure that status notifications are only delivered when an actual change has taken place.
Method Summary | |
---|---|
void |
addShellStatusListener(ShellStatusListener shellStatusListener)
Registers a new status listener. |
ShellStatus |
getShellStatus()
Returns the current shell status. |
void |
removeShellStatusListener(ShellStatusListener shellStatusListener)
Removes an existing status listener. |
Method Detail |
---|
void addShellStatusListener(ShellStatusListener shellStatusListener)
shellStatusListener
- to register (cannot be null)void removeShellStatusListener(ShellStatusListener shellStatusListener)
If the presented status listener is not found, the method returns without exception.
shellStatusListener
- to remove (cannot be null)ShellStatus getShellStatus()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |