Package com.bc.ceres.swing.binding
Class Enablement.Condition
java.lang.Object
com.bc.ceres.swing.binding.Enablement.Condition
- Enclosing interface:
Enablement
A condition used to determine the new
enabled state of components.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract booleanevaluate(BindingContext bindingContext) voidinstall(BindingContext bindingContext, Enablement enablement) Adds the given property change enablement to any dependent bindings or components in the binding context.voiduninstall(BindingContext bindingContext, Enablement enablement) Notifies this condition that the enablement has been uninstalled.
-
Constructor Details
-
Condition
public Condition()
-
-
Method Details
-
evaluate
- Parameters:
bindingContext- The binding context.- Returns:
true, if the condition is met.
-
install
Adds the given property change enablement to any dependent bindings or components in the binding context. The default implementation does nothing.- Parameters:
bindingContext- The binding context.enablement- A property change enablement.
-
uninstall
Notifies this condition that the enablement has been uninstalled. The default implementation does nothing.The default implementation does nothing.
- Parameters:
bindingContext- The binding context.enablement- A property change enablement.
-