/** * Calls the <code>updateState</code> method of all registered commands. */ @Override public void updateState() { final int n = getNumCommands(); for (int i = 0; i < n; i++) { getCommandAt(i).updateState(); } }
/** * Causes this command to fire the 'check status' event to all of its listeners. */ public void updateState() { updateState(new CommandEvent(this, null, null, null)); fireUpdateState(); }