Examples of XEventListener


Examples of com.sun.star.lang.XEventListener

        res &= localRes;
        assure("Dictionary hasn't been removed properly", localRes);

        XComponent dicList = (XComponent) UnoRuntime.queryInterface(
                                     XComponent.class, xCList);
        XEventListener listen = new EventListener();
        dicList.addEventListener(listen);
        dicList.dispose();
        assure("dispose didn't work", disposed);
        dicList.removeEventListener(listen);
View Full Code Here

Examples of com.sun.star.lang.XEventListener

  private void notifyListeners() {
    EventObject eventObject = new EventObject(this);

    Enumeration elements = _listeners.elements();
    while(elements.hasMoreElements()) {
      XEventListener xEventListener = (XEventListener)elements.nextElement();

      try {
        xEventListener.disposing(eventObject);
      }
      catch(com.sun.star.uno.RuntimeException runtimeException) {
        // we are here not interested in any exceptions
      }
    }
View Full Code Here

Examples of com.sun.star.lang.XEventListener

        // fire events
        EventObject evt = new EventObject( this );
        Enumeration eventListener = m_eventListener.elements();
        while (eventListener.hasMoreElements())
        {
            XEventListener listener = (XEventListener)eventListener.nextElement();
            listener.disposing( evt );
        }
        m_eventListener.removeAllElements();
       
        XComponent tdmgr = null;
        // dispose values, then service manager, then typdescription manager
View Full Code Here

Examples of com.sun.star.lang.XEventListener

            while( aIt.hasNext() )
            {
                try
                {
                    Object o= aIt.next();
                    XEventListener evtListener= (XEventListener) UnoRuntime.queryInterface(
                    XEventListener.class, o);
                    if( evtListener != null )
                        evtListener.disposing( evt );
                }
                catch ( RuntimeException e)
                {
                    // be robust, if e.g. a remote bridge has disposed already.
                    // there is no way, to delegate the error to the caller :o(.
View Full Code Here

Examples of com.sun.star.lang.XEventListener

    {
        if (eventListener != null) {
            java.util.Enumeration enumer = eventListener.elements();
           
            while (enumer.hasMoreElements()) {
                XEventListener listener = (XEventListener) enumer.nextElement();
                listener.disposing(new com.sun.star.lang.EventObject(this));
            }
        }
       
        eventListener.removeAllElements();
        factoriesByServiceNames.clear();       
View Full Code Here

Examples of com.sun.star.lang.XEventListener

    {
        if (eventListener != null) {
            java.util.Enumeration enumer = eventListener.elements();
           
            while (enumer.hasMoreElements()) {
                XEventListener listener = (XEventListener) enumer.nextElement();
                listener.disposing(new com.sun.star.lang.EventObject(this));
            }
        }
       
        eventListener.removeAllElements();
        factoriesByServiceNames.clear();       
View Full Code Here

Examples of com.sun.star.lang.XEventListener

        // fire events
        EventObject evt = new EventObject( this );
        Enumeration eventListener = m_eventListener.elements();
        while (eventListener.hasMoreElements())
        {
            XEventListener listener = (XEventListener)eventListener.nextElement();
            listener.disposing( evt );
        }
        m_eventListener.removeAllElements();
       
        XComponent tdmgr = null;
        // dispose values, then service manager, then typdescription manager
View Full Code Here

Examples of com.sun.star.lang.XEventListener

    {
        if (eventListener != null) {
            java.util.Enumeration enumer = eventListener.elements();
           
            while (enumer.hasMoreElements()) {
                XEventListener listener = (XEventListener) enumer.nextElement();
                listener.disposing(new com.sun.star.lang.EventObject(this));
            }
        }
       
        eventListener.removeAllElements();
        factoriesByServiceNames.clear();       
View Full Code Here

Examples of com.sun.star.lang.XEventListener

            while( aIt.hasNext() )
            {
                try
                {
                    Object o= aIt.next();
                    XEventListener evtListener= UnoRuntime.queryInterface(
                    XEventListener.class, o);
                    if( evtListener != null )
                        evtListener.disposing( evt );
                }
                catch ( RuntimeException e)
                {
                    // be robust, if e.g. a remote bridge has disposed already.
                    // there is no way, to delegate the error to the caller :o(.
View Full Code Here

Examples of com.sun.star.lang.XEventListener

  private void notifyListeners() {
    EventObject eventObject = new EventObject(this);

    Enumeration elements = _listeners.elements();
    while(elements.hasMoreElements()) {
      XEventListener xEventListener = (XEventListener)elements.nextElement();

      try {
        xEventListener.disposing(eventObject);
      }
      catch(com.sun.star.uno.RuntimeException runtimeException) {
        // we are here not interested in any exceptions
      }
    }
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.