org.eclipse.nebula.widgets.nattable.test.integration
Class SWTUtils

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

public class SWTUtils
extends Object


Field Summary
static int LEFT_MOUSE_BUTTON
           
static int NO_CLICK
           
static int ONE_CLICK
           
static int RIGHT_MOUSE_BUTTON
           
 
Constructor Summary
SWTUtils()
           
 
Method Summary
static org.eclipse.swt.widgets.Event getLeftClickEvent(int x, int y, int stateMask, org.eclipse.swt.widgets.Widget nattable)
           
static boolean isRunningOnUnix()
          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 keyEventWithChar(char c)
           
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, org.eclipse.swt.widgets.Control control)
           
static void pressKeyOnControl(int keyCode, int stateMask, 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 Detail

NO_CLICK

public static final int NO_CLICK
See Also:
Constant Field Values

LEFT_MOUSE_BUTTON

public static final int LEFT_MOUSE_BUTTON
See Also:
Constant Field Values

RIGHT_MOUSE_BUTTON

public static final int RIGHT_MOUSE_BUTTON
See Also:
Constant Field Values

ONE_CLICK

public static final int ONE_CLICK
See Also:
Constant Field Values
Constructor Detail

SWTUtils

public SWTUtils()
Method Detail

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.



Copyright © 2015. All rights reserved.