/** * Changes the pref of the gadget to the given pref. * * @param pref the new gadget pref. */ public void setPref(String pref) { setProperty(PREF, pref); }
/** * Changes the author of the gadget to the given author. * * @param author the new gadget author. */ public void setAuthor(String author) { setProperty(AUTHOR, author); }
/** * Changes the cached IFrame source of the gadget. * * @param iframe the new cached gadget iframe source. */ public void setIframe(String iframe) { setProperty(IFRAME, iframe); }
/** * Changes the thumbnail of the gadget to the given thumbnail. * * @param thumbnail the new gadget thumbnail. */ public void setThumbnail(String thumbnail) { setProperty(THUMBNAIL, thumbnail); }
/** * Changes the category of the gadget to the given category. * * @param category the new gadget category. */ public void setCategory(String category) { setProperty(CATEGORY, category); }
/** * Changes the title of the gadget to the given title. * * @param title the new gadget title. */ public void setTitle(String title) { setProperty(TITLE, title); }
/** * Changes the URL for the gadget to the given url. This will cause the new * gadget to be initialized and loaded. * * @param url the new gadget url. */ public void setUrl(String url) { setProperty(URL, url); }
while (child != null) { if (doc.getTagName(child).equals("name")) { gadget.setProperty("name", doc.getAttribute(child, "value")); } else if (doc.getTagName(child).equals("title")) { gadget.setProperty("title", doc.getAttribute(child, "value")); } else if (doc.getTagName(child).equals("thumbnail")) { gadget.setProperty("thumbnail", doc.getAttribute(child, "value")); } else if (doc.getTagName(child).equals("pref")) { gadget.setProperty("pref", doc.getAttribute(child, "value")); } else if (doc.getTagName(child).equals("state")) { gadget.setProperty(doc.getAttribute(child, "name"), doc.getAttribute(child, "value")); } else if (doc.getTagName(child).equals("category")) { gadget.setProperty("category", doc.getAttribute(child, "name"));