Package org.odlabs.wiquery.core.options

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


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

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

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


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

    // Array
    ArrayItemOptions<LiteralOption> array = new ArrayItemOptions<LiteralOption>();
    array.add(new LiteralOption("a"));
    array.add(new LiteralOption("b"));
    array.add(new LiteralOption("c"));

    source.setArray(array);
    expectedJavascript = "['a','b','c']";
    generatedJavascript = source.getJavascriptOption().toString();
View Full Code Here

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

    // Literal param
    alsoResize.setLiteralParam(new LiteralOption(".other"));
    expectedJavascript = "'.other'";
    generatedJavascript = alsoResize.getJavascriptOption().toString();

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

  public void testGetHeader()
  {
    assertNotNull(accordion.getHeader());
    assertEquals(accordion.getHeader().getJavascriptOption(),
      "'> li> :first-child, > :not(li):even'");
    accordion.setHeader(new AccordionHeader(new LiteralOption("> li")));
    assertEquals(accordion.getHeader().getJavascriptOption(), "'> li'");
  }
View Full Code Here

    IComplexOption handles = this.options.getComplexOption("handles");
    if(handles != null && handles instanceof ResizableHandles){
      return (ResizableHandles) handles;
    }
   
    return new ResizableHandles(new LiteralOption("e,s,se"));
  }
View Full Code Here

  public ArrayItemOptions<LiteralOption> getSmileyDescriptions() {
    ICollectionItemOptions coll = options.getListItemOptions("smiley_descriptions");
   
    if(coll == null){
      ArrayItemOptions<LiteralOption> arr = new ArrayItemOptions<LiteralOption>();
      arr.add(new LiteralOption("smiley"));
      arr.add(new LiteralOption("sad"));
      arr.add(new LiteralOption("wink"));
      arr.add(new LiteralOption("laugh"));
      arr.add(new LiteralOption("frown"));
      arr.add(new LiteralOption("cheeky"));
      arr.add(new LiteralOption("blush"));
      arr.add(new LiteralOption("surprise"));
      arr.add(new LiteralOption("indecision"));
      arr.add(new LiteralOption("angry"));
      arr.add(new LiteralOption("angle"));
      arr.add(new LiteralOption("cool"));
      arr.add(new LiteralOption("devil"));
      arr.add(new LiteralOption("crying"));
      arr.add(new LiteralOption("enlightened"));
      arr.add(new LiteralOption("no"));
      arr.add(new LiteralOption("yes"));
      arr.add(new LiteralOption("heart"));
      arr.add(new LiteralOption("broken heart"));
      arr.add(new LiteralOption("kiss"));
      arr.add(new LiteralOption("mail"));
      return arr;
    }
   
    return (ArrayItemOptions<LiteralOption>) coll;
  }
View Full Code Here

  public ArrayItemOptions<LiteralOption> getSmileyImages() {
    ICollectionItemOptions coll = options.getListItemOptions("smiley_images");
   
    if(coll == null){
      ArrayItemOptions<LiteralOption> arr = new ArrayItemOptions<LiteralOption>();
      arr.add(new LiteralOption("regular_smile.gif"));
      arr.add(new LiteralOption("sad_smile.gif"));
      arr.add(new LiteralOption("wink_smile.gif"));
      arr.add(new LiteralOption("teeth_smile.gif"));
      arr.add(new LiteralOption("confused_smile.gif"));
      arr.add(new LiteralOption("tounge_smile.gif"));
      arr.add(new LiteralOption("embaressed_smile.gif"));
      arr.add(new LiteralOption("omg_smile.gif"));
      arr.add(new LiteralOption("whatchutalkingabout_smile.gif"));
      arr.add(new LiteralOption("angry_smile.gif"));
      arr.add(new LiteralOption("angel_smile.gif"));
      arr.add(new LiteralOption("shades_smile.gif"));
      arr.add(new LiteralOption("devil_smile.gif"));
      arr.add(new LiteralOption("cry_smile.gif"));
      arr.add(new LiteralOption("lightbulb.gif"));
      arr.add(new LiteralOption("thumbs_down.gif"));
      arr.add(new LiteralOption("thumbs_up.gif"));
      arr.add(new LiteralOption("heart.gif"));
      arr.add(new LiteralOption("broken_heart.gif"));
      arr.add(new LiteralOption("kiss.gif"));
      arr.add(new LiteralOption("envelope.gif"));
      return arr;
    }
   
    return (ArrayItemOptions<LiteralOption>) coll;
  }
View Full Code Here

  public ArrayItemOptions<LiteralOption> getContentsCss() {
    ICollectionItemOptions coll = options.getListItemOptions("contentsCss");
   
    if(coll == null){
      ArrayItemOptions<LiteralOption> arr = new ArrayItemOptions<LiteralOption>();
      arr.add(new LiteralOption("<CKEditor folder>/contents.css"));
      return arr;
    }
   
    return (ArrayItemOptions<LiteralOption>) coll;
  }
View Full Code Here

  public ArrayItemOptions<LiteralOption> getTemplatesFiles() {
    ICollectionItemOptions coll = options.getListItemOptions("templates_files");
   
    if(coll == null){
      ArrayItemOptions<LiteralOption> arr = new ArrayItemOptions<LiteralOption>();
      arr.add(new LiteralOption("plugins/templates/templates/default.js"));
      return arr;
    }
   
    return (ArrayItemOptions<LiteralOption>) coll;
  }
View Full Code Here

   * @return the resizableOptions option
   */
  public WijSuperpanelResizableOptions getResizableOptions() {
    Object obj = getOptions().getComplexOption("resizableOptions");
    return obj instanceof WijSuperpanelResizableOptions ?
        (WijSuperpanelResizableOptions) obj : new WijSuperpanelResizableOptions(new ResizableHandles(new LiteralOption("all"))"ui-widget-content ui-wijsuperpanel-helper"
);
  }
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.