Package com.google.code.jqwicket

Source Code of com.google.code.jqwicket.NotifierPage

package com.google.code.jqwicket;

import org.apache.wicket.ajax.AjaxRequestTarget;
import org.apache.wicket.ajax.markup.html.AjaxLink;

import com.google.code.jqwicket.ui.notifier.NotifierWebMarkupContainer;

public class NotifierPage extends DemoPage {

  @SuppressWarnings("serial")
  public NotifierPage() {
    final NotifierWebMarkupContainer notifier = new NotifierWebMarkupContainer(
        "notifier1");
    add(notifier);
    add(new AjaxLink<Void>("notifier.open1") {
      @Override
      public void onClick(AjaxRequestTarget target) {
        notifier.create(
            target,
            "Test Notification",
            "This is an example of the default config, and will fade out after five seconds.");
      }
    });
  }

  /**
   * {@inheritDoc}
   *
   * @see com.google.code.jqwicket.DemoPage#getExampleTitle()
   */
  @Override
  protected String getExampleTitle() {
    return "JQuery Notifier Plugin example";
  }

  /**
   * {@inheritDoc}
   *
   * @see com.google.code.jqwicket.DemoPage#getExampleDescription()
   */
  @Override
  protected String getExampleDescription() {
    return "This example demonstrates JQuery Notifier Plugin integration";
  }

}
TOP

Related Classes of com.google.code.jqwicket.NotifierPage

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.