Class ValidatorBorder
- java.lang.Object
-
- javax.swing.border.AbstractBorder
-
- javax.swing.border.CompoundBorder
-
- com.alexandriasoftware.swing.border.ValidatorBorder
-
- All Implemented Interfaces:
Serializable
,Border
public class ValidatorBorder extends CompoundBorder
A CompoundBorder that draws an inner border that contains the validation icon to the right of the input being validated. The outer border is the original border of the component this border is attached to.- Author:
- Randall Wood
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class javax.swing.border.CompoundBorder
insideBorder, outsideBorder
-
-
Constructor Summary
Constructors Constructor Description ValidatorBorder(Validation validation, Border originalBorder)
Create a ValidatorBorder.
-
Method Summary
-
Methods inherited from class javax.swing.border.CompoundBorder
getBorderInsets, getInsideBorder, getOutsideBorder, isBorderOpaque, paintBorder
-
Methods inherited from class javax.swing.border.AbstractBorder
getBaseline, getBaselineResizeBehavior, getBorderInsets, getInteriorRectangle, getInteriorRectangle
-
-
-
-
Constructor Detail
-
ValidatorBorder
public ValidatorBorder(@Nonnull Validation validation, Border originalBorder)
Create a ValidatorBorder.- Parameters:
validation
- the validation to use in the borderoriginalBorder
- the original border of the component being validated
-
-