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