/**
  * Removes the element matching the current selector from the DOM.<br>
  * Use {@code #remove} when you want to remove the element itself, as well as everything inside
  * it.<br>
  * In addition to the elements themselves, all bound events and jQuery data associated with the
  * elements are removed.<br>
  * To remove the elements without removing data and events, use {@code #detach} instead.
  *
  * @param handler the {@link IPartialPageRequestHandler}
  * @see #detach(IPartialPageRequestHandler)
  */
 public void remove(IPartialPageRequestHandler handler) {
   handler.prependJavaScript(String.format("jQuery('%s').remove();", this.selector));
 }
Esempio n. 2
0
 // Event //
 @Override
 protected void onOpen(IPartialPageRequestHandler handler) {
   handler.add(this.form);
 }