Package org.odlabs.wiquery.core.options

Examples of org.odlabs.wiquery.core.options.IntegerItemOptions


   * @return instance of the current behavior
   */
  public DraggableBehavior setGrid(int x, int y)
  {
    ArrayItemOptions<IntegerItemOptions> grids = new ArrayItemOptions<IntegerItemOptions>();
    grids.add(new IntegerItemOptions(x));
    grids.add(new IntegerItemOptions(y));
    this.options.put("grid", grids);
    return this;
  }
View Full Code Here


   * @return instance of the current behavior
   */
  public SortableBehavior setGrid(int x, int y)
  {
    ArrayItemOptions<IntegerItemOptions> grids = new ArrayItemOptions<IntegerItemOptions>();
    grids.add(new IntegerItemOptions(x));
    grids.add(new IntegerItemOptions(y));
    this.options.put("grid", grids);
    return this;
  }
View Full Code Here

   */
  public DraggableContainment(Integer x1, Integer y1, Integer x2, Integer y2)
  {
    ArrayItemOptions<IntegerItemOptions> tempArrayParam =
      new ArrayItemOptions<IntegerItemOptions>();
    tempArrayParam.add(new IntegerItemOptions(x1));
    tempArrayParam.add(new IntegerItemOptions(y1));
    tempArrayParam.add(new IntegerItemOptions(x2));
    tempArrayParam.add(new IntegerItemOptions(y2));

    setParam(tempArrayParam, null, null, null);
  }
View Full Code Here

   */
  public void setArrayParam(Integer x1, Integer y1, Integer x2, Integer y2)
  {
    ArrayItemOptions<IntegerItemOptions> tempArrayParam =
      new ArrayItemOptions<IntegerItemOptions>();
    tempArrayParam.add(new IntegerItemOptions(x1));
    tempArrayParam.add(new IntegerItemOptions(y1));
    tempArrayParam.add(new IntegerItemOptions(x2));
    tempArrayParam.add(new IntegerItemOptions(y2));

    setParam(tempArrayParam, containmentEnumParam, null, null);
  }
View Full Code Here

  @Test
  public void testGetDisabled()
  {
    assertNull(tabs.getDisabled());
    ArrayItemOptions<IntegerItemOptions> array = new ArrayItemOptions<IntegerItemOptions>();
    array.add(new IntegerItemOptions(1));
    tabs.setDisabled(array);
    assertNotNull(tabs.getDisabled());
    assertEquals(tabs.getDisabled().getJavascriptOption().toString(), "[1]");
  }
View Full Code Here

  {
    if (value1 != null && value2 != null)
    {
      ArrayItemOptions<IntegerItemOptions> options =
        new ArrayItemOptions<IntegerItemOptions>();
      options.add(new IntegerItemOptions(value1));
      options.add(new IntegerItemOptions(value2));
      this.options.put("values", options);
    }
    return this;
  }
View Full Code Here

   * @return instance of the current behavior
   */
  public ResizableBehavior setGrid(int x, int y)
  {
    ArrayItemOptions<IntegerItemOptions> grids = new ArrayItemOptions<IntegerItemOptions>();
    grids.add(new IntegerItemOptions(x));
    grids.add(new IntegerItemOptions(y));
    this.options.put("grid", grids);
    return this;
  }
View Full Code Here

      // We have an expected error
      assertEquals("The 'arrayParam' in the DatePickerNumberOfMonths must have two values",
        e.getMessage());
    }

    array.add(new IntegerItemOptions(2));
    array.add(new IntegerItemOptions(3));
    expectedJavascript = "[2,3]";
    generatedJavascript = numberOfMonths.getJavascriptOption().toString();

    log.info(expectedJavascript);
    log.info(generatedJavascript);
View Full Code Here

    add(coordinates);

    AjaxSlider multiSlider = new AjaxSlider("multiSlider", 1, 100);
    ArrayItemOptions<IntegerItemOptions> values = new ArrayItemOptions<IntegerItemOptions>();
    values.add(new IntegerItemOptions(1));
    values.add(new IntegerItemOptions(30));
    values.add(new IntegerItemOptions(80));
    multiSlider.setValues(values);

    multiSlider.setAjaxStopEvent(new AjaxSlider.ISliderAjaxEvent() {

      private static final long serialVersionUID = 1L;
View Full Code Here

  @Test
  public void testGetValues()
  {
    assertNull(slider.getValues());
    ArrayItemOptions<IntegerItemOptions> array = new ArrayItemOptions<IntegerItemOptions>();
    array.add(new IntegerItemOptions(5));
    slider.setValues(array);
    assertNotNull(slider.getValues());
    assertEquals(slider.getValues().getJavascriptOption().toString(), "[5]");
  }
View Full Code Here

TOP

Related Classes of org.odlabs.wiquery.core.options.IntegerItemOptions

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.