"all" added in the "call list" search combo box

cusax-fix
Yana Stamcheva 20 years ago
parent aaef2b22c8
commit f6268987ba

@ -34,7 +34,7 @@ public SmartComboBox()
setEditable(true);
setFocusable(true);
}
/**
* The data model used for this combo box. Filters the contents of the
* combo box popup according to the user input.
@ -79,7 +79,10 @@ public void removeElementAt(int index)
updateFilteredItems();
}
public void insertElementAt( Object obj, int index ) {}
public void insertElementAt( Object obj, int index ) {
items.add(index, obj);
updateFilteredItems();
}
public void setFilter(Filter filter)
{

@ -16,6 +16,7 @@ addGroupError=Failed to add group with name: ?.
addGroupErrorTitle=Add group Error
addGroupExistError=The group you're trying to create already exists in your contact list.
addSubcontact=Add subcontact
all=All
allContacts=All contacts
alwaysOnTop=Always on top
appearance=Appearance
@ -116,9 +117,9 @@ openInBrowser=Open in browser
passwd=Password:
paste=Paste
previous=Previous
providerNotConnected=You must be connected to be able to communicate.
print=Print
protocol=Protocol
providerNotConnected=You must be connected to be able to communicate.
quit=Quit
ready=Ready
reconnectionLimitExceeded=You have have been disconnecting and reconnecting to the server too fast. ? account is temporarily banned and would have to wait a bit before trying to login again.

@ -147,9 +147,15 @@ private void addToSearchComboBox(Object obj)
FilterableComboBoxModel comboModel =
(FilterableComboBoxModel)searchComboBox.getModel();
String allItem = Messages.getString("all");
if(!comboModel.contains(allItem)) {
searchComboBox.addItem(allItem);
}
if(!comboModel.contains(obj))
comboModel.addElement(obj);
}
/**
@ -209,7 +215,17 @@ public void actionPerformed(ActionEvent e)
this.callList.removeAll();
new LoadParticipantCallsFromHistory(item).start();
if(item.equals(Messages.getString("all"))) {
this.lastDateFromHistory = null;
this.callList.removeAll();
new LoadLastCallsFromHistory().start();
filteredSearch = false;
}
else
new LoadParticipantCallsFromHistory(item).start();
filteredSearch = true;
}

Loading…
Cancel
Save