public final class SwtWindowHelper extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
SwtWindowHelper.ColorValue |
| Constructor and Description |
|---|
SwtWindowHelper(org.eclipse.swt.widgets.Shell shell) |
| Modifier and Type | Method and Description |
|---|---|
void |
addMouseClickListener(org.eclipse.swt.widgets.Listener listener) |
void |
addMouseMoveListener(org.eclipse.swt.widgets.Listener listener) |
void |
close() |
org.eclipse.swt.widgets.Button |
createButton(org.eclipse.swt.graphics.Image background,
org.eclipse.swt.graphics.Image hover) |
org.eclipse.swt.widgets.Button |
createButton(String background,
String hover) |
void |
createCursor(String name,
String path) |
void |
createCursor(String name,
String path,
int x,
int y) |
org.eclipse.swt.widgets.Label |
createLabel(String text,
SwtWindowHelper.ColorValue color,
org.eclipse.swt.graphics.Font font) |
org.eclipse.swt.graphics.Image |
getImage(String file)
Create an image from a file stored in media.
|
void |
setBackground(String background) |
void |
setBackgroundColor(be.yildiz.common.Color background)
Set the background color.
|
void |
setText(org.eclipse.swt.widgets.Button b,
String text,
org.eclipse.swt.graphics.Font font) |
void |
setWindowIcon(String file) |
void |
setWindowTitle(String title) |
public void addMouseMoveListener(org.eclipse.swt.widgets.Listener listener)
public void addMouseClickListener(org.eclipse.swt.widgets.Listener listener)
public void setWindowTitle(String title)
public void setBackground(String background)
public void setBackgroundColor(be.yildiz.common.Color background)
background - color to set as background.public void setWindowIcon(String file)
public org.eclipse.swt.widgets.Button createButton(org.eclipse.swt.graphics.Image background,
org.eclipse.swt.graphics.Image hover)
public org.eclipse.swt.widgets.Label createLabel(String text, SwtWindowHelper.ColorValue color, org.eclipse.swt.graphics.Font font)
public org.eclipse.swt.graphics.Image getImage(String file)
file - File path.public void close()
public void setText(org.eclipse.swt.widgets.Button b,
String text,
org.eclipse.swt.graphics.Font font)
Copyright © 2014–2016. All rights reserved.