Package ag.ion.bion.officelayer.event

Examples of ag.ion.bion.officelayer.event.IDocumentListener


        documentEventName));

    for (int i = 0, n = documentListenerList.size(); i < n; i++) {
      Object object = documentListenerList.get(i);
      if (object instanceof IDocumentListener) {
        IDocumentListener documentListener = (IDocumentListener) object;

        if (documentEventName.equalsIgnoreCase(IDocument.EVENT_ON_NEW))
          documentListener.onNew(documentEvent);
        else if (documentEventName.equalsIgnoreCase(IDocument.EVENT_ON_LOAD))
          documentListener.onLoad(documentEvent);
        else if (documentEventName.equalsIgnoreCase(IDocument.EVENT_ON_LOAD_DONE))
          documentListener.onLoadDone(documentEvent);
        else if (documentEventName.equalsIgnoreCase(IDocument.EVENT_ON_LOAD_FINISHED))
          documentListener.onLoadFinished(documentEvent);
        else if (documentEventName.equalsIgnoreCase(IDocument.EVENT_ON_SAVE_DONE))
          documentListener.onSaveDone(documentEvent);
        else if (documentEventName.equalsIgnoreCase(IDocument.EVENT_ON_SAVE_FINISHED))
          documentListener.onSaveFinished(documentEvent);
        else if (documentEventName.equalsIgnoreCase(IDocument.EVENT_ON_SAVE))
          documentListener.onSave(documentEvent);
        else if (documentEventName.equalsIgnoreCase(IDocument.EVENT_ON_SAVE_AS))
          documentListener.onSaveAs(documentEvent);
        else if (documentEventName.equalsIgnoreCase(IDocument.EVENT_ON_SAVE_AS_DONE))
          documentListener.onSaveAsDone(documentEvent);
        else if (documentEventName.equalsIgnoreCase(IDocument.EVENT_ON_MODIFY_CHANGED))
          documentListener.onModifyChanged(documentEvent);
        else if (documentEventName.equalsIgnoreCase(IDocument.EVENT_ON_MOUSE_OVER))
          documentListener.onMouseOver(documentEvent);
        else if (documentEventName.equalsIgnoreCase(IDocument.EVENT_ON_MOUSE_OUT))
          documentListener.onMouseOut(documentEvent);
        else if (documentEventName.equalsIgnoreCase(IDocument.EVENT_ON_FOCUS))
          documentListener.onFocus(documentEvent);
        else if (documentEventName.equalsIgnoreCase(IDocument.EVENT_ON_ALPHA_CHAR_INPUT))
          documentListener.onAlphaCharInput(documentEvent);
        else if (documentEventName.equalsIgnoreCase(IDocument.EVENT_ON_NON_ALPHA_CHAR_INPUT))
          documentListener.onNonAlphaCharInput(documentEvent);
        else if (documentEventName.equalsIgnoreCase(IDocument.EVENT_ON_INSERT_DONE))
          documentListener.onInsertDone(documentEvent);
        else if (documentEventName.equalsIgnoreCase(IDocument.EVENT_ON_INSERT_START))
          documentListener.onInsertStart(documentEvent);
        else if (documentEventName.equalsIgnoreCase(IDocument.EVENT_ON_UNLOAD))
          documentListener.onUnload(documentEvent);
      }
    }

  }
View Full Code Here


        getXComponent(), documentEventName));

    for (int i = 0, n = documentListenerList.size(); i < n; i++) {
      Object object = documentListenerList.get(i);
      if (object instanceof IDocumentListener) {
        IDocumentListener documentListener = (IDocumentListener) object;

        if (documentEventName.equalsIgnoreCase(IDocument.EVENT_ON_NEW))
          documentListener.onNew(documentEvent);
        else if (documentEventName
            .equalsIgnoreCase(IDocument.EVENT_ON_LOAD))
          documentListener.onLoad(documentEvent);
        else if (documentEventName
            .equalsIgnoreCase(IDocument.EVENT_ON_LOAD_DONE))
          documentListener.onLoadDone(documentEvent);
        else if (documentEventName
            .equalsIgnoreCase(IDocument.EVENT_ON_LOAD_FINISHED))
          documentListener.onLoadFinished(documentEvent);
        else if (documentEventName
            .equalsIgnoreCase(IDocument.EVENT_ON_SAVE_DONE))
          documentListener.onSaveDone(documentEvent);
        else if (documentEventName
            .equalsIgnoreCase(IDocument.EVENT_ON_SAVE_FINISHED))
          documentListener.onSaveFinished(documentEvent);
        else if (documentEventName
            .equalsIgnoreCase(IDocument.EVENT_ON_SAVE))
          documentListener.onSave(documentEvent);
        else if (documentEventName
            .equalsIgnoreCase(IDocument.EVENT_ON_SAVE_AS))
          documentListener.onSaveAs(documentEvent);
        else if (documentEventName
            .equalsIgnoreCase(IDocument.EVENT_ON_SAVE_AS_DONE))
          documentListener.onSaveAsDone(documentEvent);
        else if (documentEventName
            .equalsIgnoreCase(IDocument.EVENT_ON_MODIFY_CHANGED))
          documentListener.onModifyChanged(documentEvent);
        else if (documentEventName
            .equalsIgnoreCase(IDocument.EVENT_ON_MOUSE_OVER))
          documentListener.onMouseOver(documentEvent);
        else if (documentEventName
            .equalsIgnoreCase(IDocument.EVENT_ON_MOUSE_OUT))
          documentListener.onMouseOut(documentEvent);
        else if (documentEventName
            .equalsIgnoreCase(IDocument.EVENT_ON_FOCUS))
          documentListener.onFocus(documentEvent);
        else if (documentEventName
            .equalsIgnoreCase(IDocument.EVENT_ON_ALPHA_CHAR_INPUT))
          documentListener.onAlphaCharInput(documentEvent);
        else if (documentEventName
            .equalsIgnoreCase(IDocument.EVENT_ON_NON_ALPHA_CHAR_INPUT))
          documentListener.onNonAlphaCharInput(documentEvent);
        else if (documentEventName
            .equalsIgnoreCase(IDocument.EVENT_ON_INSERT_DONE))
          documentListener.onInsertDone(documentEvent);
        else if (documentEventName
            .equalsIgnoreCase(IDocument.EVENT_ON_INSERT_START))
          documentListener.onInsertStart(documentEvent);
        else if (documentEventName
            .equalsIgnoreCase(IDocument.EVENT_ON_UNLOAD))
          documentListener.onUnload(documentEvent);
      }
    }

  }
View Full Code Here

TOP

Related Classes of ag.ion.bion.officelayer.event.IDocumentListener

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.