|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.btt.rcp.xui.Util
public abstract class Util
XUI Utility class
Constructor Summary | |
---|---|
Util()
|
Method Summary | |
---|---|
static void |
arrangeTabIndex(IXUIComposite composite)
Arrange tabIndex of XUIWidgets in specified XUIComposite NOTE: not present Follow default behavior of element. |
static void |
clearComposite(org.eclipse.swt.widgets.Composite composite)
Dispose all children of specified composite |
static int |
convertStyle(java.lang.String value)
Convert string style to SWT int style |
static java.util.List<java.lang.Class<?>> |
getAllInterfaces(java.lang.Class<?> target)
Get all interfaces that target class implemented. |
static IXUIWidget |
getXUIWidget(org.eclipse.swt.widgets.Widget widget)
Get XUI widget instance from wrapped SWT widget using widget.getData() |
static boolean |
isNullString(java.lang.String string)
Check if param is empty string |
static boolean |
isSubClass(java.lang.Class<?> parentClass,
java.lang.Class<?> subClass)
Justify if parentClass is the super class or interface for subClass |
static boolean |
isValidPathProtocol(java.lang.String path)
Justify if current path is valid protocol, a valid path should be start with jar:///, file:///, http://, ftp:// or any other URL protocol. |
static boolean |
keyStrokeMatch(org.eclipse.swt.events.KeyEvent e,
java.lang.String shortcutStr)
This function is see whether the key stroke matches the short cut string definition. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Util()
Method Detail |
---|
public static boolean isNullString(java.lang.String string)
string
-
public static int convertStyle(java.lang.String value)
value
-
public static IXUIWidget getXUIWidget(org.eclipse.swt.widgets.Widget widget)
widget
-
public static boolean isSubClass(java.lang.Class<?> parentClass, java.lang.Class<?> subClass)
parentClass
- subClass
-
public static void clearComposite(org.eclipse.swt.widgets.Composite composite)
composite
- public static java.util.List<java.lang.Class<?>> getAllInterfaces(java.lang.Class<?> target)
target
-
public static void arrangeTabIndex(IXUIComposite composite)
NOTE:
Description: duplicated/nested tabIndexs are supported
public static boolean keyStrokeMatch(org.eclipse.swt.events.KeyEvent e, java.lang.String shortcutStr)
The modifierKeys are the combination of {ALT, COMMAND, CTRL, SHIFT, M1, M2, M3, M4}. They can be lowercase or uppercase. for more detail. @see SWTKeyLookup
A natural key is any Unicode character (e.g., "backspace", etc.), any character belonging to a natural language (e.g., "a", "1", "[", etc.), or any special control character specific to computers (e.g., "F10", "PageUp", etc.).
Note:
e
- KeyEventshortcutStr
- It follows the format of modifierKeys + A naturalKey
public static boolean isValidPathProtocol(java.lang.String path)
path
-
|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |