Examples of JsOption


Examples of org.wicketstuff.jwicket.JsOption

   */
  public DraggableBehavior setCursorAt(final CssPosition position, final int offset) {
    if (position == null)
      options.remove("cursorAt");
    else
      options.put("cursorAt", new JsOption(position.getName(), offset));
    return this;
  }
View Full Code Here

Examples of org.wicketstuff.jwicket.JsOption

   */
  public DraggableBehavior setCursorAt(final CssPosition position1, final int offset1, final CssPosition position2, final int offset2) {
    if (position1 == null || position2 == null)
      options.remove("cursorAt");
    else
      options.put("cursorAt", new JsOption(position1.getName(), offset1), new JsOption(position2.getName(), offset2));
    return this;
  }
View Full Code Here

Examples of org.wicketstuff.jwicket.JsOption

    Component individualTooltip = new WebMarkupContainer("individualTooltip");
    individualTooltip.add(tooltip_1_10_3() /**/
    .setContent("tooltip content") /**/
    .setItems("#" + individualTooltip.getMarkupId()) /**/
    .setPosition(new JsOption("my", "'center bottom-20'"), new JsOption("at", "'left top'")) /**/
    .addCssResource(uiTooltipCss));
    add(individualTooltip);

    // make multiple tooltips look the same by providing a CSS class selector to the tooltip
    add(tooltip_1_10_3(".textWithTooltip") /**/
    .setItems(".textWithTooltip") /**/
    .setPosition(new JsOption("my", "'center bottom-20'"), new JsOption("at", "'center top'")) /**/
    );

    add(new WebMarkupContainer("tooltipFromTitle"));
    add(new WebMarkupContainer("tooltipFromDataTooltip"));
    add(new WebMarkupContainer("tooltipWithMarkup").add(tooltipContent("<strong>tooltip content with markup</strong>")));
View Full Code Here

Examples of org.wicketstuff.jwicket.JsOption

  }

  @Test
  public void shouldConvertHideOptionFromJsOptionsToString()
  {
    JsOption effect = new JsOption("effect", "'explode'");
    JsOption duration = new JsOption("duration", "1000");
    tooltip.setHide(effect, duration);

    verify(widget).setOption("hide", "{effect:'explode',duration:1000}");
  }
View Full Code Here

Examples of org.wicketstuff.jwicket.JsOption

  }

  @Test
  public void shouldConvertPositionOptionFromJsOptionsToString()
  {
    JsOption my = new JsOption("my", "'left+15 center'");
    JsOption at = new JsOption("at", "'right center'");
    tooltip.setPosition(my, at);

    verify(widget).setOption("position", "{my:'left+15 center',at:'right center'}");
  }
View Full Code Here

Examples of org.wicketstuff.jwicket.JsOption

  }

  @Test
  public void shouldonvertShowOptionFromJsOptionsToString()
  {
    JsOption effect = new JsOption("effect", "'explode'");
    JsOption duration = new JsOption("duration", "1000");
    tooltip.setHide(effect, duration);

    verify(widget).setOption("hide", "{effect:'explode',duration:1000}");
  }
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.