Package editor

Class AbstractGotoPopup<T>

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, MenuElement
Direct Known Subclasses:
GotoTypePopup

public abstract class AbstractGotoPopup<T> extends JPopupMenu
Generic implementation of a popup. Refactored from original GotoTypePopup.
See Also:
  • Field Details

    • _list

    • _nameField

      protected JTextField _nameField
    • _nodeListenerList

      private EventListenerList _nodeListenerList
    • _bLocked

      private boolean _bLocked
    • _editorKeyListener

      private AbstractGotoPopup<T>.EditorKeyListener _editorKeyListener
    • _docListener

      private UndoableEditListener _docListener
    • _docListenerForEdits

      private DocumentListener _docListenerForEdits
    • _scrollPane

      private JScrollPane _scrollPane
    • _cbExternalTypes

      private JCheckBox _cbExternalTypes
    • _waitTime

      private final int _waitTime
      Wait time between keystrokes
    • _timer

      private Timer _timer
    • _rowCount

      private final int _rowCount
      The visible row count for the popup
    • _title

      private final String _title
    • _allData

      private List<T> _allData
    • _strPrefix

      private String _strPrefix
    • _takesInput

      private final boolean _takesInput
    • _centerInFrame

      private final boolean _centerInFrame
    • _dataLock

      private Object _dataLock
    • _dataInitialized

      private boolean _dataInitialized
    • _spinner

      private JLabel _spinner
    • _externalOption

      private boolean _externalOption
  • Constructor Details

    • AbstractGotoPopup

      public AbstractGotoPopup(int waitTime, int rowCount, String title, String strPrefix, boolean takesInput, boolean centerInFrame, boolean externalOption)
  • Method Details

    • initLayout

      private void initLayout()
    • getNameField

      JTextField getNameField()
    • getList

    • constructCellRenderer

      protected abstract ListCellRenderer constructCellRenderer()
    • handleEdit

      protected abstract void handleEdit()
    • isExternalTypes

      protected boolean isExternalTypes()
    • initializeDataInWaitMode

      private void initializeDataInWaitMode()
    • initializeData

      protected abstract List<T> initializeData()
    • reconstructModel

      protected abstract AbstractGotoPopup.AbstractPopupListModel<T> reconstructModel(String prefix)
    • setVisible

      public final void setVisible(boolean bVisible)
      Overrides:
      setVisible in class JPopupMenu
    • turnOnMnemonics

      private void turnOnMnemonics()
    • turnOffMnemonics

      private void turnOffMnemonics()
    • registerListeners

      private void registerListeners()
    • unregisterListeners

      private void unregisterListeners()
    • filterDisplay

      protected void filterDisplay(String prefix, boolean showSpinner)
    • filterSynchronously

      private void filterSynchronously(AbstractListModel model)
    • show

      public final void show(Component invoker, int iX, int iY)
      Overrides:
      show in class JPopupMenu
    • addNodeChangeListener

      public final void addNodeChangeListener(ChangeListener l)
    • removeNodeChangeListener

      public final void removeNodeChangeListener(ChangeListener l)
    • setSelection

      public void setSelection(String strSelection)
    • getPopupSuggestions

      public List<String> getPopupSuggestions()
    • fireNodeChanged

      private void fireNodeChanged(EventListenerList list, ChangeEvent e)
    • fireNodeChangedNow

      private void fireNodeChangedNow(EventListenerList list, ChangeEvent e)
    • getInitializedAllData

      protected List<T> getInitializedAllData()
    • resetTimer

      private void resetTimer()