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

项目:Smack    文件:Node.java   
/**
 * Register an listener for item delete events.  This listener
 * gets called whenever an item is deleted from the node.
 * 
 * @param listener The handler for the event
 */
public void addItemDeleteListener(ItemDeleteListener listener)
{
    StanzaListener delListener = new ItemDeleteTranslator(listener); 
    itemDeleteToListenerMap.put(listener, delListener);
    EventContentFilter deleteItem = new EventContentFilter(EventElementType.items.toString(), "retract");
    EventContentFilter purge = new EventContentFilter(EventElementType.purge.toString());

    con.addSyncStanzaListener(delListener, new OrFilter(deleteItem, purge));
}
项目:Smack    文件:Node.java   
/**
 * Unregister a listener for item delete events.
 * 
 * @param listener The handler to unregister
 */
public void removeItemDeleteListener(ItemDeleteListener listener)
{
    StanzaListener conListener = itemDeleteToListenerMap .remove(listener);

    if (conListener != null)
        con.removeSyncStanzaListener(conListener);
}
项目:EIM    文件:Node.java   
/**
 * Register an listener for item delete events.  This listener
 * gets called whenever an item is deleted from the node.
 * 
 * @param listener The handler for the event
 */
public void addItemDeleteListener(ItemDeleteListener listener)
{
    PacketListener delListener = new ItemDeleteTranslator(listener); 
    itemDeleteToListenerMap.put(listener, delListener);
    EventContentFilter deleteItem = new EventContentFilter(EventElementType.items.toString(), "retract");
    EventContentFilter purge = new EventContentFilter(EventElementType.purge.toString());

    con.addPacketListener(delListener, new OrFilter(deleteItem, purge));
}
项目:EIM    文件:Node.java   
/**
 * Unregister a listener for item delete events.
 * 
 * @param listener The handler to unregister
 */
public void removeItemDeleteListener(ItemDeleteListener listener)
{
    PacketListener conListener = itemDeleteToListenerMap .remove(listener);

    if (conListener != null)
        con.removePacketListener(conListener);
}
项目:androidPN-client.    文件:Node.java   
/**
 * Register an listener for item delete events.  This listener
 * gets called whenever an item is deleted from the node.
 * 
 * @param listener The handler for the event
 */
public void addItemDeleteListener(ItemDeleteListener listener)
{
    PacketListener delListener = new ItemDeleteTranslator(listener); 
    itemDeleteToListenerMap.put(listener, delListener);
    EventContentFilter deleteItem = new EventContentFilter(EventElementType.items.toString(), "retract");
    EventContentFilter purge = new EventContentFilter(EventElementType.purge.toString());

    con.addPacketListener(delListener, new OrFilter(deleteItem, purge));
}
项目:androidPN-client.    文件:Node.java   
/**
 * Unregister a listener for item delete events.
 * 
 * @param listener The handler to unregister
 */
public void removeItemDeleteListener(ItemDeleteListener listener)
{
    PacketListener conListener = itemDeleteToListenerMap .remove(listener);

    if (conListener != null)
        con.removePacketListener(conListener);
}
项目:xmppsupport_v2    文件:Node.java   
/**
 * Register an listener for item delete events. This listener gets called
 * whenever an item is deleted from the node.
 * 
 * @param listener
 *            The handler for the event
 */
public void addItemDeleteListener(ItemDeleteListener listener) {
    PacketListener delListener = new ItemDeleteTranslator(listener);
    itemDeleteToListenerMap.put(listener, delListener);
    EventContentFilter deleteItem = new EventContentFilter(
            EventElementType.items.toString(), "retract");
    EventContentFilter purge = new EventContentFilter(
            EventElementType.purge.toString());

    con.addPacketListener(delListener, new OrFilter(deleteItem, purge));
}
项目:xmppsupport_v2    文件:Node.java   
/**
 * Unregister a listener for item delete events.
 * 
 * @param listener
 *            The handler to unregister
 */
public void removeItemDeleteListener(ItemDeleteListener listener) {
    PacketListener conListener = itemDeleteToListenerMap.remove(listener);

    if (conListener != null)
        con.removePacketListener(conListener);
}
项目:java-bells    文件:Node.java   
/**
 * Register an listener for item delete events.  This listener
 * gets called whenever an item is deleted from the node.
 * 
 * @param listener The handler for the event
 */
