|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.emf.ecp.view.spi.table.celleditor.rcp.NativeWidgetHelper
public final class NativeWidgetHelper
Util class for faking native widgets.
Nested Class Summary | |
---|---|
static class |
NativeWidgetHelper.CheckBoxState
Enum describing the state of a checkbox. |
Method Summary | |
---|---|
static org.eclipse.swt.graphics.Image |
getCheckBoxImage(org.eclipse.swt.widgets.Control control,
NativeWidgetHelper.CheckBoxState state)
Returns the image of a checkbox. |
static void |
initCheckBoxImages(org.eclipse.swt.widgets.Control control)
Creates screenshots of the platform's native checkbox in checked and unchecked state. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void initCheckBoxImages(org.eclipse.swt.widgets.Control control)
getCheckBoxImage(Control, CheckBoxState)
.
control
- a control which provides the Display
and Shell
to
create the screen shotspublic static org.eclipse.swt.graphics.Image getCheckBoxImage(org.eclipse.swt.widgets.Control control, NativeWidgetHelper.CheckBoxState state)
initCheckBoxImages(Control)
was called beforehand
this will return images resembling the platform's native widgets. Otherwise a default image (Windows 7) will be
returned.
control
- a control which provides the Display
to create the imagestate
- the state of the checkbox
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |