Package editor.util
Class EditorUtilities
java.lang.Object
editor.util.EditorUtilities
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static <T> void
_findDecendents
(ArrayList<T> comps, Component component, Class<T> aClass, Predicate<Container> recurseToChildren) private static void
static Process
static String
buildFunctionIntellisenseString
(boolean bFeatureLiteralCompletion, IFunctionType functionType) private static String
camelCasePrefix
(String strPrefix) static void
centerWindowInFrame
(Component window, Window frame) static boolean
static void
convertRectangleToScreen
(Rectangle rectangle, Component component) static Image
static void
displayError
(String strMsg) static void
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
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 classstatic <T> T
findAtOrAbove
(Component start, Class<T> aClass) Finds the first widget at or above the passed in widget of the given classstatic <T> List<T>
findDecendents
(Component configUI, Class<T> aClass) static <T> List<T>
findDecendents
(Component configUI, Class<T> aClass, Predicate<Container> recurseToChildren) static Icon
static Icon
static Icon
static void
static boolean
static Frame
frameForComponent
(Component comp) static Window
private static TaskQueue
static Clipboard
static Component
getFocus()
static Window
static String
getFontFamilyOrDefault
(String name, String defaultFont) static Rectangle
private static String
getRelativeTypeName
(String strType) static Window
static Point
getXYForDialogRelativeToStudioFrame
(int width, int height) static void
static void
static String
static void
static void
static void
invokeNowOrLater
(Runnable task) static boolean
static boolean
isRunnable
(IType type) static ImageIcon
static void
static JRootPane
static void
Pumps through all current events in the background operation queue.static void
static Component
showWaitCursor
(boolean bWait) static void
showWaitCursor
(boolean bWait, Component c) static Window
windowForComponent
(Component comp) static String
static String
-
Field Details
-
ICON_TABLE
-
BACKGROUND_QUEUE_NAME
- See Also:
-
CONTAINS_FOCUS
-
FOCUS_CONTAINS
-
CONTROL_KEY_NAME
Platform dependent keystroke info -
CONTROL_KEY_MASK
public static final int CONTROL_KEY_MASK
-
-
Constructor Details
-
EditorUtilities
public EditorUtilities()
-
-
Method Details
-
doBackgroundOp
-
getBackgroundQueue
-
settleBackgroundOps
public static void settleBackgroundOps()Pumps through all current events in the background operation queue. Note that this is *NOT* a settle. Any operations added after this method is invoked will not be executed. -
removePopupBorder
-
centerWindowInFrame
-
getPrimaryMonitorScreenRect
-
loadIcon
-
findIcon
-
findIcon
-
findIcon
-
handleUncaughtException
-
handleUncaughtException
-
settleEventQueue
public static void settleEventQueue() -
getClipboard
-
frameForComponent
-
windowForComponent
-
buildFunctionIntellisenseString
public static String buildFunctionIntellisenseString(boolean bFeatureLiteralCompletion, IFunctionType functionType) -
getWindow
-
createSystemColorImage
-
displayInformation
-
displayError
-
displayError
-
displayWarning
-
displayMessageBox
-
wrapText
-
wrapText
-
convertRectangleToScreen
-
filterStrings
public static List<String> filterStrings(Collection<? extends CharSequence> collection, String filter) -
camelCasePrefix
-
getRelativeTypeName
-
hideToolTip
-
rootPaneForComponent
-
invokeInDispatchThread
-
invokeNowOrLater
-
browse
- Throws:
IOException
-
findAncestor
Finds the first widget above the passed in widget of the given class -
findAtOrAbove
Finds the first widget at or above the passed in widget of the given class -
findDecendents
-
_findDecendents
-
findDecendents
-
isRunnable
-
fixSwingFocusBugWhenPopupCloses
-
showWaitCursor
-
showWaitCursor
-
doWaitOperation
-
getFocus
-
getFocusedWindow
-
getActiveWindow
-
containsFocus
-
focusContains
-
addFocusListener
private static void addFocusListener() -
isInFocusLineage
-
getXYForDialogRelativeToStudioFrame
-
hex
-
getFontFamilyOrDefault
-