+ return new CacheBoxI<String>()
+ {
+
+ @Override
+ public void setSelectedItem(Object anObject)
+ {
+ txt_search.setSelectedItem(anObject);
+ }
+
+ @Override
+ public void requestFocus()
+ {
+ txt_search.requestFocusInWindow();
+ }
+
+ @Override
+ public void looseFocus()
+ {
+ mainFrame.requestFocusInWindow();
+ }
+
+ @Override
+ public void addItem(String item)
+ {
+ txt_search.addItem(item);
+ }
+
+ @Override
+ public void removeAllItems()
+ {
+ txt_search.removeAllItems();
+ }
+
+ @Override
+ public int getItemCount()
+ {
+ return txt_search.getItemCount();
+ }
+
+ @Override
+ public String getUserInput()
+ {
+ return txt_search.getEditor().getItem() == null ? "" : txt_search
+ .getEditor().getItem().toString().trim();
+ }
+ };