|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnetworking.server.MasterServerListenersHost
class MasterServerListenersHost
MasterServerListenersHost - convenience class for managing MasterServer listeners
| Field Summary | |
|---|---|
static int |
LIST_CHANGED
Event constant - clientListChanged |
static int |
LOG
Event constant - log message arrived |
private java.util.List |
m_listeners
Listeners list |
static int |
STARTED
Event constant - server started |
static int |
TERMINATED
Event constant - server terminated |
| Constructor Summary | |
|---|---|
MasterServerListenersHost()
|
|
| Method Summary | |
|---|---|
void |
addListener(IMasterServerListener listener)
Add new listener |
protected void |
fire(int type)
Fire event |
protected void |
fire(int type,
java.lang.Object param)
Fire event |
void |
removeListener(IMasterServerListener listener)
Remove listener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int LIST_CHANGED
public static final int LOG
public static final int STARTED
public static final int TERMINATED
private java.util.List m_listeners
| Constructor Detail |
|---|
MasterServerListenersHost()
| Method Detail |
|---|
public void addListener(IMasterServerListener listener)
IMasterServerListenersHost
addListener in interface IMasterServerListenersHostlistener - new listenerpublic void removeListener(IMasterServerListener listener)
IMasterServerListenersHost
removeListener in interface IMasterServerListenersHostlistener - listenerprotected void fire(int type)
type - event type
protected void fire(int type,
java.lang.Object param)
type - event typeparam - event object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright © 2009 Alexey Veremenko. All rights reserved.