@Override public void conversationEndedNotice(String convo) { convoList.removeEntry(convo); convoListPane.setViewportView(convoList.PANEL); chatArea.removeChat(convo); peepLists.remove(convo); }
@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); }
@Override public void entrySelected(EntryPanel list, String entry) { if (list == convoList) { currentConvo = entry; chatArea.showChat(entry); peepListPane.setViewportView(peepLists.get(entry).PANEL); } }
@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); } }
@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); }