Java 类org.jivesoftware.smackx.pubsub.listener.ItemEventListener 实例源码

项目:Smack    文件:Node.java   
/**
 * Register a listener for item publication events.  This 
 * listener will get called whenever an item is published to 
 * this node.
 * 
 * @param listener The handler for the event
 */
@SuppressWarnings("unchecked")
   public void addItemEventListener(@SuppressWarnings("rawtypes") ItemEventListener listener)
{
    StanzaListener conListener = new ItemEventTranslator(listener); 
    itemEventToListenerMap.put(listener, conListener);
    con.addSyncStanzaListener(conListener, new EventContentFilter(EventElementType.items.toString(), "item"));
}
项目:Smack    文件:Node.java   
/**
 * Unregister a listener for publication events.
 * 
 * @param listener The handler to unregister
 */
public void removeItemEventListener(@SuppressWarnings("rawtypes") ItemEventListener listener)
{
    StanzaListener conListener = itemEventToListenerMap.remove(listener);

    if (conListener != null)
        con.removeSyncStanzaListener(conListener);
}
项目:EIM    文件:Node.java   
/**
 * Unregister a listener for publication events.
 * 
 * @param listener The handler to unregister
 */
public void removeItemEventListener(ItemEventListener listener)
{
    PacketListener conListener = itemEventToListenerMap.remove(listener);

    if (conListener != null)
        con.removePacketListener(conListener);
}
项目:androidPN-client.    文件:Node.java   
/**
 * Unregister a listener for publication events.
 * 
 * @param listener The handler to unregister
 */
public void removeItemEventListener(ItemEventListener listener)
{
    PacketListener conListener = itemEventToListenerMap.remove(listener);

    if (conListener != null)
        con.removePacketListener(conListener);
}
项目:xmppsupport_v2    文件:Node.java   
/**
 * Unregister a listener for publication events.
 * 
 * @param listener
 *            The handler to unregister
 */
public void removeItemEventListener(ItemEventListener listener) {
    PacketListener conListener = itemEventToListenerMap.remove(listener);

    if (conListener != null)
        con.removePacketListener(conListener);
}
项目:java-bells    文件:Node.java   
/**
 * Unregister a listener for publication events.
 * 
 * @param listener The handler to unregister
 */
public void removeItemEventListener(ItemEventListener listener)
{
    PacketListener conListener = itemEventToListenerMap.remove(listener);

    if (conListener != null)
        con.removePacketListener(conListener);
}
项目:telegraph    文件:Node.java   
/**
 * Unregister a listener for publication events.
 * 
 * @param listener The handler to unregister
 */
public void removeItemEventListener(ItemEventListener listener)
{
    PacketListener conListener = itemEventToListenerMap.remove(listener);

    if (conListener != null)
        con.removePacketListener(conListener);
}
项目:NewCommunication-Android    文件:Node.java   
/**
 * Unregister a listener for publication events.
 * 
 * @param listener The handler to unregister
 */
public void removeItemEventListener(ItemEventListener listener)
{
    PacketListener conListener = itemEventToListenerMap.remove(listener);

    if (conListener != null)
        con.removePacketListener(conListener);
}
项目:Smack    文件:Node.java   
public ItemEventTranslator(@SuppressWarnings("rawtypes") ItemEventListener eventListener)
{
    listener = eventListener;
}
项目:EIM    文件:Node.java   
public ItemEventTranslator(ItemEventListener eventListener)
{
    listener = eventListener;
}
项目:androidPN-client.    文件:Node.java   
public ItemEventTranslator(ItemEventListener eventListener)
{
    listener = eventListener;
}
项目:xmppsupport_v2    文件:Node.java   
public ItemEventTranslator(ItemEventListener eventListener) {
    listener = eventListener;
}
项目:java-bells    文件:Node.java   
public ItemEventTranslator(ItemEventListener eventListener)
{
    listener = eventListener;
}
项目:telegraph    文件:Node.java   
public ItemEventTranslator(ItemEventListener eventListener)
{
    listener = eventListener;
}
项目:NewCommunication-Android    文件:Node.java   
public ItemEventTranslator(ItemEventListener eventListener)
{
    listener = eventListener;
}
项目:EIM    文件:Node.java   
/**
 * Register a listener for item publication events.  This 
 * listener will get called whenever an item is published to 
 * this node.
 * 
 * @param listener The handler for the event
 */
public void addItemEventListener(ItemEventListener listener)
{
    PacketListener conListener = new ItemEventTranslator(listener); 
    itemEventToListenerMap.put(listener, conListener);
    con.addPacketListener(conListener, new EventContentFilter(EventElementType.items.toString(), "item"));
}
项目:androidPN-client.    文件:Node.java   
/**
 * Register a listener for item publication events.  This 
 * listener will get called whenever an item is published to 
 * this node.
 * 
 * @param listener The handler for the event
 */
public void addItemEventListener(ItemEventListener listener)
{
    PacketListener conListener = new ItemEventTranslator(listener); 
    itemEventToListenerMap.put(listener, conListener);
    con.addPacketListener(conListener, new EventContentFilter(EventElementType.items.toString(), "item"));
}
项目:xmppsupport_v2    文件:Node.java   
/**
 * Register a listener for item publication events. This listener will get
 * called whenever an item is published to this node.
 * 
 * @param listener
 *            The handler for the event
 */
public void addItemEventListener(ItemEventListener listener) {
    PacketListener conListener = new ItemEventTranslator(listener);
    itemEventToListenerMap.put(listener, conListener);
    con.addPacketListener(conListener, new EventContentFilter(
            EventElementType.items.toString(), "item"));
}
项目:java-bells    文件:Node.java   
/**
 * Register a listener for item publication events.  This 
 * listener will get called whenever an item is published to 
 * this node.
 * 
 * @param listener The handler for the event
 */
public void addItemEventListener(ItemEventListener listener)
{
    PacketListener conListener = new ItemEventTranslator(listener); 
    itemEventToListenerMap.put(listener, conListener);
    con.addPacketListener(conListener, new EventContentFilter(EventElementType.items.toString(), "item"));
}
项目:telegraph    文件:Node.java   
/**
 * Register a listener for item publication events.  This 
 * listener will get called whenever an item is published to 
 * this node.
 * 
 * @param listener The handler for the event
 */
public void addItemEventListener(ItemEventListener listener)
{
    PacketListener conListener = new ItemEventTranslator(listener); 
    itemEventToListenerMap.put(listener, conListener);
    con.addPacketListener(conListener, new EventContentFilter(EventElementType.items.toString(), "item"));
}
项目:NewCommunication-Android    文件:Node.java   
/**
 * Register a listener for item publication events.  This 
 * listener will get called whenever an item is published to 
 * this node.
 * 
 * @param listener The handler for the event
 */
public void addItemEventListener(ItemEventListener listener)
{
    PacketListener conListener = new ItemEventTranslator(listener); 
    itemEventToListenerMap.put(listener, conListener);
    con.addPacketListener(conListener, new EventContentFilter(EventElementType.items.toString(), "item"));
}