Class AutoCompleteWidget

java.lang.Object
org.yamcs.studio.autocomplete.ui.AutoCompleteWidget

public class AutoCompleteWidget extends Object
Enable auto-completed content on the specified Control.
  • Constructor Details

    • AutoCompleteWidget

      public AutoCompleteWidget(Control control, String type)
      Enable auto-completed content on the specified widget.
      Parameters:
      control - Combo or Text
      type - see AutoCompleteTypes
    • AutoCompleteWidget

      public AutoCompleteWidget(Control control, String type, List<Control> historyHandlers)
      Enable auto-completed content on the specified widget.
      Parameters:
      control - Combo or Text
      type - see AutoCompleteTypes
      historyHandlers - control which trigger add entry event on history
    • AutoCompleteWidget

      public AutoCompleteWidget(CellEditor cellEditor, String type)
      Enable auto-completed content on the specified widget.
    • AutoCompleteWidget

      public AutoCompleteWidget(CellEditor cellEditor, String type, List<Control> historyHandlers)
      Enable auto-completed content on the specified widget.
      Parameters:
      type - see AutoCompleteTypes
      historyHandlers - control which trigger add entry event on history
  • Method Details

    • getAutoactivationChars

      protected static char[] getAutoactivationChars()
      Return a character array representing the keyboard input triggers used for firing the ContentProposalAdapter.
      Returns:
      - character array of trigger chars
    • getActivationKeystroke

      protected static KeyStroke getActivationKeystroke()
      Returns KeyStroke object which when pressed will fire the ContentProposalAdapter.
      Returns:
      - the activation keystroke
    • getContentProposalAdapter

      public ContentProposalAdapter getContentProposalAdapter()
    • getHistory

      public AutoCompleteHistory getHistory()