|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.freecol.client.control.InputHandler
public abstract class InputHandler
Provides common methods for input handlers.
| Field Summary | |
|---|---|
private FreeColClient |
freeColClient
|
protected GUI |
gui
|
private static java.util.logging.Logger |
logger
|
| Constructor Summary | |
|---|---|
InputHandler(FreeColClient freeColClient,
GUI gui)
The constructor to use. |
|
| Method Summary | |
|---|---|
protected org.w3c.dom.Element |
disconnect(org.w3c.dom.Element disconnectElement)
Handles a "disconnect"-message. |
protected FreeColClient |
getFreeColClient()
Returns the main freecol client object. |
protected Game |
getGame()
Returns the Game. |
abstract org.w3c.dom.Element |
handle(Connection connection,
org.w3c.dom.Element element)
Deals with incoming messages that have just been received. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final java.util.logging.Logger logger
private final FreeColClient freeColClient
protected GUI gui
| Constructor Detail |
|---|
public InputHandler(FreeColClient freeColClient,
GUI gui)
freeColClient - The main freecol client object.| Method Detail |
|---|
protected FreeColClient getFreeColClient()
protected Game getGame()
Game value
public abstract org.w3c.dom.Element handle(Connection connection,
org.w3c.dom.Element element)
handle in interface MessageHandlerconnection - The Connection the message was received on.element - The root element of the message.
protected org.w3c.dom.Element disconnect(org.w3c.dom.Element disconnectElement)
disconnectElement - The element (root element in a DOM-parsed XML tree) that
holds all the information.
null.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||