Esempio n. 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()
Esempio n. 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()
Esempio n. 3
0
 def contactChangedNick(self, person, newnick):
     ContactsList.contactChangedNick(self, person, newnick)
     self.update()
Esempio n. 4
0
 def unregisterAccount(self, client):
     ContactsList.unregisterAccountClient(self, client)
     if client.accountName in self.clientsByName.keys():
         del self.clientsByName[client.accountName]
Esempio n. 5
0
 def registerAccountClient(self, client):
     ContactsList.registerAccountClient(self, client)
     if not client.accountName in self.clientsByName.keys():
         self.clientsByName[client.accountName] = client
Esempio n. 6
0
 def setContactStatus(self, person):
     ContactsList.setContactStatus(self, person)
     self.update()
Esempio n. 7
0
 def contactChangedNick(self, person, newnick):
     ContactsList.contactChangedNick(self, person, newnick)
     self.update()
Esempio n. 8
0
 def unregisterAccount(self, client):
     ContactsList.unregisterAccountClient(self, client)
     if client.accountName in self.clientsByName.keys():
         del self.clientsByName[client.accountName]
Esempio n. 9
0
 def registerAccountClient(self, client):
     ContactsList.registerAccountClient(self, client)
     if not client.accountName in self.clientsByName.keys():
         self.clientsByName[client.accountName] = client
Esempio n. 10
0
 def setContactStatus(self, person):
     ContactsList.setContactStatus(self, person)
     self.update()