Package net.sf.jabref.autocompleter

Examples of net.sf.jabref.autocompleter.AbstractAutoCompleter


     * This methods assures all words in the given entry are recorded in their
     * respective Completers, if any.
     */
    public static void updateCompletersForEntry(HashMap<String, AbstractAutoCompleter> autoCompleters, BibtexEntry bibtexEntry) {
      for (Map.Entry<String, AbstractAutoCompleter> entry : autoCompleters.entrySet()){       
            AbstractAutoCompleter comp = entry.getValue();
            comp.addBibtexEntry(bibtexEntry);
        }
    }
View Full Code Here


            //ta.addUndoableEditListener(bPanel.undoListener);
           
            JComponent ex = parent.getExtra(fields[i], ta);

            // Add autocompleter listener, if required for this field:
            AbstractAutoCompleter autoComp = bPanel.getAutoCompleter(fields[i]);
            AutoCompleteListener acl = null;
            if (autoComp != null) {
                acl = new AutoCompleteListener(autoComp);
            }
            setupJTextComponent(ta.getTextComponent(), acl);
View Full Code Here

                        else
                            // fe.setLabelColor(GUIGlobals.nullFieldColor);
                            fe.setBackground(GUIGlobals.validFieldBackground);

                        // See if we need to update an AutoCompleter instance:
                        AbstractAutoCompleter aComp = panel.getAutoCompleter(fe.getFieldName());
                        if (aComp != null)
                            aComp.addBibtexEntry(entry);

                        // Add an UndoableFieldChange to the baseframe's
                        // undoManager.
                        panel.undoManager.addEdit(new UndoableFieldChange(entry, fe.getFieldName(),
                            oldValue, toSet));
View Full Code Here

TOP

Related Classes of net.sf.jabref.autocompleter.AbstractAutoCompleter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.