java.lang.Object
org.eclipse.nebula.widgets.nattable.test.integration.SWTUtils

public class SWTUtils extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.eclipse.swt.widgets.Event
    getLeftClickEvent(int x, int y, int stateMask, org.eclipse.swt.widgets.Widget nattable)
     
    static boolean
    Some of the tests do not run on Unix, due to issues with Xvfb.
    static org.eclipse.swt.widgets.Event
    keyEvent(int keyCode)
     
    static org.eclipse.swt.widgets.Event
     
    static org.eclipse.swt.widgets.Event
    keyEventWithModifier(int keyCode, int stateMask)
     
    static void
    leftClick(int x, int y, int stateMask, org.eclipse.swt.widgets.Widget nattable)
     
    static void
    leftClickOnCombo(int x, int y, int stateMask, org.eclipse.swt.widgets.Control control)
     
    static void
    pressCharKey(char c, org.eclipse.swt.widgets.Widget natTable)
     
    static void
    pressKey(int keyCode, int stateMask, org.eclipse.swt.widgets.Widget natTable)
     
    static void
    pressKey(int keyCode, org.eclipse.swt.widgets.Widget natTable)
     
    static void
    pressKeyOnControl(int keyCode, int stateMask, org.eclipse.swt.widgets.Control control)
     
    static void
    pressKeyOnControl(int keyCode, org.eclipse.swt.widgets.Control control)
     
    static void
    selectInCombo(int x, int y, int stateMask, org.eclipse.swt.widgets.Control control)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • SWTUtils

      public SWTUtils()
  • Method Details

    • leftClickOnCombo

      public static void leftClickOnCombo(int x, int y, int stateMask, org.eclipse.swt.widgets.Control control)
    • selectInCombo

      public static void selectInCombo(int x, int y, int stateMask, org.eclipse.swt.widgets.Control control)
    • leftClick

      public static void leftClick(int x, int y, int stateMask, org.eclipse.swt.widgets.Widget nattable)
    • getLeftClickEvent

      public static org.eclipse.swt.widgets.Event getLeftClickEvent(int x, int y, int stateMask, org.eclipse.swt.widgets.Widget nattable)
    • pressCharKey

      public static void pressCharKey(char c, org.eclipse.swt.widgets.Widget natTable)
    • pressKey

      public static void pressKey(int keyCode, org.eclipse.swt.widgets.Widget natTable)
    • pressKey

      public static void pressKey(int keyCode, int stateMask, org.eclipse.swt.widgets.Widget natTable)
    • pressKeyOnControl

      public static void pressKeyOnControl(int keyCode, org.eclipse.swt.widgets.Control control)
    • pressKeyOnControl

      public static void pressKeyOnControl(int keyCode, int stateMask, org.eclipse.swt.widgets.Control control)
    • keyEvent

      public static org.eclipse.swt.widgets.Event keyEvent(int keyCode)
    • keyEventWithModifier

      public static org.eclipse.swt.widgets.Event keyEventWithModifier(int keyCode, int stateMask)
    • keyEventWithChar

      public static org.eclipse.swt.widgets.Event keyEventWithChar(char c)
    • isRunningOnUnix

      public static boolean isRunningOnUnix()
      Some of the tests do not run on Unix, due to issues with Xvfb. This check helps skipping those tests.
      Returns:
      true if we are running on a Unix system.