1 16 package com.google.gwt.user.client; 17 18 24 public class DeferredCommand { 25 private static final CommandExecutor commandExecutor = new CommandExecutor(); 26 27 38 public static void add(Command cmd) { 39 commandExecutor.submit(cmd); 40 } 41 42 51 public static void addCommand(Command cmd) { 52 if (cmd == null) { 53 throw new NullPointerException ("cmd can not be null"); 54 } 55 56 commandExecutor.submit(cmd); 57 } 58 59 69 public static void addCommand(IncrementalCommand cmd) { 70 if (cmd == null) { 71 throw new NullPointerException ("cmd can not be null"); 72 } 73 74 commandExecutor.submit(cmd); 75 } 76 77 83 public static void addPause() { 84 commandExecutor.submit((Command) null); 85 } 86 } 87 | Popular Tags |