Package chatown

Examples of chatown.OpenMsg


     
      // send messages to other clients about new client
      sendClientsListToClients()
    }
    else if (clientObj instanceof OpenMsg) { // client sent open message
      OpenMsg om = (OpenMsg)clientObj;
     
      Client clt = _clientsMap.get(om.get_client().get_ID());
      clt.inc_numOpenMsgs();
      _clientsMap.put(clt.get_ID(), clt);
     
      OpenMsg newOM = new OpenMsg(clt, om.get_msg());     
     
      if (!_clientsMap.containsKey(newOM.get_client().get_ID())) { return; } // client not found in clients list
     
      // fire CLIENT SentOpenMsg event to update UI
      clientSentOpenMsg(newOM);
     
      sendClientsOpenMsg(newOM);     
View Full Code Here


    txtEnter.setText("");
  }
 
  private void sendOpenMsgToServer(String text) {
    Client clt = new Client(null, _nickname, _myClientID);
    _eventSendOpenMsg.fireEvent(new OpenMsgClientEvent(this, new OpenMsg(clt, text)));     
  }
View Full Code Here

TOP

Related Classes of chatown.OpenMsg

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.