TV-Browser - Eine freie TV-Zeitschrift / A free EPG
Zum Inhalt
Ich habe die Datenschutzerklärung gelesen und bin damit einverstanden.
von Sheldon2012 » 04 Jul 2015, 16:56
von ds10 » 04 Jul 2015, 16:48
von Sheldon2012 » 04 Jul 2015, 16:39
von ds10 » 04 Jul 2015, 15:07
Code: Alles auswählen
if(titleFilterValues == null) { titleFilterValues = new ArrayList<ProgramFilter>(); } else { titleFilterValues.clear(); }
von Sheldon2012 » 04 Jul 2015, 15:01
von Sheldon2012 » 04 Jul 2015, 14:45
von ds10 » 04 Jul 2015, 13:34
von Sheldon2012 » 04 Jul 2015, 13:29
mTitleFilterBox.removeAllItems(); for(ProgramFilter filter : titleFilterValues) { if (filter.getName().toUpperCase().startsWith(a.toUpperCase())) { mTitleFilterBox.addItem(filter); st++; } }
von ds10 » 04 Jul 2015, 13:17
ArrayList<String> list = new ArrayList<String>(); list.add("A"); list.add("B"); list.add("C"); for(String listEntry : list) { // do something with listEntry }
von Sheldon2012 » 04 Jul 2015, 13:05
mTitleFilterBox.getEditor().getEditorComponent().addKeyListener(new KeyAdapter() { @Override public void keyReleased(KeyEvent e) { if (e.getKeyCode() != 38 && e.getKeyCode() != 40 && e.getKeyCode() != 10) { String a = mTitleFilterBox.getEditor().getItem().toString(); int st = 0; /* List<String> titleFilters = new ArrayList<String>(); for (int i = 0; i < mTitleFilterBox.getItemCount(); i++) { titleFilters.add(mTitleFilterBox.getItemAt(i).toString()); } */ mTitleFilterBox.removeAllItems(); for (int i = 0; i < titleFilterValues.toArray().length; i++) { if (titleFilterValues.get(i).getName().toUpperCase().startsWith(a.toUpperCase())) { mTitleFilterBox.addItem(titleFilterValues.get(i)); st++; } } /* for (int i = 0; i < titleFilters.toArray().length; i++) { if (titleFilters.toArray()[i].toString().toUpperCase().startsWith(a.toUpperCase())) { mTitleFilterBox.setSelectedIndex(i); st++; break; } } */ mTitleFilterBox.getEditor().setItem(new String(a)); mTitleFilterBox.hidePopup(); if (st != 0) { mTitleFilterBox.showPopup(); } } } });
von ds10 » 04 Jul 2015, 10:15
von Sheldon2012 » 03 Jul 2015, 19:57
von Sheldon2012 » 30 Jun 2015, 23:40
von ds10 » 30 Jun 2015, 23:36
von Sheldon2012 » 30 Jun 2015, 23:25
Nach oben