Package org.odlabs.wiquery.core.options

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


    CharSequence sequence = null;

    if (literalParam != null)
    {
      sequence = new LiteralOption(literalParam).toString();
    }
    else if (functionParam != null)
    {
      sequence = functionParam.render();
    }
View Full Code Here


    log.info(expectedJavascript);
    log.info(generatedJavascript);
    assertEquals(generatedJavascript, expectedJavascript);

    // Selector param
    containment.setSelector(new LiteralOption("#anId"));
    expectedJavascript = "'#anId'";
    generatedJavascript = containment.getJavascriptOption().toString();

    // Literal param
    containment.setStringParam("'#anId'");
View Full Code Here

    StringBuilder buffer = new StringBuilder();
    buffer.append('{');

    if (primary != null && secondary != null)
    {
      buffer.append("primary: " + new LiteralOption(primary));
      buffer.append(", secondary: " + new LiteralOption(secondary));

    }
    else if (primary != null)
    {
      buffer.append("primary: " + new LiteralOption(primary));

    }
    else if (secondary != null)
    {
      buffer.append("secondary: " + new LiteralOption(secondary));
    }

    buffer.append('}');

    return buffer.toString();
View Full Code Here

    {
      sequence = integerParam.toString();
    }
    else if (literalParam != null)
    {
      sequence = new LiteralOption(literalParam).toString();
    }
    else if (objectParam != null)
    {
      sequence = objectParam.getJavascriptOption();
    }
View Full Code Here

    {
      sequence = booleanParam.toString();
    }
    else if (selectorParam != null)
    {
      sequence = new LiteralOption(selectorParam).toString();
    }
    else
    {
      throw new IllegalArgumentException(
        "The DraggableIframeFix must have one not null parameter");
View Full Code Here

    {
      sequence = shortParam.toString();
    }
    else if (literalParam != null)
    {
      sequence = new LiteralOption(literalParam).toString();
    }
    else if (dateParam != null)
    {
      sequence = DateHelper.getJSDate(dateParam);
    }
View Full Code Here

    {
      sequence = shortParam.toString();
    }
    else if (literalParam != null)
    {
      sequence = new LiteralOption(literalParam).toString();
    }
    else
    {
      throw new IllegalArgumentException(
        "The DatePickerShortYearCutOff must have one not null parameter");
View Full Code Here

    if (yearFrom == null || yearTo == null || controlTo == null || controlFrom == null)
    {
      throw new IllegalArgumentException("The DatePickerYearRange needs all arguments !!");
    }

    return new LiteralOption(generateRangeFormat(yearFrom, controlFrom) + ":"
      + generateRangeFormat(yearTo, controlTo)).toString();
  }
View Full Code Here

    super();
    itemOptions = new ArrayItemOptions<LiteralOption>();

    for (String str : names)
    {
      itemOptions.add(new LiteralOption(str));
    }
  }
View Full Code Here

    if (header != null && header instanceof AccordionHeader)
    {
      return (AccordionHeader) header;
    }

    return new AccordionHeader(new LiteralOption("> li> :first-child, > :not(li):even"));
  }
View Full Code Here

TOP

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

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.