public class ConfigUtil
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ConfigUtil.ConfigurationPane |
Constructor and Description |
---|
ConfigUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
configure(java.awt.Dialog owner,
java.lang.Object o)
Shows a tree in which object properties can be edited.
|
static void |
configure(java.awt.Frame owner,
java.lang.Object o)
Shows a tree in which object properties can be edited.
|
static ConfigUtil.ConfigurationPane |
createConfigurationPane(java.lang.Object o)
Shows a tree in which object properties can be edited.
|
static ConfigurationImpl |
defaultConfiguration(java.lang.Object configurable) |
static Configuration |
getConfiguration(java.lang.Object configurable) |
static java.lang.Object |
getDefaultValue(java.lang.Class<?> type) |
static java.lang.Class<?> |
getPrimitiveWrapperClass(java.lang.Class<?> c) |
static void |
showHelp(java.lang.String text)
Displays given text in a help window.
|
static java.lang.String |
stripSuffix(java.lang.String s,
java.lang.String suffix) |
public static void configure(java.awt.Dialog owner, java.lang.Object o)
owner
- Parent dialog in which to put GUI elementso
- Object to investigatepublic static void configure(java.awt.Frame owner, java.lang.Object o)
owner
- Parent frame in which to put GUI elementso
- Object to investigatepublic static ConfigUtil.ConfigurationPane createConfigurationPane(java.lang.Object o)
o
- The Object to configurepublic static Configuration getConfiguration(java.lang.Object configurable)
configurable
- An objectpublic static ConfigurationImpl defaultConfiguration(java.lang.Object configurable)
configurable
- An Objectpublic static java.lang.String stripSuffix(java.lang.String s, java.lang.String suffix)
s
- A Stringsuffix
- Something that the string might end withpublic static java.lang.Class<?> getPrimitiveWrapperClass(java.lang.Class<?> c)
c
- Any classpublic static java.lang.Object getDefaultValue(java.lang.Class<?> type)
type
- A classpublic static void showHelp(java.lang.String text)
text
- Help text (html body)