| java.lang.Object org.apache.jmeter.gui.GUIFactory
GUIFactory | final public class GUIFactory (Code) | | Provides a way to register and retrieve GUI classes and icons.
author: Oliver Rossmueller version: $Revision: 493779 $ |
getGUI | public static JComponent getGUI(Class elementClass)(Code) | | Get a component instance which has previously been registered for this
class object.
Parameters: elementClass - the class object which we want to get an instance of an instance of the class, or null if this class or its superclasshas not been registered |
getIcon | public static ImageIcon getIcon(Class elementClass)(Code) | | Get an icon which has previously been registered for this class object.
Parameters: elementClass - the class object which we want to get an icon for the associated icon, or null if this class or its superclass hasnot been registered |
getIcon | public static ImageIcon getIcon(Class elementClass, boolean enabled)(Code) | | Get icon/disabledicon which has previously been registered for this class
object.
Parameters: elementClass - the class object which we want to get an icon for Parameters: enabled - -is icon enabled the associated icon, or null if this class or its superclass hasnot been registered |
registerDisabledIcon | public static void registerDisabledIcon(String key, ImageIcon icon)(Code) | | Register an icon so that it can later be retrieved via
GUIFactory.getIcon(Class) . The key should match the fully-qualified class
name for the class used as the parameter when retrieving the icon.
Parameters: key - the name which can be used to retrieve this icon later Parameters: icon - the icon to store |
registerGUI | public static void registerGUI(String key, Class guiClass, Class testClass) throws InstantiationException, IllegalAccessException(Code) | | Register a GUI class so that it can later be retrieved via
GUIFactory.getGUI(Class) . The key should match the fully-qualified class
name for the class used as the parameter when retrieving the GUI.
Parameters: key - the name which can be used to retrieve this GUI later Parameters: guiClass - the class object for the GUI component Parameters: testClass - the class of the objects edited by this GUI throws: InstantiationException - if an instance of the GUI class can not be instantiated throws: IllegalAccessException - if access rights do not permit an instance of the GUI classto be created |
registerIcon | public static void registerIcon(String key, ImageIcon icon)(Code) | | Register an icon so that it can later be retrieved via
GUIFactory.getIcon(Class) . The key should match the fully-qualified class
name for the class used as the parameter when retrieving the icon.
Parameters: key - the name which can be used to retrieve this icon later Parameters: icon - the icon to store |
|
|