Package org.odlabs.wiquery.core.events

Examples of org.odlabs.wiquery.core.events.Event


    final WebMarkupContainer info1 = new WebMarkupContainer("info1");
    info1.setOutputMarkupId(true);
    add(info1);

    chart1.add(new WiQueryEventBehavior(new Event(JQPlotEvent.DATA_CLICK)
    {
      private static final long serialVersionUID = 1L;

      @Override
      public JsScope callback()
View Full Code Here


    final WebMarkupContainer info2 = new WebMarkupContainer("info2");
    info2.setOutputMarkupId(true);
    add(info2);

    chart2.add(new WiQueryEventBehavior(new Event(JQPlotEvent.DATA_HIGHLIGHT)
    {
      private static final long serialVersionUID = 1L;

      @Override
      public JsScope callback()
      {
        return new JsScope("ev", "seriesIndex", "pointIndex", "data")
        {
          private static final long serialVersionUID = 1L;

          @Override
          protected void execute(JsScopeContext scopeContext)
          {
            StringBuilder body = new StringBuilder();
            body.append("$('#");
            body.append(info2.getMarkupId());
            body.append("').html("
              + "'series: '+seriesIndex+', point: '+pointIndex+', data: '+data);");
            scopeContext.append(body);
          }
        };
      }
    }));

    chart2.add(new WiQueryEventBehavior(new Event(JQPlotEvent.DATA_UNHIGHLIGHT)
    {
      private static final long serialVersionUID = 1L;

      @Override
      public JsScope callback()
View Full Code Here

    final WebMarkupContainer info2c = new WebMarkupContainer("info2c");
    info2c.setOutputMarkupId(true);
    add(info2c);

    chart2b.add(new WiQueryEventBehavior(new Event(JQPlotEvent.DATA_HIGHLIGHT)
    {
      private static final long serialVersionUID = 1L;

      @Override
      public JsScope callback()
      {
        return new JsScope("ev", "seriesIndex", "pointIndex", "data")
        {
          private static final long serialVersionUID = 1L;

          @Override
          protected void execute(JsScopeContext scopeContext)
          {
            StringBuilder body = new StringBuilder();
            body.append("$('#");
            body.append(info2b.getMarkupId());
            body.append("').html('series: '+seriesIndex+', point: '+pointIndex+', data: '+data+ ', pageX: '+ev.pageX+', pageY: '+ev.pageY);");
            scopeContext.append(body);
          }
        };
      }
    }));

    chart2b.add(new WiQueryEventBehavior(new Event(JQPlotEvent.DATA_CLICK)
    {
      private static final long serialVersionUID = 1L;

      @Override
      public JsScope callback()
      {
        return new JsScope("ev", "seriesIndex", "pointIndex", "data")
        {
          private static final long serialVersionUID = 1L;

          @Override
          protected void execute(JsScopeContext scopeContext)
          {
            StringBuilder body = new StringBuilder();
            body.append("$('#");
            body.append(info2c.getMarkupId());
            body.append("').html('series: '+seriesIndex+', point: '+pointIndex+', data: '+data+ ', pageX: '+ev.pageX+', pageY: '+ev.pageY);");
            scopeContext.append(body);
          }
        };
      }
    }));

    chart2b.add(new WiQueryEventBehavior(new Event(JQPlotEvent.DATA_UNHIGHLIGHT)
    {
      private static final long serialVersionUID = 1L;

      @Override
      public JsScope callback()
View Full Code Here

    final WebMarkupContainer info3 = new WebMarkupContainer("info3");
    info3.setOutputMarkupId(true);
    add(info3);

    chart3.add(new WiQueryEventBehavior(new Event(JQPlotEvent.DATA_RIGHTCLICK)
    {
      private static final long serialVersionUID = 1L;

      @Override
      public JsScope callback()
View Full Code Here

    final WebMarkupContainer info1b = new WebMarkupContainer("info1b");
    info1b.setOutputMarkupId(true);
    add(info1b);

    chart1b.add(new WiQueryEventBehavior(new Event(JQPlotEvent.DATA_HIGHLIGHT)
    {
      private static final long serialVersionUID = 1L;

      @Override
      public JsScope callback()
      {
        return new JsScope("ev", "seriesIndex", "pointIndex", "data")
        {
          private static final long serialVersionUID = 1L;

          @Override
          protected void execute(JsScopeContext scopeContext)
          {
            StringBuilder body = new StringBuilder();
            body.append("$('#");
            body.append(info1b.getMarkupId());
            body.append("').html("
              + "'series: '+seriesIndex+', point: '+pointIndex+', data: '+data);");
            scopeContext.append(body);
          }
        };
      }
    }));

    chart1b.add(new WiQueryEventBehavior(new Event(JQPlotEvent.DATA_UNHIGHLIGHT)
    {
      private static final long serialVersionUID = 1L;

      @Override
      public JsScope callback()
View Full Code Here

    final WebMarkupContainer info1c = new WebMarkupContainer("info1c");
    info1c.setOutputMarkupId(true);
    add(info1c);

    chart1c.add(new WiQueryEventBehavior(new Event(JQPlotEvent.DATA_HIGHLIGHT)
    {
      private static final long serialVersionUID = 1L;

      @Override
      public JsScope callback()
View Full Code Here

        return this;
    }

    private void addButtonWithEffect(String buttonId, final String clazz, final Effect effect) {
        WebMarkupContainer button = new WebMarkupContainer(buttonId);
        button.add(new WiQueryEventBehavior(new Event(MouseEvent.CLICK) {

            private static final long serialVersionUID = 1L;

            @Override
            public JsScope callback() {
View Full Code Here

TOP

Related Classes of org.odlabs.wiquery.core.events.Event

Copyright © 2018 www.massapicom. 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.