Examples of UpdateListener


Examples of org.apache.tapestry5.services.UpdateListener

public class UpdateListenerHubImplTest extends TestBase
{
    @Test
    public void add_listener_and_invoke() throws Exception
    {
        UpdateListener listener = newMock(UpdateListener.class);

        UpdateListenerHub hub = new UpdateListenerHubImpl();

        listener.checkForUpdates();

        replay();

        hub.addUpdateListener(listener);
View Full Code Here

Examples of org.exist.storage.UpdateListener

   * The method <code>registerUpdateListener</code>
   *
   */
  protected void registerUpdateListener() {
    if (listener == null) {
      listener = new UpdateListener() {
        public void documentUpdated(DocumentImpl document, int event) {
          cached = null;
          if (document == null || event == UpdateListener.ADD
              || event == UpdateListener.REMOVE) {
            // clear all
View Full Code Here

Examples of org.exist.storage.UpdateListener

        return args;
    }

    protected void registerUpdateListener() {
        if (listener == null) {
            listener = new UpdateListener() {

                public void documentUpdated(DocumentImpl document, int event) {
                    //Nothing to do (previously was cache management)
                }
View Full Code Here

Examples of org.exist.storage.UpdateListener

        return Type.NODE;
    }

    protected void registerUpdateListener() {
        if (listener == null) {
            listener = new UpdateListener() {
                public void documentUpdated(DocumentImpl document, int event) {
                    // clear all
                    cachedDocs = null;
                    cached = null;
                }
View Full Code Here

Examples of org.exist.storage.UpdateListener

        return result;
    }

    protected void registerUpdateListener() {
        if (listener == null) {
            listener = new UpdateListener() {

                public void documentUpdated(DocumentImpl document, int event) {
                    // clear all
                }
View Full Code Here

Examples of org.exist.storage.UpdateListener


        public void nodeMoved( NodeId oldNodeId, StoredNode newNode )
        {
            for( int i = 0; i < listeners.size(); i++ ) {
                final UpdateListener listener = (UpdateListener)listeners.get( i );

                if( listener != null ) {
                    listener.nodeMoved( oldNodeId, newNode );
                }
            }
        }
View Full Code Here

Examples of org.exist.storage.UpdateListener

        return true;
    }
   
    protected void registerUpdateListener() {
        if (listener == null) {
            listener = new UpdateListener() {
                public void documentUpdated(DocumentImpl document, int event) {
                    // clear all
                    cachedArgs = null;
                    cached = null;
                    cachedDocs = null;
View Full Code Here

Examples of prefuse.util.UpdateListener

        addKeyListener(iec);
       
        registerDefaultCommands();
       
        // invalidate the display when the filter changes
        m_predicate.addExpressionListener(new UpdateListener() {
            public void update(Object src) { damageReport(); }
        });
       
        setVisualization(visualization);
        setPredicate(predicate);
View Full Code Here

Examples of prefuse.util.UpdateListener

        update.add(yaxis);
        update.add(ylabels);
        update.add(new RepaintAction());
        vis.putAction("update", update);
       
        UpdateListener lstnr = new UpdateListener() {
            public void update(Object src) {
                vis.run("update");
            }
        };
        filter.addExpressionListener(lstnr);
View Full Code Here

Examples of prefuse.util.UpdateListener

        addKeyListener(iec);
       
        registerDefaultCommands();
       
        // invalidate the display when the filter changes
        m_predicate.addExpressionListener(new UpdateListener() {
            public void update(Object src) { damageReport(); }
        });
       
        setVisualization(visualization);
        setPredicate(predicate);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.