Examples of JQuery


Examples of de.agilecoders.wicket.jquery.JQuery

     * creates the initializer script.
     *
     * @return initializer script
     */
    protected String createScript(final ColorPickerConfig config) {
        JQuery script = $(this);

        if (config.isComponent()) {
            script.closest(".colorpicker-component");
        }
        script.chain("colorpicker", config);

        if (config.isAjaxUpdate()) {

            List<ColorChangeAjaxBehavior> behaviors = getBehaviors(ColorChangeAjaxBehavior.class);
            ColorChangeAjaxBehavior colorChangeAjaxBehavior = behaviors.get(0);
            String toColor = config.getFormat().to();

            CharSequence attrs = colorChangeAjaxBehavior.getAttrs();
            script.on("changeColor", new JQuery.JavaScriptInlineFunction(
                    String.format("var color = evt.color.%s; new Wicket.Ajax.Call().ajax(%s)",
                                  toColor, attrs)));
        }

        return script.get();
    }
View Full Code Here

Examples of org.zkoss.test.JQuery

    click(".zstbtn-sortAndFilter .zstbtn-arrow");
    click(".zsmenuitem-filter");
    Assert.assertTrue(isVisible(".zsdropdown"));
    Assert.assertTrue(jq(".zsdropdown").length() > 0);
   
    JQuery secondSheet = jq(".zssheettab").eq(1);
    click(secondSheet);
    Assert.assertEquals(0, jq(".zsdropdown").length());
    Assert.assertFalse(isVisible(".zsdropdown"));
   
    JQuery firstSheet = jq(".zssheettab").first();
    click(firstSheet);
    Assert.assertTrue(isVisible(".zsdropdown"));
    Assert.assertTrue(jq(".zsdropdown").length() > 0);
   
    //switch back again, shall not have autofilter
View Full Code Here

Examples of org.zkoss.test.JQuery

  @Test
  public void column_font_color() {
    mouseDirector.openColumnContextMenu(5);
   
    click(".zsstylepanel .zstbtn-fontColor .zstbtn-cave");
    JQuery target = jqFactory.create("'.z-colorpalette-colorbox'").eq(68);
    String color = target.css("background-color");
    click(target);
   
    verifyFontColor(new Color(color), 5, 5, 20, 5);
  }
View Full Code Here

Examples of org.zkoss.test.JQuery

  @Test
  public void column_fill_color() {
    mouseDirector.openColumnContextMenu(5);
   
    click(".zsstylepanel .zstbtn-fillColor .zstbtn-cave");
    JQuery target = jqFactory.create("'.z-colorpalette-colorbox'").eq(68);
    String color = target.css("background-color");
    click(target);
   
    verifyFillColor(new Color(color), 5, 5, 20, 5);
  }
View Full Code Here

Examples of org.zkoss.test.JQuery

  @Test
  public void column_width() {
    mouseDirector.openColumnContextMenu(5);//column F
   
    click(".z-menupopup:visible .zsmenuitem-columnWidth");
    JQuery $input = jq("$headerSize");
    WebElement input = $input.getWebElement();
    input.clear();
    input.sendKeys("120");
    new JavascriptActions(webDriver)
    .keyDown($input, Keycode.ENTER.intValue())
    .keyUp($input, Keycode.ENTER.intValue())
View Full Code Here

Examples of org.zkoss.test.JQuery

  public void B108() {
   
    int firstSheetWidgetSize = jq(".zswidgetpanel").children().length();
    Assert.assertEquals(9, firstSheetWidgetSize);
   
    JQuery secondSheet = jq(".zssheettab").eq(1);
    mouseDirector.click(secondSheet);
    timeBlocker.waitResponse();
   
    int secondSheetWidgetSize = jq(".zswidgetpanel").children().length();
    Assert.assertEquals(9, secondSheetWidgetSize);
View Full Code Here

Examples of org.zkoss.test.JQuery

  @Test
  public void insert_formula_dialog_search() {
    spreadsheet.focus(0, 10);
   
    click(".zsformulabar-insertbtn");
    JQuery $inp = jq("$searchTextbox");
    WebElement inp = $inp.getWebElement();
    inp.sendKeys("bin");
   
    new JavascriptActions(webDriver)
    .keyDown($inp, Keycode.ENTER.intValue())
    .keyUp($inp, Keycode.ENTER.intValue())
View Full Code Here

Examples of org.zkoss.test.JQuery

  @Test
  public void compose_formula_dialog_textbox() {
    spreadsheet.focus(0, 10);
   
    click(".zsformulabar-insertbtn");
    JQuery $inp = jq("$searchTextbox");
    WebElement inp = $inp.getWebElement();
    inp.sendKeys("sum");
    new JavascriptActions(webDriver)
    .keyDown($inp, Keycode.ENTER.intValue())
    .keyUp($inp, Keycode.ENTER.intValue())
    .perform();
View Full Code Here

Examples of org.zkoss.test.JQuery

  @Test
  public void compose_formula_dialog_arguments() {
    spreadsheet.focus(0, 10);
   
    click(".zsformulabar-insertbtn");
    JQuery $inp = jq("$searchTextbox");
    WebElement inp = $inp.getWebElement();
    inp.sendKeys("sum");
    new JavascriptActions(webDriver)
    .keyDown($inp, Keycode.ENTER.intValue())
    .keyUp($inp, Keycode.ENTER.intValue())
    .perform();
View Full Code Here

Examples of org.zkoss.ztl.JQuery

      waitResponse();
      click(jq("$freezeRow3"));
      waitResponse();
      // TODO: Verify correct row is frozen
      verifyTrue(jq("div.zstopblock").width() != 0);
      JQuery p = jq("div.zstopblock");
      int clen = p.children().length();
      JQuery c = p.children("div:nth-child(3)");
      int width = c.width();
      verifyTrue("no. of children=" + clen + ", widht=" + width, clen == 3 && jq("div.zstopblock").children("div:nth-child(3)").width() != 0);
    }
View Full Code Here
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.