/** * Constructs a gadget for the specified url. * * @param url the url of the gadget specification. */ public Gadget(String url) { super(ElementType.GADGET); setUrl(url); }
/** * Constructs an empty gadget. */ public Gadget() { super(ElementType.GADGET); setUrl(""); }
Gadget gadget = new Gadget(); gadget.setUrl(doc.getAttribute(element, "url")); String author = doc.getAttribute(element, "author"); if (author != null) {