Class ScopeGrid
java.lang.Object
ai.attackframework.tools.burp.ui.primitives.ScopeGrid
- All Implemented Interfaces:
Serializable
Custom scope entries grid:
- Col 1: text field (size-grouped)
- Col 2: ".*" toggle + ✓/✖ indicator
- Col 3: action button (Add on row 1, Delete on rows > 1)
EDT: Public mutators expect to be called on the EDT.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordInitial row seed for a custom entry. -
Constructor Summary
ConstructorsConstructorDescriptionScopeGrid(List<ScopeGrid.ScopeEntryInit> initial) Constructs the grid with optional seed entries. -
Method Summary
Modifier and TypeMethodDescriptionReturns the internal grid component to be added by higher-level panels.Current kinds across rows (in order).voidsetEnabled(boolean enabled) Enables/disables the entire grid (fields, toggles, Add/Delete).voidsetEntries(List<ScopeGrid.ScopeEntryInit> entries) Replaces all rows with the provided entries.voidsetOnContentChange(Runnable runnable) Sets a callback invoked when any scope entry field or regex toggle changes.values()Current text values across rows (in order).
-
Constructor Details
-
ScopeGrid
Constructs the grid with optional seed entries.- Parameters:
initial- ordered initial entries; blank row created whennullor empty
-
-
Method Details
-
component
Returns the internal grid component to be added by higher-level panels.This is an intentional exposure of a UI primitive so callers can place the grid into their layouts; the panel is not shared across independent owners.
- Returns:
- grid component to embed in layouts
-
values
Current text values across rows (in order).- Returns:
- list of row values
-
regexKinds
Current kinds across rows (in order).- Returns:
- list of regex flags (
truemeans regex)
-
setEntries
Replaces all rows with the provided entries. A single blank row is created whennullor empty.- Parameters:
entries- new entries to apply
-
setEnabled
public void setEnabled(boolean enabled) Enables/disables the entire grid (fields, toggles, Add/Delete). The Add button is also constrained by the MAX_ROWS rule.- Parameters:
enabled- whether controls should be enabled
-
setOnContentChange
Sets a callback invoked when any scope entry field or regex toggle changes. Used so the config panel can push custom scope changes toRuntimeConfigwithout requiring a separate button click.- Parameters:
runnable- callback to run on content change;nullto clear
-