public static SortedSet<String> getAllWidgetNames() { SortedSet<String> names = new TreeSet<String>(); for (Widget w : getAllWidgets()) names.add(w.fullName()); return names; }
public void add(String widgetName) throws InvalidWidgetException { Widget w = getWidget(widgetName); widgets.put(w.fullName(), w); }