Beispiel #1
0
    def __init__(self, chatui):
        ContactsList.__init__(self, chatui)
        self.clientsByName = {}
        self.mainframe = JFrame("Contacts List")
        self.headers = ["Contact", "Status", "Idle", "Account"]
        self.data = UneditableTableModel([], self.headers)
        self.table = JTable(self.data,
                            columnSelectionAllowed = 0, #cannot select columns
                            selectionMode = ListSelectionModel.SINGLE_SELECTION)

        self.buildpane()
        self.mainframe.pack()
        self.mainframe.show()
Beispiel #2
0
    def __init__(self, chatui):
        ContactsList.__init__(self, chatui)
        self.clientsByName = {}
        self.mainframe = JFrame("Contacts List")
        self.headers = ["Contact", "Status", "Idle", "Account"]
        self.data = UneditableTableModel([], self.headers)
        self.table = JTable(
            self.data,
            columnSelectionAllowed=0,  #cannot select columns
            selectionMode=ListSelectionModel.SINGLE_SELECTION)

        self.buildpane()
        self.mainframe.pack()
        self.mainframe.show()
Beispiel #3
0
 def contactChangedNick(self, person, newnick):
     ContactsList.contactChangedNick(self, person, newnick)
     self.update()
Beispiel #4
0
 def unregisterAccount(self, client):
     ContactsList.unregisterAccountClient(self, client)
     if client.accountName in self.clientsByName.keys():
         del self.clientsByName[client.accountName]
Beispiel #5
0
 def registerAccountClient(self, client):
     ContactsList.registerAccountClient(self, client)
     if not client.accountName in self.clientsByName.keys():
         self.clientsByName[client.accountName] = client
Beispiel #6
0
 def setContactStatus(self, person):
     ContactsList.setContactStatus(self, person)
     self.update()
Beispiel #7
0
 def contactChangedNick(self, person, newnick):
     ContactsList.contactChangedNick(self, person, newnick)
     self.update()
Beispiel #8
0
 def unregisterAccount(self, client):
     ContactsList.unregisterAccountClient(self, client)
     if client.accountName in self.clientsByName.keys():
         del self.clientsByName[client.accountName]
Beispiel #9
0
 def registerAccountClient(self, client):
     ContactsList.registerAccountClient(self, client)
     if not client.accountName in self.clientsByName.keys():
         self.clientsByName[client.accountName] = client
Beispiel #10
0
 def setContactStatus(self, person):
     ContactsList.setContactStatus(self, person)
     self.update()