@Override public void setActionState(EActionState state) { this.state = state; for (IActionStateChangedListener listener : listeners) { listener.actionStateChanged(state); } }
@Override public String toString() { StringBuilder b = new StringBuilder(); b.append( "[" + SimpleActionStatus.class.getName() + "]: (" + this.state.name() + ") Message: \"" + this.message + "\""); if (this.result.getResult() != null) { b.append(" [Result]: " + this.result.getResult().toString()); } if (this.listeners.size() > 0) { b.append(" [IActionStateChangedListener]: "); for (IActionStateChangedListener l : this.listeners) { b.append(l.toString() + ", "); } } return b.toString(); }