} catch (final IOException e) {
defaultHandlerName = toggleDefaultHandler();
}
_toggleButton =
new ButtonField("Default: " + defaultHandlerName,
ButtonField.NEVER_DIRTY | ButtonField.CONSUME_CLICK);
_toggleButton.setChangeListener(new FieldChangeListener() {
public void fieldChanged(final Field field, final int context) {
final String newDefaultHandlerName = toggleDefaultHandler();
if (newDefaultHandlerName != null) {
_toggleButton.setLabel("default: "
+ newDefaultHandlerName);
}
}
});
_invokeButton =
new ButtonField("Invoke Handler", ButtonField.NEVER_DIRTY
| ButtonField.CONSUME_CLICK);
_invokeButton.setChangeListener(new FieldChangeListener() {
public void fieldChanged(final Field field, final int context) {
doInvoke();