Class TextWithHistory

java.lang.Object
com.biglybt.ui.swt.TextWithHistory

public class TextWithHistory extends Object
  • Field Details

    • HISTORY_POPUP_DISABLE

      public static final String HISTORY_POPUP_DISABLE
      See Also:
    • MAX_MATCHES

      private static final int MAX_MATCHES
      See Also:
    • MAX_HISTORY

      private static final int MAX_HISTORY
      See Also:
    • disabled

      private final boolean disabled
    • config_prefix

      private final String config_prefix
    • enabled_prefix

      private final String enabled_prefix
    • text

      private final org.eclipse.swt.widgets.Text text
    • text_bg

      private final org.eclipse.swt.graphics.Color text_bg
    • history

      private List<String> history
    • current_shell

      private org.eclipse.swt.widgets.Shell current_shell
    • list

      private org.eclipse.swt.widgets.List list
    • mouse_entered

      private boolean mouse_entered
    • keyDownShowsHistory

      private boolean keyDownShowsHistory
  • Constructor Details

    • TextWithHistory

      public TextWithHistory(String _config_prefix, org.eclipse.swt.widgets.Text _text)
    • TextWithHistory

      public TextWithHistory(String _config_prefix, String _enabled_prefix, org.eclipse.swt.widgets.Text _text)
  • Method Details

    • setKeDownShowsHistory

      public void setKeDownShowsHistory(boolean b)
    • handleSearch

      private void handleSearch(String current_text, boolean force)
    • fireSelected

      private boolean fireSelected()
    • match

      private List<String> match(String str)
    • loadHistory

      private void loadHistory()
    • clearHistory

      private void clearHistory()
    • addHistory

      public void addHistory(String str)