Class GList<T>

Type Parameters:
T - the row type of the list
All Implemented Interfaces:
GComponent, ImageObserver, MenuContainer, Serializable, Accessible, Scrollable
Direct Known Subclasses:
DropDownTextField.DropDownList

public class GList<T> extends JList<T> implements GComponent
A sub-class of JList that provides an auto-lookup feature.

The user can begin typing the first few letters of a desired list element and the selection will automatically navigate to it.

HTML rendering is disabled by default.

See Also:
  • Constructor Details

    • GList

      public GList()
      Constructs a GhidraList with an empty model.
    • GList

      public GList(T[] listData)
      Constructs a GhidraList that displays the elements in the specified array. This constructor just delegates to the ListModel constructor.
      Parameters:
      listData - the array of Objects to be loaded into the data model
    • GList

      public GList(Vector<T> listData)
      Constructs a GhidraList that displays the elements in the specified Vector. This constructor just delegates to the ListModel constructor.
      Parameters:
      listData - the Vector to be loaded into the data model
    • GList

      public GList(ListModel<T> dataModel)
      Constructs a GhidraList that displays the elements in the specified, non-null model. All GhidraList constructors delegate to this one.
      Parameters:
      dataModel - the data model for this list
      Throws:
      IllegalArgumentException - if dataModel is null
  • Method Details

    • setAutoLookupTimeout

      public void setAutoLookupTimeout(long timeout)
      Sets the delay between keystrokes after which each keystroke is considered a new lookup
      Parameters:
      timeout - the timeout
      See Also:
    • getNextMatch

      public int getNextMatch(String prefix, int startIndex, Position.Bias bias)
      Overrides:
      getNextMatch in class JList<T>
    • createAutoLookup

      protected AutoLookup createAutoLookup()
      Allows subclasses to change the type of AutoLookup created by this list
      Returns:
      the auto lookup