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 voidstatic Processstatic StringbuildFunctionIntellisenseString(boolean bFeatureLiteralCompletion, IFunctionType functionType) private static StringcamelCasePrefix(String strPrefix) static voidcenterWindowInFrame(Component window, Window frame) static booleanstatic voidconvertRectangleToScreen(Rectangle rectangle, Component component) static Imagestatic voiddisplayError(String strMsg) static voidstatic voiddisplayInformation(String strMsg) static voiddisplayMessageBox(String strMsg, int iType, boolean bWrapText) static voiddisplayWarning(String strMsg) static voiddoBackgroundOp(Runnable run) static voidfilterStrings(Collection<? extends CharSequence> collection, String filter) static <T> TfindAncestor(Component start, Class<T> aClass) Finds the first widget above the passed in widget of the given classstatic <T> TfindAtOrAbove(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 Iconstatic Iconstatic Iconstatic voidstatic booleanstatic FrameframeForComponent(Component comp) static Windowprivate static TaskQueuestatic Clipboardstatic ComponentgetFocus()static Windowstatic StringgetFontFamilyOrDefault(String name, String defaultFont) static Rectangleprivate static StringgetRelativeTypeName(String strType) static Windowstatic PointgetXYForDialogRelativeToStudioFrame(int width, int height) static voidstatic voidstatic Stringstatic voidstatic voidstatic voidinvokeNowOrLater(Runnable task) static booleanstatic booleanisRunnable(IType type) static ImageIconstatic voidstatic JRootPanestatic voidPumps through all current events in the background operation queue.static voidstatic ComponentshowWaitCursor(boolean bWait) static voidshowWaitCursor(boolean bWait, Component c) static WindowwindowForComponent(Component comp) static Stringstatic 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
-