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