Package ag.ion.bion.officelayer.internal.event

Examples of ag.ion.bion.officelayer.internal.event.DocumentListenerWrapper


    if (xComponent == null)
      throw new IllegalArgumentException("The submitted OpenOffice.org XComponent interface is not valid.");
    this.xComponent = xComponent;
    this.initialProperties = initialProperties;

    documentListenerWrapper = new DocumentListenerWrapper(new DocumentListener());
    addEventListener(documentListenerWrapper);
  }
View Full Code Here


        documentListeners = new Hashtable();     
      if(eventBroadcaster == null) {
        Object globalEventBroadcaster = officeConnection.getXMultiServiceFactory().createInstance( "com.sun.star.frame.GlobalEventBroadcaster" );
        eventBroadcaster = (XEventBroadcaster) UnoRuntime.queryInterface(XEventBroadcaster.class, globalEventBroadcaster);
      }
      DocumentListenerWrapper documentListenerWrapper = new DocumentListenerWrapper(documentListener)
      eventBroadcaster.addEventListener(documentListenerWrapper)
      documentListeners.put(documentListener, documentListenerWrapper);
    }
    catch (Exception exception) {
      throw new DesktopException(exception);
View Full Code Here

   */
  public void removeDocumentListener(IDocumentListener documentListener) {
    if(documentListener == null)
      return;
   
    DocumentListenerWrapper documentListenerWrapper = (DocumentListenerWrapper)documentListeners.get(documentListener);
    if(documentListenerWrapper != null)
      eventBroadcaster.removeEventListener(documentListenerWrapper);
 
View Full Code Here

                "com.sun.star.frame.GlobalEventBroadcaster");
        eventBroadcaster = (XEventBroadcaster) UnoRuntime
            .queryInterface(XEventBroadcaster.class,
                globalEventBroadcaster);
      }
      DocumentListenerWrapper documentListenerWrapper = new DocumentListenerWrapper(
          documentListener);
      eventBroadcaster.addEventListener(documentListenerWrapper);
      documentListeners.put(documentListener, documentListenerWrapper);
    } catch (Exception exception) {
      throw new DesktopException(exception);
View Full Code Here

   */
  public void removeDocumentListener(IDocumentListener documentListener) {
    if (documentListener == null)
      return;

    DocumentListenerWrapper documentListenerWrapper = (DocumentListenerWrapper) documentListeners
        .get(documentListener);
    if (documentListenerWrapper != null)
      eventBroadcaster.removeEventListener(documentListenerWrapper);
  }
View Full Code Here

      throw new IllegalArgumentException(
          "The submitted OpenOffice.org XComponent interface is not valid.");
    this.xComponent = xComponent;
    this.initialProperties = initialProperties;

    documentListenerWrapper = new DocumentListenerWrapper(
        new DocumentListener());
    addEventListener(documentListenerWrapper);
  }
View Full Code Here

TOP

Related Classes of ag.ion.bion.officelayer.internal.event.DocumentListenerWrapper

Copyright © 2018 www.massapicom. 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.