|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdsto.dfc.swt.DFC_SWT
public final class DFC_SWT
General DFC additions to SWT.
Field Summary | |
---|---|
static org.eclipse.swt.graphics.RGB |
BLACK
|
static org.eclipse.swt.graphics.RGB |
BLUE
|
static org.eclipse.swt.graphics.RGB |
CYAN
|
static org.eclipse.swt.graphics.RGB |
DARK_GRAY
|
static org.eclipse.swt.graphics.RGB |
GRAY
|
static org.eclipse.swt.graphics.RGB |
GREEN
|
static org.eclipse.swt.graphics.RGB |
LIGHT_GRAY
|
static org.eclipse.swt.graphics.RGB |
MAGENTA
|
static org.eclipse.swt.graphics.RGB |
ORANGE
|
static org.eclipse.swt.graphics.RGB |
PINK
|
static org.eclipse.swt.graphics.RGB |
RED
|
static org.eclipse.swt.graphics.RGB |
WHITE
|
static org.eclipse.swt.graphics.RGB |
YELLOW
|
Method Summary | |
---|---|
static void |
clickButton(org.eclipse.swt.widgets.Button button)
Simulate a button click event. |
static int |
getLeftButton()
|
static int |
getMiddleButton()
|
static int |
getRightButton()
|
static int |
getTextUnitHeight(org.eclipse.swt.widgets.Control control)
Get the basic text height for a given control (ie the height of a character in the current font). |
static org.eclipse.swt.graphics.Point |
getTextUnitSize(org.eclipse.swt.widgets.Control control)
Get the basic text unit size for a given control (ie the average size of a character in the current font). |
static int |
getTextUnitWidth(org.eclipse.swt.widgets.Control control)
Get the basic text width for a given control (ie the average size of a character in the current font). |
static org.eclipse.swt.graphics.RGB |
HSBtoRGB(float[] hsb)
|
static boolean |
isLeftButton(org.eclipse.swt.widgets.Event e)
|
static boolean |
isLeftButton(org.eclipse.swt.events.MouseEvent e)
Method isMiddleButton. |
static boolean |
isMiddleButton(org.eclipse.swt.widgets.Event e)
|
static boolean |
isMiddleButton(org.eclipse.swt.events.MouseEvent e)
Method isMiddleButton. |
static boolean |
isRightButton(org.eclipse.swt.widgets.Event e)
|
static boolean |
isRightButton(org.eclipse.swt.events.MouseEvent e)
Method isMiddleButton. |
static int |
messageBox(org.eclipse.swt.widgets.Shell shell,
int style,
String title,
String message)
Shortcut to do the SWT MessageBox dance slightly more concisely. |
static int |
messageBox(org.eclipse.swt.widgets.Shell shell,
int style,
String title,
String message,
Throwable ex)
Shortcut to do the SWT MessageBox dance slightly more concisely. |
static float[] |
RGBtoHSB(org.eclipse.swt.graphics.RGB rgb)
|
static void |
setEnabled(org.eclipse.swt.widgets.Control control,
boolean enabled)
Recursively set a tree of controls enabled state. |
static void |
setMargins(org.eclipse.swt.custom.StyledText styledText,
int leftMargin,
int topMargin,
int rightMargin,
int bottomMargin)
For some reason StyledText in SWT 3.2 has a non-public setMargins () method. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final org.eclipse.swt.graphics.RGB WHITE
public static final org.eclipse.swt.graphics.RGB LIGHT_GRAY
public static final org.eclipse.swt.graphics.RGB GRAY
public static final org.eclipse.swt.graphics.RGB DARK_GRAY
public static final org.eclipse.swt.graphics.RGB BLACK
public static final org.eclipse.swt.graphics.RGB RED
public static final org.eclipse.swt.graphics.RGB PINK
public static final org.eclipse.swt.graphics.RGB ORANGE
public static final org.eclipse.swt.graphics.RGB YELLOW
public static final org.eclipse.swt.graphics.RGB GREEN
public static final org.eclipse.swt.graphics.RGB MAGENTA
public static final org.eclipse.swt.graphics.RGB CYAN
public static final org.eclipse.swt.graphics.RGB BLUE
Method Detail |
---|
public static boolean isMiddleButton(org.eclipse.swt.events.MouseEvent e)
e
-
public static boolean isMiddleButton(org.eclipse.swt.widgets.Event e)
public static boolean isLeftButton(org.eclipse.swt.events.MouseEvent e)
e
-
public static boolean isLeftButton(org.eclipse.swt.widgets.Event e)
public static boolean isRightButton(org.eclipse.swt.events.MouseEvent e)
e
-
public static boolean isRightButton(org.eclipse.swt.widgets.Event e)
public static int getLeftButton()
public static int getMiddleButton()
public static int getRightButton()
public static org.eclipse.swt.graphics.Point getTextUnitSize(org.eclipse.swt.widgets.Control control)
public static int getTextUnitWidth(org.eclipse.swt.widgets.Control control)
public static int getTextUnitHeight(org.eclipse.swt.widgets.Control control)
public static void setEnabled(org.eclipse.swt.widgets.Control control, boolean enabled)
public static float[] RGBtoHSB(org.eclipse.swt.graphics.RGB rgb)
public static org.eclipse.swt.graphics.RGB HSBtoRGB(float[] hsb)
public static int messageBox(org.eclipse.swt.widgets.Shell shell, int style, String title, String message)
shell
- The parent shell.style
- The dialog style.title
- The dialog title.message
- The message to display.
MessageBox.open()
.public static int messageBox(org.eclipse.swt.widgets.Shell shell, int style, String title, String message, Throwable ex)
shell
- The parent shell.style
- The dialog style.title
- The dialog title.message
- The message to display.ex
- The exception that triggered the dialog. The message
will be extended with an error line.
MessageBox.open()
.public static void setMargins(org.eclipse.swt.custom.StyledText styledText, int leftMargin, int topMargin, int rightMargin, int bottomMargin)
styledText
- leftMargin
- topMargin
- rightMargin
- bottomMargin
- public static void clickButton(org.eclipse.swt.widgets.Button button)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |