Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.gui.main.contactlist.contactsource
Class MetaUIGroup

java.lang.Object
  extended by net.java.sip.communicator.impl.gui.main.contactlist.contactsource.MetaUIGroup
All Implemented Interfaces:
UIGroup

public class MetaUIGroup
extends Object
implements UIGroup

The MetaUIGroup is the implementation of the UIGroup for the MetaContactListService. This implementation is based on the MetaContactGroup.

Author:
Yana Stamcheva

Constructor Summary
MetaUIGroup(MetaContactGroup metaGroup)
          Creates an instance of MetaUIGroup by specifying the underlying MetaContactGroup.
 
Method Summary
 int countChildContacts()
          Returns the count of child contacts of the underlying MetaContactGroup.
 int countOnlineChildContacts()
          Returns the count of online child contacts of the underlying MetaContactGroup.
 Object getDescriptor()
          Returns the underlying MetaContactGroup.
 String getDisplayName()
          Returns the display name of the underlying MetaContactGroup.
 GroupNode getGroupNode()
          Returns the corresponding GroupNode.
 String getId()
          Returns the identifier of the underlying MetaContactGroup.
 UIGroup getParentGroup()
          Returns the parent UIGroup.
 JPopupMenu getRightButtonMenu()
          Returns the JPopupMenu opened on a right button click over this group in the contact list.
 int getSourceIndex()
          Returns the index of the underlying MetaContactGroup in its MetaContactListService parent group.
 boolean isGroupCollapsed()
          Indicates if this group was collapsed.
 void setGroupNode(GroupNode groupNode)
          Sets the corresponding GroupNode.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetaUIGroup

public MetaUIGroup(MetaContactGroup metaGroup)
Creates an instance of MetaUIGroup by specifying the underlying MetaContactGroup.

Parameters:
metaGroup - the MetaContactGroup, on which this UI group is based
Method Detail

getDescriptor

public Object getDescriptor()
Returns the underlying MetaContactGroup.

Specified by:
getDescriptor in interface UIGroup
Returns:
the underlying MetaContactGroup

getSourceIndex

public int getSourceIndex()
Returns the index of the underlying MetaContactGroup in its MetaContactListService parent group.

Specified by:
getSourceIndex in interface UIGroup
Returns:
the source index of the underlying MetaContactGroup

getParentGroup

public UIGroup getParentGroup()
Returns the parent UIGroup.

Specified by:
getParentGroup in interface UIGroup
Returns:
the parent UIGroup

isGroupCollapsed

public boolean isGroupCollapsed()
Indicates if this group was collapsed.

Specified by:
isGroupCollapsed in interface UIGroup
Returns:
true to indicate that this group has been collapsed, false - otherwise

getDisplayName

public String getDisplayName()
Returns the display name of the underlying MetaContactGroup.

Specified by:
getDisplayName in interface UIGroup
Returns:
the display name of the underlying MetaContactGroup

countChildContacts

public int countChildContacts()
Returns the count of child contacts of the underlying MetaContactGroup.

Specified by:
countChildContacts in interface UIGroup
Returns:
the count of child contacts

countOnlineChildContacts

public int countOnlineChildContacts()
Returns the count of online child contacts of the underlying MetaContactGroup.

Specified by:
countOnlineChildContacts in interface UIGroup
Returns:
the count of online child contacts

getId

public String getId()
Returns the identifier of the underlying MetaContactGroup.

Specified by:
getId in interface UIGroup
Returns:
the identifier of the underlying MetaContactGroup

getGroupNode

public GroupNode getGroupNode()
Returns the corresponding GroupNode.

Specified by:
getGroupNode in interface UIGroup
Returns:
the corresponding GroupNode

setGroupNode

public void setGroupNode(GroupNode groupNode)
Sets the corresponding GroupNode.

Specified by:
setGroupNode in interface UIGroup
Parameters:
groupNode - the corresponding GroupNoe in the contact list component data model

getRightButtonMenu

public JPopupMenu getRightButtonMenu()
Returns the JPopupMenu opened on a right button click over this group in the contact list.

Specified by:
getRightButtonMenu in interface UIGroup
Returns:
the JPopupMenu opened on a right button click over this group in the contact list

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.