Package com.jgoodies.forms.factories
Interface ComponentFactory2
- All Superinterfaces:
ComponentFactory
- All Known Implementing Classes:
DefaultComponentFactory
An extension to the ComponentFactory interface that describes
the describes the read-only label creation introduced by the
Forms 1.3.
Note: This interface shall be merged with the ComponentFactory interface in the Forms 2.0.
- Since:
- 1.3
- Version:
- $Revision: 1.3 $
- Author:
- Karsten Lentzsch
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptioncreateReadOnlyLabel
(String textWithMnemonic) Creates and returns a label with an optional mnemonic that is intended to label a read-only component.Methods inherited from interface com.jgoodies.forms.factories.ComponentFactory
createLabel, createSeparator, createTitle
-
Method Details
-
createReadOnlyLabel
Creates and returns a label with an optional mnemonic that is intended to label a read-only component.createReadOnlyLabel("Name"); // No mnemonic createReadOnlyLabel("Ninvalid input: '&ame'"); // Mnemonic is 'a' createReadOnlyLabel("Save invalid input: '&as'"); // Mnemonic is the second 'a' createReadOnlyLabel("Lookinvalid input: '&'invalid input: '&Feel'"); // No mnemonic, text is Lookinvalid input: '&Feel'
- Parameters:
textWithMnemonic
- the label's text - may contain an ampersand (&) to mark a mnemonic- Returns:
- an label with optional mnemonic intended for read-only components
-