public class EditorUtilities extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
CONTROL_KEY_MASK |
static String |
CONTROL_KEY_NAME
Platform dependent keystroke info
|
| Constructor and Description |
|---|
EditorUtilities() |
| Modifier and Type | Method and Description |
|---|---|
static Process |
browse(String strURL) |
static String |
buildFunctionIntellisenseString(boolean bFeatureLiteralCompletion,
IFunctionType functionType) |
static void |
centerWindowInFrame(Component window,
Window frame) |
static boolean |
containsFocus(Component c) |
static void |
convertRectangleToScreen(Rectangle rectangle,
Component component) |
static Image |
createSystemColorImage(Image i) |
static void |
displayError(String strMsg) |
static void |
displayError(Throwable e) |
static void |
displayInformation(String strMsg) |
static void |
displayMessageBox(String strMsg,
int iType,
boolean bWrapText) |
static void |
displayWarning(String strMsg) |
static void |
doBackgroundOp(Runnable run) |
static void |
doWaitOperation(Runnable op) |
static List<String> |
filterStrings(Collection<? extends CharSequence> collection,
String filter) |
static <T> T |
findAncestor(Component start,
Class<T> aClass)
Finds the first widget above the passed in widget of the given class
|
static <T> T |
findAtOrAbove(Component start,
Class<T> aClass)
Finds the first widget at or above the passed in widget of the given class
|
static <T> List<T> |
findDecendents(Component configUI,
Class<T> aClass) |
static <T> List<T> |
findDecendents(Component configUI,
Class<T> aClass,
java.util.function.Predicate<Container> recurseToChildren) |
static Icon |
findIcon(ClassType classType) |
static Icon |
findIcon(IType type) |
static Icon |
findIcon(Path fileOrDir) |
static void |
fixSwingFocusBugWhenPopupCloses(Component c) |
static boolean |
focusContains(Component c) |
static Frame |
frameForComponent(Component comp) |
static Window |
getActiveWindow() |
static Clipboard |
getClipboard() |
static Component |
getFocus() |
static Window |
getFocusedWindow() |
static String |
getFontFamilyOrDefault(String name,
String defaultFont) |
static Rectangle |
getPrimaryMonitorScreenRect() |
static Window |
getWindow() |
static Point |
getXYForDialogRelativeToStudioFrame(int width,
int height) |
static void |
handleUncaughtException(String s,
Throwable e) |
static void |
handleUncaughtException(Throwable e) |
static String |
hex(Color color) |
static void |
hideToolTip(JComponent c) |
static void |
invokeInDispatchThread(Runnable task) |
static void |
invokeNowOrLater(Runnable task) |
static boolean |
isInFocusLineage(Component c) |
static boolean |
isRunnable(IType type) |
static ImageIcon |
loadIcon(String strRes) |
static void |
removePopupBorder(Container c) |
static JRootPane |
rootPaneForComponent(Component comp) |
static void |
settleBackgroundOps()
Pumps through all current events in the background operation queue.
|
static void |
settleEventQueue() |
static Component |
showWaitCursor(boolean bWait) |
static void |
showWaitCursor(boolean bWait,
Component c) |
static Window |
windowForComponent(Component comp) |
static String |
wrapText(String strText) |
static String |
wrapText(String strText,
int iLineLen) |
public static final String CONTROL_KEY_NAME
public static final int CONTROL_KEY_MASK
public static void doBackgroundOp(Runnable run)
public static void settleBackgroundOps()
public static void removePopupBorder(Container c)
public static Rectangle getPrimaryMonitorScreenRect()
public static void handleUncaughtException(Throwable e)
public static void settleEventQueue()
public static Clipboard getClipboard()
public static String buildFunctionIntellisenseString(boolean bFeatureLiteralCompletion, IFunctionType functionType)
public static Window getWindow()
public static void displayInformation(String strMsg)
public static void displayError(Throwable e)
public static void displayError(String strMsg)
public static void displayWarning(String strMsg)
public static void displayMessageBox(String strMsg, int iType, boolean bWrapText)
public static void convertRectangleToScreen(Rectangle rectangle, Component component)
public static List<String> filterStrings(Collection<? extends CharSequence> collection, String filter)
public static void hideToolTip(JComponent c)
public static void invokeInDispatchThread(Runnable task)
public static void invokeNowOrLater(Runnable task)
public static Process browse(String strURL) throws IOException
IOExceptionpublic static <T> T findAncestor(Component start, Class<T> aClass)
public static <T> T findAtOrAbove(Component start, Class<T> aClass)
public static <T> List<T> findDecendents(Component configUI, Class<T> aClass, java.util.function.Predicate<Container> recurseToChildren)
public static boolean isRunnable(IType type)
public static void fixSwingFocusBugWhenPopupCloses(Component c)
public static Component showWaitCursor(boolean bWait)
public static void showWaitCursor(boolean bWait,
Component c)
public static void doWaitOperation(Runnable op)
public static Component getFocus()
public static Window getFocusedWindow()
public static Window getActiveWindow()
public static boolean containsFocus(Component c)
public static boolean focusContains(Component c)
public static boolean isInFocusLineage(Component c)
public static Point getXYForDialogRelativeToStudioFrame(int width, int height)
Copyright © 2019. All rights reserved.