public HandlerRegistration setup(final Runnable runnable) { return hookUpRunnable(runnable); } });
/** Fires a {@link PlaceRequestEvent} for {@code request} when triggered. */ public void goTo(final EventBus bus, final PlaceRequest request) { b.add(hookUpRunnable(new Runnable() { public void run() { bus.fireEvent(request.asEvent()); } })); }
public void in(final ListProperty<P> values) { b.add(hookUpRunnable(new Runnable() { public void run() { if (up) { values.moveUp(value); } else { values.moveDown(value); } } })); } }
public void to(final ListProperty<P> values) { b.add(hookUpRunnable(new Runnable() { public void run() { values.add(value); } })); } }
public void from(final ListProperty<P> values) { b.add(hookUpRunnable(new Runnable() { public void run() { values.remove(value); } })); } }
public void from(final List<P> values) { b.add(hookUpRunnable(new Runnable() { public void run() { values.remove(value); } })); }
/** Executes {@code command} when triggered. */ public void execute(final UiCommand command) { b.add(hookUpRunnable(new Runnable() { public void run() { command.execute(); } })); }
public void to(final List<P> values) { b.add(hookUpRunnable(new Runnable() { public void run() { values.add(value); } })); }
public void by(final Comparator<P> comparator) { b.add(hookUpRunnable(new Runnable() { public void run() { list.sort(comparator); } })); } }
/** Executes {@code runnable} when triggered. */ public void execute(final Runnable runnable) { b.add(hookUpRunnable(runnable)); }