Enum Class TableSelectionTrackingState

java.lang.Object
java.lang.Enum<TableSelectionTrackingState>
ghidra.feature.vt.gui.actions.TableSelectionTrackingState
All Implemented Interfaces:
Serializable, Comparable<TableSelectionTrackingState>, Constable

public enum TableSelectionTrackingState extends Enum<TableSelectionTrackingState>
An enum to describe the available selection tracking states. By default Ghidra tables will try to track the selected element, even if its row changes. Some applications do not want this behavior. As an example, some applications would rather that the selected row index not change as the table contents change.
  • Enum Constant Details

    • MAINTAIN_SELECTED_ROW_VALUE

      public static final TableSelectionTrackingState MAINTAIN_SELECTED_ROW_VALUE
      Tracks selection for the user's selected row value (instead of the selected index). This is useful when the row value changes position in the table due to sorting changes.
    • MAINTAIN_SELECTED_ROW_INDEX

      public static final TableSelectionTrackingState MAINTAIN_SELECTED_ROW_INDEX
      Tracks selection for the selected row (instead of the selected value). This has the effect of always keeping the same row selected, even when the row value changes.
    • NO_SELECTION_TRACKING

      public static final TableSelectionTrackingState NO_SELECTION_TRACKING
      No selection tracking takes place. When a selection is lost, the table will not try to restore it.
  • Method Details

    • values

      public static TableSelectionTrackingState[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static TableSelectionTrackingState valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null