|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openstreetmap.josm.gui.util.GuiHelper
public class GuiHelper
basic gui utils
Constructor Summary | |
---|---|
GuiHelper()
|
Method Summary | |
---|---|
static javax.swing.ImageIcon |
getDisabledIcon(javax.swing.ImageIcon icon)
Replies the disabled (grayed) version of the specified icon. |
static java.awt.Image |
getDisabledImage(java.awt.Image image)
Replies the disabled (grayed) version of the specified image. |
static java.awt.Component |
prepareResizeableOptionPane(java.awt.Component pane,
java.awt.Dimension minDimension)
Attaches a HierarchyListener to the specified Component that
will set its parent dialog resizeable. |
static void |
runInEDT(java.lang.Runnable task)
|
static void |
runInEDTAndWait(java.lang.Runnable task)
|
static void |
setEnabledRec(java.awt.Container root,
boolean enabled)
disable / enable a component and all its child components |
static boolean |
warnUser(java.lang.String title,
java.lang.String content,
javax.swing.ImageIcon baseActionIcon,
java.lang.String continueToolTip)
returns true if the user wants to cancel, false if they want to continue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GuiHelper()
Method Detail |
---|
public static void setEnabledRec(java.awt.Container root, boolean enabled)
public static void runInEDT(java.lang.Runnable task)
public static void runInEDTAndWait(java.lang.Runnable task)
public static final boolean warnUser(java.lang.String title, java.lang.String content, javax.swing.ImageIcon baseActionIcon, java.lang.String continueToolTip)
public static final java.awt.Image getDisabledImage(java.awt.Image image)
image
- The image to disable
public static final javax.swing.ImageIcon getDisabledIcon(javax.swing.ImageIcon icon)
icon
- The icon to disable
public static final java.awt.Component prepareResizeableOptionPane(java.awt.Component pane, java.awt.Dimension minDimension)
HierarchyListener
to the specified Component
that
will set its parent dialog resizeable. Use it before a call to JOptionPane#showXXXXDialog
to make it resizeable.
pane
- The component that will be displayedminDimension
- The minimum dimension that will be set for the dialog. Ignored if null
pane
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |