public class PropertyEnableCheck extends java.lang.Object implements EnableCheck
Constructor and Description |
---|
PropertyEnableCheck(java.lang.Object object,
java.lang.String checkMethodName,
java.lang.Object expectedValue,
boolean invert,
ErrorHandler errorHandler) |
PropertyEnableCheck(java.lang.Object object,
java.lang.String checkMethodName,
java.lang.Object expectedValue,
ErrorHandler errorHandler) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
check(javax.swing.JComponent component)
Returns a non-null value if the check failed.
|
public PropertyEnableCheck(java.lang.Object object, java.lang.String checkMethodName, java.lang.Object expectedValue, boolean invert, ErrorHandler errorHandler)
public PropertyEnableCheck(java.lang.Object object, java.lang.String checkMethodName, java.lang.Object expectedValue, ErrorHandler errorHandler)
object
- The object to invoke the method on.checkMethodName
- The name of the check method which returns a boolean
value.expectedValue
- The expected value to be returned for the check to be
enabled.public java.lang.String check(javax.swing.JComponent component)
EnableCheck
check
in interface EnableCheck