* Override the behvaior from the base class by also decorating the field if the
* <tt>DecorateDynamically</tt> property is <tt>true</tt>.
*/
@Override
protected final DocumentContentChangeListener createDocumentListener() {
final DocumentContentChangeListener defaultListener = super.createDocumentListener();
return new DocumentContentChangeListener() {
@Override
public void contentChanged(DocumentEvent e) {
if (decorateDynamically) {
decorate();
}
defaultListener.contentChanged(e);
}
};
}