|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cosylab.gui.adapters.ConverterUtilities
public class ConverterUtilities
A utility class for Converter manipulation.
Nested Class Summary | |
---|---|
protected static class |
ConverterUtilities.CustomizerDialog
|
Field Summary | |
---|---|
protected static java.util.HashMap<Converter,ConverterUtilities.CustomizerDialog> |
cache
|
Constructor Summary | |
---|---|
ConverterUtilities()
|
Method Summary | |
---|---|
static java.lang.String |
composeFunctionString(ConverterChain chain,
java.lang.String value)
Composes a function from the given chain of converters. |
static java.lang.String |
composeFunctionString(Converter converter,
java.lang.String value)
Composes a function from the given converter. |
protected static void |
dispatchValues(Converter converter,
java.util.Map<java.lang.String,java.lang.Number> values)
Sets the converter's fields with new values obtained from the editor dialog. |
protected static java.util.Map<java.lang.String,java.lang.Number> |
extractInitialValues(Converter converter)
Obtains initial values of converter's fields. |
static Converter |
getConverterFromString(java.lang.String converterToString)
Constructs a converter from a string. |
protected static java.lang.String[] |
getFieldNames(Converter converter)
Returns the names of the fields that will be visible in the dialog. |
static java.lang.String |
getInitializationString(Converter converter)
Constructs an initialization string used by PropertyEditor. |
static boolean |
isEditable(Converter converter)
Checks if converter is editable. |
static void |
main(java.lang.String[] args)
|
static boolean |
showEditorDialog(java.awt.Component parent,
Converter converter)
Shows a dialog window with converter editor. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static java.util.HashMap<Converter,ConverterUtilities.CustomizerDialog> cache
Constructor Detail |
---|
public ConverterUtilities()
Method Detail |
---|
public static boolean showEditorDialog(java.awt.Component parent, Converter converter)
parent
- parent of the dialogconverter
- converter to be edited
protected static java.util.Map<java.lang.String,java.lang.Number> extractInitialValues(Converter converter)
converter
-
protected static void dispatchValues(Converter converter, java.util.Map<java.lang.String,java.lang.Number> values)
converter
- values
- protected static java.lang.String[] getFieldNames(Converter converter)
converter
-
public static boolean isEditable(Converter converter)
converter
-
public static java.lang.String composeFunctionString(ConverterChain chain, java.lang.String value)
chain
- value
-
public static java.lang.String composeFunctionString(Converter converter, java.lang.String value)
converter
- value
-
public static java.lang.String getInitializationString(Converter converter)
converter
-
public static Converter getConverterFromString(java.lang.String converterToString)
converterToString
-
public static void main(java.lang.String[] args) throws java.beans.PropertyVetoException
java.beans.PropertyVetoException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |