Example #1
0
  @Override
  public void onConnection(
      IDispatch app, ext_ConnectMode connectMode, IDispatch addin, ByRef<Object[]> custom)
      throws ComException {
    applicationObject = app.as(applicationClass);
    applicationObject.withEvents(this);

    // Put this object into the COMAddIn wrapper supplied by the Office
    // application.
    // This is required to support folder views in Outlook.
    COMAddInImpl coAddin = addin.as(COMAddInImpl.class);
    coAddin.setObject(this);
  }
Example #2
0
 public static final void onKeyPress(
     final IDispatch __joa__disp, final com.wilutions.mslib.msforms.ReturnInteger KeyAscii)
     throws ComException {
   assert (__joa__disp != null);
   assert (KeyAscii != null);
   __joa__disp._fireEvent(ScrollbarEvents.class, (l) -> l.onKeyPress(KeyAscii));
 }
Example #3
0
 public static final void onKeyDown(
     final IDispatch __joa__disp,
     final com.wilutions.mslib.msforms.ReturnInteger KeyCode,
     final Short Shift)
     throws ComException {
   assert (__joa__disp != null);
   assert (KeyCode != null);
   assert (Shift != null);
   __joa__disp._fireEvent(ScrollbarEvents.class, (l) -> l.onKeyDown(KeyCode, Shift));
 }
 public static final void onOnItemsModified(
     final IDispatch __joa__disp,
     final com.wilutions.mslib.uccollaborationlib.IPreviousConversationsManager _eventSource,
     final com.wilutions.mslib.uccollaborationlib.IPreviousConversationBatchEventData _eventData)
     throws ComException {
   assert (__joa__disp != null);
   assert (_eventSource != null);
   assert (_eventData != null);
   __joa__disp._fireEvent(
       _IPreviousConversationsManagerEvents.class,
       (l) -> l.onOnItemsModified(_eventSource, _eventData));
 }
Example #5
0
 public static final void onBeforeDragOver(
     final IDispatch __joa__disp,
     final com.wilutions.mslib.msforms.ReturnBoolean Cancel,
     final com.wilutions.mslib.msforms.DataObject Data,
     final Float X,
     final Float Y,
     final com.wilutions.mslib.msforms.fmDragState DragState,
     final com.wilutions.mslib.msforms.ReturnEffect Effect,
     final Short Shift)
     throws ComException {
   assert (__joa__disp != null);
   assert (Cancel != null);
   assert (Data != null);
   assert (X != null);
   assert (Y != null);
   assert (DragState != null);
   assert (Effect != null);
   assert (Shift != null);
   __joa__disp._fireEvent(
       ScrollbarEvents.class,
       (l) -> l.onBeforeDragOver(Cancel, Data, X, Y, DragState, Effect, Shift));
 }
Example #6
0
 public static final void onError(
     final IDispatch __joa__disp,
     final Short Number,
     final com.wilutions.mslib.msforms.ReturnString Description,
     final Integer SCode,
     final String Source,
     final String HelpFile,
     final Integer HelpContext,
     final com.wilutions.mslib.msforms.ReturnBoolean CancelDisplay)
     throws ComException {
   assert (__joa__disp != null);
   assert (Number != null);
   assert (Description != null);
   assert (SCode != null);
   assert (Source != null);
   assert (HelpFile != null);
   assert (HelpContext != null);
   assert (CancelDisplay != null);
   __joa__disp._fireEvent(
       ScrollbarEvents.class,
       (l) -> l.onError(Number, Description, SCode, Source, HelpFile, HelpContext, CancelDisplay));
 }
Example #7
0
 public static final void onChange(final IDispatch __joa__disp) throws ComException {
   assert (__joa__disp != null);
   __joa__disp._fireEvent(ScrollbarEvents.class, (l) -> l.onChange());
 }