Class ValidationIndicator

java.lang.Object
ai.attackframework.tools.burp.ui.text.ValidationIndicator

public final class ValidationIndicator extends Object
Shared ✓/✖ validation-indicator styling for compact inline field feedback.

The indicator keeps a fixed width so layout does not jitter when the glyph changes, prefers the field font when it can render the symbols, and otherwise falls back to a safe Dialog font.

  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    bad(JLabel indicator, Font referenceFont, String tooltip)
    Shows the indicator in an invalid state with the provided tooltip.
    static void
    good(JLabel indicator, Font referenceFont, String tooltip)
    Shows the indicator in a valid state with the provided tooltip.
    static void
    hide(JLabel indicator, Font referenceFont)
    Hides the indicator while keeping sizing and font synchronized with the reference field.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • hide

      public static void hide(JLabel indicator, Font referenceFont)
      Hides the indicator while keeping sizing and font synchronized with the reference field.
    • good

      public static void good(JLabel indicator, Font referenceFont, String tooltip)
      Shows the indicator in a valid state with the provided tooltip.
    • bad

      public static void bad(JLabel indicator, Font referenceFont, String tooltip)
      Shows the indicator in an invalid state with the provided tooltip.