Class NativeRenderEvent

java.lang.Object
com._1c.g5.v8.dt.form.model.NativeRenderEvent

public class NativeRenderEvent extends Object
Native render event container and handler for interactions with the form
  • Constructor Details

    • NativeRenderEvent

      public NativeRenderEvent()
      Empty render event constructor
    • NativeRenderEvent

      public NativeRenderEvent(NativeRenderEvent.NativeRenderEventType type, long windowHandle, int startX, int startY, int endX, int endY)
      Render event constructor for the specified window
      Parameters:
      type - event type, cannot be null
      windowHandle - active event window handle
      startX - X position of cursor in creating event
      startY - Y position of cursor in creating event
      endX - X end position of cursor in creating event
      endY - Y end position of cursor in creating event
  • Method Details

    • setType

      public void setType(NativeRenderEvent.NativeRenderEventType type)
      Sets event type
      Parameters:
      type - the specified event type, cannot be null
    • getType

      Gets actual event type
      Returns:
      actual event type, never null
    • windowHandle

      public long windowHandle()
      Active window handle for this event
      Returns:
      active window handle (HWND) or 0 if no active event window was set for the current event
    • getData

      public long getData()
      Gets event data as long number created by combine 4 short value of begin and end position of event
      Returns:
      event data as long number created by combine 4 short value of begin and end position of event