mirror of
https://github.com/igniterealtime/Spark.git
synced 2025-12-01 12:27:58 +00:00
Ton of code cleanup activities. Embraced newer APIs, fixed some uses of deprecated APIs. Couple of bugs along the way.
git-svn-id: http://svn.igniterealtime.org/svn/repos/spark/trunk@9549 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
committed by
dhenninger
parent
7907c1f090
commit
d627912d8c
@ -46,7 +46,7 @@ public class JContactItemField extends JPanel {
|
||||
private JWindow popup;
|
||||
private List<ContactItem> items;
|
||||
|
||||
public JContactItemField(List items) {
|
||||
public JContactItemField(List<ContactItem> items) {
|
||||
setLayout(new BorderLayout());
|
||||
list = new JList(model) {
|
||||
public String getToolTipText(MouseEvent e) {
|
||||
@ -131,8 +131,8 @@ public class JContactItemField extends JPanel {
|
||||
popup.dispose();
|
||||
}
|
||||
|
||||
public void setItems(List list) {
|
||||
this.items = items;
|
||||
public void setItems(List<ContactItem> list) {
|
||||
this.items = list;
|
||||
}
|
||||
|
||||
public JList getList() {
|
||||
@ -229,8 +229,7 @@ public class JContactItemField extends JPanel {
|
||||
}
|
||||
|
||||
public ContactItem getSelectedContactItem() {
|
||||
ContactItem selection = (ContactItem)list.getSelectedValue();
|
||||
return selection;
|
||||
return (ContactItem)list.getSelectedValue();
|
||||
}
|
||||
|
||||
public void setText(String text) {
|
||||
|
||||
Reference in New Issue
Block a user