Ejemplo n.º 1
0
 @Override
 public void conversationEndedNotice(String convo) {
   convoList.removeEntry(convo);
   convoListPane.setViewportView(convoList.PANEL);
   chatArea.removeChat(convo);
   peepLists.remove(convo);
 }
Ejemplo n.º 2
0
 @Override
 public void leaveNotice(String who, String from, String context) {
   consolePanel.p(who + " left " + from);
   peepLists.get(from).removeEntry(who);
   if (currentConvo != null && currentConvo.equals(from))
     peepListPane.setViewportView(peepLists.get(from).PANEL);
 }
Ejemplo n.º 3
0
 @Override
 public void entrySelected(EntryPanel list, String entry) {
   if (list == convoList) {
     currentConvo = entry;
     chatArea.showChat(entry);
     peepListPane.setViewportView(peepLists.get(entry).PANEL);
   }
 }
Ejemplo n.º 4
0
 @Override
 public void joinNotice(String who, String where, String context) {
   consolePanel.p(who + " joined " + where);
   EntryPanel peepList = peepLists.get(where);
   if (peepList != null) {
     peepList.addEntry(who);
     if (currentConvo != null && currentConvo.equals(where))
       peepListPane.setViewportView(peepLists.get(where).PANEL);
   }
 }
Ejemplo n.º 5
0
  @Override
  public void conversationStartedNotice(String convo) {
    convoList.addEntry(convo);
    convoList.highlightEntry(convo, Color.RED);
    convoListPane.setViewportView(convoList.PANEL);

    chatArea.createNewChat(convo);
    EntryPanel peepList = new EntryPanel(this);
    peepList.PANEL.setBackground(BACKGROUND);
    peepList.PANEL.setForeground(new Color(255, 69, 0));
    peepLists.put(convo, peepList);
  }