|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.impl.gui.main.contactlist.CListKeySearchListener
public class CListKeySearchListener
The main goal of the CListKeySearchListener is to listen for key events and to search the ContactList when a key is typed over it. It selects the Contact name closest to the typed string. The time between two button presses is checked to determine whether the user makes a new search or a continious search. When user types the same letter consecutively the search mechanism selects the next Contact name starting with the same letter. The CListKeySearchListener is added to the MainFrame and the ContactListPanel to provide a search functionality over the contact list when one of them is focused. The 'space' key, the '+' and the '-' keys are proccess seperately to provide another functionality completely different from the search. When user types a '-' or 'space' and there's currently a group selected, the selected group is closed. When user types '+' the selected group is opened.
| Constructor Summary | |
|---|---|
CListKeySearchListener(JList contactList)
Creates an instance of CListKeySearchListener for the given ContactList. |
|
| Method Summary | |
|---|---|
void |
closeGroup()
Closes a group when it's opened. |
void |
keyPressed(KeyEvent e)
|
void |
keyReleased(KeyEvent e)
|
void |
keyTyped(KeyEvent e)
Searches the contact list when any key, different from "space", "+" or "-" is typed. |
void |
openGroup()
Opens a group when it's closed. |
void |
openOrCloseGroup()
Opens or closes a group depending the state. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CListKeySearchListener(JList contactList)
contactList - The contact list.| Method Detail |
|---|
public void keyPressed(KeyEvent e)
keyPressed in interface KeyListenerpublic void keyReleased(KeyEvent e)
keyReleased in interface KeyListenerpublic void keyTyped(KeyEvent e)
keyTyped in interface KeyListenerpublic void closeGroup()
public void openGroup()
public void openOrCloseGroup()
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||