Package com.bc.ceres.swing.binding
Class Enablement.Condition
- java.lang.Object
-
- com.bc.ceres.swing.binding.Enablement.Condition
-
- Enclosing interface:
- Enablement
public abstract static class Enablement.Condition extends Object
A condition used to determine the newenabled
state of components.
-
-
Constructor Summary
Constructors Constructor Description Condition()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract boolean
evaluate(BindingContext bindingContext)
void
install(BindingContext bindingContext, Enablement enablement)
Adds the given property change enablement to any dependent bindings or components in the binding context.void
uninstall(BindingContext bindingContext, Enablement enablement)
Notifies this condition that the enablement has been uninstalled.
-
-
-
Method Detail
-
evaluate
public abstract boolean evaluate(BindingContext bindingContext)
- Parameters:
bindingContext
- The binding context.- Returns:
true
, if the condition is met.
-
install
public void install(BindingContext bindingContext, Enablement enablement)
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
public void uninstall(BindingContext bindingContext, Enablement enablement)
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.
-
-