public void addItemDeleteListener(ItemDeleteListener listener)
{
    PacketListener delListener = new ItemDeleteTranslator(listener); 
    itemDeleteToListenerMap.put(listener, delListener);
    EventContentFilter deleteItem = new EventContentFilter(EventElementType.items.toString(), "retract");
    EventContentFilter purge = new EventContentFilter(EventElementType.purge.toString());

    con.addPacketListener(delListener, new OrFilter(deleteItem, purge));
}
项目:java-bells    文件:Node.java   
/**
 * Unregister a listener for item delete events.
 * 
 * @param listener The handler to unregister
 */
public void removeItemDeleteListener(ItemDeleteListener listener)
{
    PacketListener conListener = itemDeleteToListenerMap .remove(listener);

    if (conListener != null)
        con.removePacketListener(conListener);
}
项目:telegraph    文件:Node.java   
/**
 * Register an listener for item delete events.  This listener
 * gets called whenever an item is deleted from the node.
 * 
 * @param listener The handler for the event
 */
public void addItemDeleteListener(ItemDeleteListener listener)
{
    PacketListener delListener = new ItemDeleteTranslator(listener); 
    itemDeleteToListenerMap.put(listener, delListener);
    EventContentFilter deleteItem = new EventContentFilter(EventElementType.items.toString(), "retract");
    EventContentFilter purge = new EventContentFilter(EventElementType.purge.toString());

    con.addPacketListener(delListener, new OrFilter(deleteItem, purge));
}
项目:telegraph    文件:Node.java   
/**
 * Unregister a listener for item delete events.
 * 
 * @param listener The handler to unregister
 */
public void removeItemDeleteListener(ItemDeleteListener listener)
{
    PacketListener conListener = itemDeleteToListenerMap .remove(listener);

    if (conListener != null)
        con.removePacketListener(conListener);
}
项目:NewCommunication-Android    文件:Node.java   
/**
 * Register an listener for item delete events.  This listener
 * gets called whenever an item is deleted from the node.
 * 
 * @param listener The handler for the event
 */
public void addItemDeleteListener(ItemDeleteListener listener)
{
    PacketListener delListener = new ItemDeleteTranslator(listener); 
    itemDeleteToListenerMap.put(listener, delListener);
    EventContentFilter deleteItem = new EventContentFilter(EventElementType.items.toString(), "retract");
    EventContentFilter purge = new EventContentFilter(EventElementType.purge.toString());

    con.addPacketListener(delListener, new OrFilter(deleteItem, purge));
}
项目:NewCommunication-Android    文件:Node.java   
/**
 * Unregister a listener for item delete events.
 * 
 * @param listener The handler to unregister
 */
public void removeItemDeleteListener(ItemDeleteListener listener)
{
    PacketListener conListener = itemDeleteToListenerMap .remove(listener);

    if (conListener != null)
        con.removePacketListener(conListener);
}
项目:Smack    文件:Node.java   
public ItemDeleteTranslator(ItemDeleteListener eventListener)
{
    listener = eventListener;
}
项目:EIM    文件:Node.java   
public ItemDeleteTranslator(ItemDeleteListener eventListener)
{
    listener = eventListener;
}
项目:androidPN-client.    文件:Node.java   
public ItemDeleteTranslator(ItemDeleteListener eventListener)
{
    listener = eventListener;
}
项目:xmppsupport_v2    文件:Node.java   
public ItemDeleteTranslator(ItemDeleteListener eventListener) {
    listener = eventListener;
}
项目:java-bells    文件:Node.java   
public ItemDeleteTranslator(ItemDeleteListener eventListener)
{
    listener = eventListener;
}
项目:telegraph    文件:Node.java   
public ItemDeleteTranslator(ItemDeleteListener eventListener)
{
    listener = eventListener;
}
项目:NewCommunication-Android    文件:Node.java   
public ItemDeleteTranslator(ItemDeleteListener eventListener)
{
    listener = eventListener;
}