|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.birt.core.ui.utils.UIHelper
public final class UIHelper
This class has been created to hold methods that provide specific functionality or services.
Field Summary | |
---|---|
static java.lang.String |
IMAGE_NAV_BACKWARD
|
static java.lang.String |
IMAGE_NAV_BACKWARD_DIS
|
static java.lang.String |
IMAGE_NAV_FORWARD
|
static java.lang.String |
IMAGE_NAV_FORWARD_DIS
|
Constructor Summary | |
---|---|
UIHelper()
|
Method Summary | |
---|---|
static void |
centerOnMonitor(Monitor monitor,
Shell shell)
Center shell on specified monitor. |
static void |
centerOnScreen(Shell shell)
This is a helper method created to center a shell on the screen. |
static Image |
getImage(java.lang.String sPluginRelativePath)
This is a convenience method to get an imgIcon from a URL. |
static Point |
getScreenLocation(Composite cmpTarget)
This is a helper method created to get the location on screen of a composite. |
static java.net.URL |
getURL(java.lang.String sPluginRelativePath)
This method returns an URL for a resource given its plugin relative path. |
static boolean |
isEclipseMode()
Returns if running in eclipse mode or stand-alone mode currently. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String IMAGE_NAV_FORWARD
public static final java.lang.String IMAGE_NAV_FORWARD_DIS
public static final java.lang.String IMAGE_NAV_BACKWARD
public static final java.lang.String IMAGE_NAV_BACKWARD_DIS
Constructor Detail |
---|
public UIHelper()
Method Detail |
---|
public static Point getScreenLocation(Composite cmpTarget)
cmpTarget
- The composite whose location on screen is required
public static void centerOnScreen(Shell shell)
shell
- The shell to be centered on screenpublic static void centerOnMonitor(Monitor monitor, Shell shell)
monitor
- specified monitor will display shell.shell
- the shell to be centered on monitor.public static java.net.URL getURL(java.lang.String sPluginRelativePath)
sPluginRelativePath
- The path to the resource relative to the plugin location.
public static Image getImage(java.lang.String sPluginRelativePath)
sPluginRelativePath
- The URL for the imgIcon.
#setImageCached( boolean )
public static boolean isEclipseMode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |