|
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.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JList
net.java.sip.communicator.impl.gui.main.contactlist.DefaultContactList
public class DefaultContactList
DeafultContactlist used to display JLists with contacts.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JList |
|---|
JList.AccessibleJList, JList.DropLocation |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
(package private) ContactListCellRenderer |
renderer
List cell renderer. |
| Fields inherited from class javax.swing.JList |
|---|
HORIZONTAL_WRAP, VERTICAL, VERTICAL_WRAP |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
DefaultContactList()
Creates an instance of DefaultContactList. |
|
| Method Summary | |
|---|---|
JToolTip |
createToolTip()
Creates a customized tooltip for this contact list. |
protected void |
fireSelectionValueChanged(int firstIndex,
int lastIndex,
boolean isAdjusting)
Processes the MouseEvent we have previously cached before invoking the parent fireSelectionValueChanged which would notify the JList ListSelectionListeners that the selection model has changed. |
PresenceStatus |
getMetaContactStatus(MetaContact metaContact)
Returns the general status of the given MetaContact. |
int |
getNextMatch(String prefix,
int startIndex,
Position.Bias bias)
Returns the next list element that starts with a prefix. |
String |
getToolTipText(MouseEvent event)
Returns the string to be used as the tooltip for event. |
boolean |
isGroupClosed(MetaContactGroup group)
Checks whether the group is closed. |
boolean |
isMetaContactActive(MetaContact metaContact)
Checks if the given contact is currently active. |
void |
loadSkin()
Reloads skin information stored in render class. |
protected void |
processMouseEvent(MouseEvent event)
Caches the incoming mouse event before passing it to the parent implementation of processMouseEvent. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
ContactListCellRenderer renderer
| Constructor Detail |
|---|
public DefaultContactList()
| Method Detail |
|---|
public boolean isMetaContactActive(MetaContact metaContact)
metaContact - the MetaContact to verify
public boolean isGroupClosed(MetaContactGroup group)
group - The group to check.
public PresenceStatus getMetaContactStatus(MetaContact metaContact)
metaContact - The metaContact for which the status is asked.
public JToolTip createToolTip()
createToolTip in class JComponentpublic String getToolTipText(MouseEvent event)
getToolTipText in class JListevent - the MouseEvent that notified us
public int getNextMatch(String prefix,
int startIndex,
Position.Bias bias)
getNextMatch in class JListprefix - the string to test for a matchstartIndex - the index for starting the searchbias - the search direction, either Position.Bias.Forward or
Position.Bias.Backward.
protected void fireSelectionValueChanged(int firstIndex,
int lastIndex,
boolean isAdjusting)
Workaround provided by simon@tardell.se on 29-DEC-2002 for bug 4521075 http://bugs.sun.com/bugdatabase/view_bug.do;jsessionid=a13e98ab2364524506eb91505565?bug_id=4521075 "Drag gesture in JAVA different from Windows". The bug is also noticed on Mac Leopard.
fireSelectionValueChanged in class JListfirstIndex - the first selected indexlastIndex - the last selected indexisAdjusting - true if multiple changes are being madeprotected void processMouseEvent(MouseEvent event)
Workaround provided by simon@tardell.se on 29-DEC-2002 for bug 4521075 http://bugs.sun.com/bugdatabase/view_bug.do;jsessionid=a13e98ab2364524506eb91505565?bug_id=4521075 "Drag gesture in JAVA different from Windows". The bug is also noticed on Mac Leopard.
processMouseEvent in class JComponentevent - the MouseEvent to processpublic void loadSkin()
loadSkin in interface Skinnable
|
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 | |||||||||