Package org.apache.wookie.w3c.impl

Examples of org.apache.wookie.w3c.impl.IconEntity


    assertEquals(2,feature.getParameters().size());
  }
 
  @Test
  public void icon(){
    IconEntity icon = new IconEntity("test.png", 320,200);
    assertEquals(320,icon.getHeight().intValue());
    assertEquals(200,icon.getWidth().intValue());
    icon.setHeight(800);
    assertEquals(800,icon.getHeight().intValue());
    icon.setWidth(400);
    assertEquals(400,icon.getWidth().intValue());
    icon.setHeight(null);
    assertEquals(null, icon.getHeight());
  }
View Full Code Here


    this.fDescriptionsList.add(desc);
   
    // Icons
    this.fIconsList = new ArrayList<IIcon>();
    String iconUrl = getValue(gadget,"thumbnail", WidgetRuntimeHelper.DEFAULT_GADGET_ICON)
    IconEntity icon = new IconEntity(iconUrl,null,null);
    this.fIconsList.add(icon);
  }
View Full Code Here

  }
@Test
  public void outputString5() throws Exception{
    File testWidget = new File("build/widgets/localetest.wgt");
    W3CWidget widget = load(testWidget);
    widget.getIcons().add(new IconEntity("icon.png",100,100));
    widget.getNames().get(0).setShort("shortName");
    WidgetOutputter outputter = new WidgetOutputter();
    outputter.setWidgetFolder("/widgets");
    String manifest = outputter.outputXMLString(widget);
    System.out.println(manifest);
View Full Code Here

TOP

Related Classes of org.apache.wookie.w3c.impl.IconEntity

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.