Interface IDwcjBBjBridge


public interface IDwcjBBjBridge
  • Method Summary

    Modifier and Type
    Method
    Description
    call(String pgm, ArrayList<BBjVar> args)
     
    create an instance of a BBj-side object instance, mostly custom objects
    com.basis.bbj.proxies.sysgui.BBjControl
    createWidget(String classname, com.basis.bbj.proxies.sysgui.BBjWindow wnd)
    delegates the creation of a widget, mostly BBj Plug-Ins written as a BBj Custom Class extending BBjWidget The BBj side uses the constructor that takes a single BBjChildWindow to instantiate the widget
    com.basis.startup.type.CustomObject
    getEventProxy(Object obj, String method)
    create and register an event proxy that defers BBj-side callback invocations to the Java DWCJ side
    com.basis.startup.type.CustomObject
    getEventProxy(Object obj, String method, String eventclassname)
    create and register an event proxy that defers BBj-side callback invocations to the Java DWCJ side
    invokeMethod(Object object, String method, ArrayList args)
    invoke a method of a BBj-side object instance, mostly custom objects
    int
    msgbox(String msg, int options, String title)
    invoke the BBj-side MSGBOX function
  • Method Details

    • getEventProxy

      com.basis.startup.type.CustomObject getEventProxy(Object obj, String method)
      create and register an event proxy that defers BBj-side callback invocations to the Java DWCJ side
      Parameters:
      obj - - the DWCJ-side object instance to receive the event
      method - - the method name to receive the callback
      Returns:
      the instance of the event proxy on the BBj side that receives the BBj events (which exposes "onEvent" for the BBj side)
    • getEventProxy

      com.basis.startup.type.CustomObject getEventProxy(Object obj, String method, String eventclassname)
      create and register an event proxy that defers BBj-side callback invocations to the Java DWCJ side
      Parameters:
      obj - - the DWCJ-side object instance to receive the event
      method - - the method name to receive the callback
      eventclassname - - the BBj event class type (used for BBj Plug-Ins that define custom event payload objects)
      Returns:
      the instance of the event proxy on the BBj side that receives the BBj events (which exposes "onEvent" for the BBj side)
    • createWidget

      com.basis.bbj.proxies.sysgui.BBjControl createWidget(String classname, com.basis.bbj.proxies.sysgui.BBjWindow wnd)
      delegates the creation of a widget, mostly BBj Plug-Ins written as a BBj Custom Class extending BBjWidget The BBj side uses the constructor that takes a single BBjChildWindow to instantiate the widget
      Parameters:
      classname - The classname in the style ::filename.bbj::classname
      wnd - Handle to the window where the widget needs to be created
      Returns:
      the BBjControl returned by the BBj side constructor
    • msgbox

      int msgbox(String msg, int options, String title)
      invoke the BBj-side MSGBOX function
      Parameters:
      msg - the Message
      options - the options, see BBj MSGBOX docs
      title - the title
      Returns:
    • invokeMethod

      Object invokeMethod(Object object, String method, ArrayList args)
      invoke a method of a BBj-side object instance, mostly custom objects
      Parameters:
      object - the object instance
      method - the method name
      args - the arguments as a List
      Returns:
    • createInstance

      Object createInstance(String classname)
      create an instance of a BBj-side object instance, mostly custom objects
      Parameters:
      classname - the method name
      args - the arguments to the constructor as a List
      Returns:
      the object instance
    • call

      ArrayList<BBjVar> call(String pgm, ArrayList<BBjVar> args)