Utility class that couples the enabled state of one or more
Enablable with the content of a
JTextComponent. As an example, consider the common case where a
JButton should be disabled if a certain text component is empty. By using this class, client code is shielded from the low-level programming of adding a
DocumentListener to the text component.
The condition that decides if the Enablable should be enabled or disabled when the contents of the text component changes is expressed as a {@link TextEnablerCondition}, allowing clients to express any arbitrary rule based on the current content of the text component.
@author Torgil Zethson
@since 1.3.0