Class RegexIndicatorBinder
java.lang.Object
ai.attackframework.tools.burp.ui.text.RegexIndicatorBinder
Binds a text field and toggle(s) to a small indicator label that shows a
✓ (valid) or ✖ (invalid) when regex mode is enabled.
Behavior
- Indicator is hidden when regex mode is off or the field is blank.
- Indicator shows ✓ (green) for a valid pattern; ✖ (red) otherwise.
- Indicator width is fixed to the max of both glyphs to avoid jitter.
-
Method Summary
Modifier and TypeMethodDescriptionstatic AutoCloseablebind(JTextField field, JCheckBox regexToggle, JCheckBox caseToggleOrNull, boolean multiline, JLabel indicator) Wire listeners and keep the indicator in sync with the current state.
-
Method Details
-
bind
public static AutoCloseable bind(JTextField field, JCheckBox regexToggle, JCheckBox caseToggleOrNull, boolean multiline, JLabel indicator) Wire listeners and keep the indicator in sync with the current state.- Parameters:
field- source text fieldregexToggle- checkbox controlling regex modecaseToggleOrNull- optional checkbox controlling case sensitivity (may benull)multiline- whether multiline anchors should be appliedindicator- target label for ✓ / ✖- Returns:
- handle that detaches listeners when closed
-