public class ComponentDecorator
extends java.lang.Object
Constructor and Description |
---|
ComponentDecorator() |
Modifier and Type | Method and Description |
---|---|
javax.swing.border.Border |
createProblemBorder(java.awt.Component c,
javax.swing.border.Border originalBorder,
Severity severity)
Create a border to apply to the component which shows an error.
|
static ComponentDecorator |
noOpComponentDecorator() |
public javax.swing.border.Border createProblemBorder(java.awt.Component c, javax.swing.border.Border originalBorder, Severity severity)
Severity.color() and Severity.image() are handy here.
c
- The componentoriginalBorder
- The original border of the componentseverity
- The severity of the problempublic static final ComponentDecorator noOpComponentDecorator()