Package jmri.jmrit.logixng.swing
Class SwingTools
- java.lang.Object
-
- jmri.jmrit.logixng.swing.SwingTools
-
public final class SwingTools extends java.lang.Object
LogixNG Swing tools.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringadapterNameForClass(java.lang.Class<?> c)Find the name of the adapter class for an object.static java.lang.StringadapterNameForObject(java.lang.Object o)Find the name of the adapter class for an object.static SwingConfiguratorInterfacegetSwingConfiguratorForClass(java.lang.Class<?> clazz)Get a SwingConfiguratorInterface for a classstatic SwingConfiguratorInterfacegetSwingConfiguratorForObject(java.lang.Object object)Get a SwingConfiguratorInterface for an object
-
-
-
Method Detail
-
adapterNameForObject
public static java.lang.String adapterNameForObject(java.lang.Object o)
Find the name of the adapter class for an object.- Parameters:
o- object of a configurable type- Returns:
- class name of adapter
-
adapterNameForClass
public static java.lang.String adapterNameForClass(java.lang.Class<?> c)
Find the name of the adapter class for an object.- Parameters:
c- class of a configurable type- Returns:
- class name of adapter
-
getSwingConfiguratorForObject
public static SwingConfiguratorInterface getSwingConfiguratorForObject(java.lang.Object object)
Get a SwingConfiguratorInterface for an object- Parameters:
object- The object to get a SwingConfiguratorInterface of- Returns:
- a SwingConfiguratorInterface object
-
getSwingConfiguratorForClass
public static SwingConfiguratorInterface getSwingConfiguratorForClass(java.lang.Class<?> clazz)
Get a SwingConfiguratorInterface for a class- Parameters:
clazz- The class to get a SwingConfiguratorInterface of- Returns:
- a SwingConfiguratorInterface object
-
-