public final class GuiUtils
extends java.lang.Object
Constructor and Description |
---|
GuiUtils() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
colorToHex(java.awt.Color color) |
static javax.swing.JPanel |
constructDirectoryBrowserField(javax.swing.JTextField field,
java.lang.String objectName)
Deprecated.
|
static javax.swing.JPanel |
constructFieldWithBrowseButton(javax.swing.JComponent aComponent,
java.awt.event.ActionListener aActionListener) |
static javax.swing.JPanel |
constructFieldWithBrowseButton(TextFieldWithHistory aComponent,
java.awt.event.ActionListener aActionListener) |
static java.awt.BorderLayout |
createBorderLayout()
Deprecated.
|
static java.awt.GridLayout |
createGridLayout(int aRows,
int aColumns)
Deprecated.
|
static javax.swing.JTextField |
createUndoableTextField() |
static java.awt.Component |
createVerticalStrut() |
static void |
enableChildren(boolean enabled,
java.awt.Component... components) |
static void |
enableChildren(java.awt.Component container,
boolean enabled,
javax.swing.JComponent... excludeComponents) |
static char |
getDisplayedMnemonic(java.lang.String text) |
static int |
getDisplayedMnemonicIndex(java.lang.String text) |
static java.awt.Dimension |
getSizeByChars(int charCount,
javax.swing.JComponent comp)
Returns dimension with width required to type certain number of chars in provided component
|
static java.lang.String |
getTextWithoutMnemonicEscaping(java.lang.String text) |
static void |
invokeLaterIfNeeded(java.lang.Runnable runnable,
ModalityState modalityState) |
static void |
invokeLaterIfNeeded(java.lang.Runnable runnable,
ModalityState modalityState,
Condition expired) |
static void |
iterateChildren(java.awt.Component container,
Consumer<? super java.awt.Component> consumer,
javax.swing.JComponent... excludeComponents) |
static javax.swing.JPanel |
makeTitledPanel(javax.swing.JComponent aComponent,
java.lang.String aTitle)
Deprecated.
|
static void |
replaceJSplitPaneWithIDEASplitter(javax.swing.JComponent root) |
static void |
replaceJSplitPaneWithIDEASplitter(javax.swing.JComponent root,
boolean useOnePixelDivider) |
static void |
runOrInvokeAndWait(java.lang.Runnable runnable) |
static void |
showComponents(boolean visible,
java.awt.Component... components) |
public static javax.swing.JPanel constructFieldWithBrowseButton(javax.swing.JComponent aComponent, java.awt.event.ActionListener aActionListener)
public static javax.swing.JPanel constructFieldWithBrowseButton(TextFieldWithHistory aComponent, java.awt.event.ActionListener aActionListener)
@Deprecated public static javax.swing.JPanel constructDirectoryBrowserField(javax.swing.JTextField field, java.lang.String objectName)
@Deprecated public static javax.swing.JPanel makeTitledPanel(javax.swing.JComponent aComponent, java.lang.String aTitle)
@Deprecated public static java.awt.BorderLayout createBorderLayout()
@Deprecated public static java.awt.GridLayout createGridLayout(int aRows, int aColumns)
public static java.awt.Component createVerticalStrut()
public static java.lang.String getTextWithoutMnemonicEscaping(java.lang.String text)
public static char getDisplayedMnemonic(java.lang.String text)
public static int getDisplayedMnemonicIndex(java.lang.String text)
public static void replaceJSplitPaneWithIDEASplitter(javax.swing.JComponent root)
public static void replaceJSplitPaneWithIDEASplitter(javax.swing.JComponent root, boolean useOnePixelDivider)
public static void iterateChildren(java.awt.Component container, Consumer<? super java.awt.Component> consumer, javax.swing.JComponent... excludeComponents)
public static void enableChildren(boolean enabled, java.awt.Component... components)
public static void showComponents(boolean visible, java.awt.Component... components)
public static void enableChildren(java.awt.Component container, boolean enabled, javax.swing.JComponent... excludeComponents)
public static java.lang.String colorToHex(java.awt.Color color)
public static void runOrInvokeAndWait(java.lang.Runnable runnable) throws java.lang.reflect.InvocationTargetException, java.lang.InterruptedException
java.lang.reflect.InvocationTargetException
java.lang.InterruptedException
public static void invokeLaterIfNeeded(java.lang.Runnable runnable, ModalityState modalityState)
public static void invokeLaterIfNeeded(java.lang.Runnable runnable, ModalityState modalityState, Condition expired)
public static javax.swing.JTextField createUndoableTextField()
public static java.awt.Dimension getSizeByChars(int charCount, javax.swing.JComponent comp)
charCount
- number of charscomp
- component