public abstract class InputVerifierProcessor extends Object implements WidgetProcessor<JComponent,SwingMetawidget>
This class is abstract, because Swing does not provide any implemented InputVerifiers out of the
box. Clients must extend this class and implement getInputVerifier to integrate
their own verifiers.
| Constructor and Description |
|---|
InputVerifierProcessor() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract InputVerifier |
getInputVerifier(JComponent component,
Map<String,String> attributes,
SwingMetawidget metawidget,
String path)
Return the appropriate InputVerifier for the given Component with the given attributes.
|
JComponent |
processWidget(JComponent component,
String elementName,
Map<String,String> attributes,
SwingMetawidget metawidget)
Process the given widget.
|
public JComponent processWidget(JComponent component, String elementName, Map<String,String> attributes, SwingMetawidget metawidget)
WidgetProcessorWidgetBuilder, and before it is added to the Layout.processWidget in interface WidgetProcessor<JComponent,SwingMetawidget>component - the widget to process. Never nullelementName - XML node name of the business field. Typically 'entity', 'property' or 'action'.
Never nullattributes - attributes of the widget to process. Never null. This Map is modifiable - changes
will be passed to subsequent WidgetProcessors and Layoutsmetawidget - the parent Metawidget. Never nullprotected abstract InputVerifier getInputVerifier(JComponent component, Map<String,String> attributes, SwingMetawidget metawidget, String path)
component - component needing a verifierattributes - Map of attributes as returned by the Inspectorspath - path to the source object. Can be parsed using PathUtils.parsePathCopyright © 2015. All Rights Reserved.