| |
|
| java.lang.Object org.netbeans.modules.junit.GuiUtils
GuiUtils | final public class GuiUtils (Code) | | Various utility method for creating and manipulating with GUI elements.
author: Marian Petras |
CHK_ABSTRACT_CLASSES | final public static String CHK_ABSTRACT_CLASSES(Code) | | |
CHK_EXCEPTION_CLASSES | final public static String CHK_EXCEPTION_CLASSES(Code) | | |
CHK_METHOD_BODIES | final public static String CHK_METHOD_BODIES(Code) | | |
CHK_PACKAGE_PRIVATE_CLASSES | final public static String CHK_PACKAGE_PRIVATE_CLASSES(Code) | | |
createCheckBoxes | public static JCheckBox[] createCheckBoxes(String[] ids)(Code) | | Creates a specified set of checkboxes.
The checkboxes are specified by unique identifiers.
The identifiers are given by this class's constants CHK_xxx .
The array of strings passed as the argument may also contain
null items. In such a case, the resulting array
of check-boxes will contain null s on the corresponding
possitions.
Parameters: ids - identifiers of the checkboxes to be created array of checkboxes corresponding to the array of identifierspassed as the argument |
createChkBoxGroup | public static JComponent createChkBoxGroup(String title, JCheckBox[] elements)(Code) | | Creates a labelled group of checkboxes.
Parameters: title - title for the group of checkboxes Parameters: elements - checkboxes - members of the group visual component representing the group |
createMultilineLabel | public static JComponent createMultilineLabel(String text)(Code) | | Creates a text component to be used as a multi-line, automatically
wrapping label.
Restriction:
The component may have its preferred size very wide.
Parameters: text - text of the label created multi-line text component |
createTemplateChooser | public static JComboBox createTemplateChooser(String defaultTemplate)(Code) | | Creates a combo-box for choosing a template.
The combo-box will contain FileObject s representing
available JUnit templates, wrapped using class
NamedObject ,
so that the file's names are displayed in the combo-box.
To get the currently selected template from the combo-box, use:
NamedObject namedObject = (NamedObject) comboBox.getSelectedItem();
FileObject template = (FileObject) namedObject.object;
Parameters: defaultTemplate - path to the default template non-editable combo-box displaying names of templates |
|
|
|