aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/sip/communicator/service/contactsource/AbstractContactQuery.java
diff options
context:
space:
mode:
authorhristoterezov <hristo@jitsi.org>2013-11-20 18:05:23 +0200
committerhristoterezov <hristo@jitsi.org>2013-11-20 18:05:23 +0200
commite0aeee986a0a326e9b875555786826794a80d04f (patch)
tree8521c1190c2bbc0d397663d78ab5305d474c7465 /src/net/java/sip/communicator/service/contactsource/AbstractContactQuery.java
parentdab2ada999d2ae4c681d30e9cb5352084bdf539b (diff)
downloadjitsi-e0aeee986a0a326e9b875555786826794a80d04f.zip
jitsi-e0aeee986a0a326e9b875555786826794a80d04f.tar.gz
jitsi-e0aeee986a0a326e9b875555786826794a80d04f.tar.bz2
Disables the show more label for chat room contact source.
Diffstat (limited to 'src/net/java/sip/communicator/service/contactsource/AbstractContactQuery.java')
-rw-r--r--src/net/java/sip/communicator/service/contactsource/AbstractContactQuery.java24
1 files changed, 22 insertions, 2 deletions
diff --git a/src/net/java/sip/communicator/service/contactsource/AbstractContactQuery.java b/src/net/java/sip/communicator/service/contactsource/AbstractContactQuery.java
index 523e350..716cd7e 100644
--- a/src/net/java/sip/communicator/service/contactsource/AbstractContactQuery.java
+++ b/src/net/java/sip/communicator/service/contactsource/AbstractContactQuery.java
@@ -98,8 +98,11 @@ public abstract class AbstractContactQuery<T extends ContactSourceService>
* @param contact the <tt>SourceContact</tt> which has been received and
* which the registered <tt>ContactQueryListener</tt>s are to be notified
* about
+ * @param showMoreEnabled indicates whether show more label should be shown
+ * or not.
*/
- protected void fireContactReceived(SourceContact contact)
+ protected void fireContactReceived(SourceContact contact,
+ boolean showMoreEnabled)
{
ContactQueryListener[] ls;
@@ -108,10 +111,27 @@ public abstract class AbstractContactQuery<T extends ContactSourceService>
ls = listeners.toArray(new ContactQueryListener[listeners.size()]);
}
- ContactReceivedEvent ev = new ContactReceivedEvent(this, contact);
+ ContactReceivedEvent ev
+ = new ContactReceivedEvent(this, contact, showMoreEnabled);
for (ContactQueryListener l : ls)
+ {
l.contactReceived(ev);
+ }
+ }
+
+ /**
+ * Notifies the <tt>ContactQueryListener</tt>s registered with this
+ * <tt>ContactQuery</tt> that a new <tt>SourceContact</tt> has been
+ * received.
+ *
+ * @param contact the <tt>SourceContact</tt> which has been received and
+ * which the registered <tt>ContactQueryListener</tt>s are to be notified
+ * about
+ */
+ protected void fireContactReceived(SourceContact contact)
+ {
+ fireContactReceived(contact, true);
}
/**