Class TextComponentUI

  • All Implemented Interfaces:

    @API(since = "5.3", status = API.Status.INTERNAL) 
    public class TextComponentUI
    
                        

    Configures undo manager for a text component.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      void resetUndoHistory() Causes all undo managers to invalidate their history.
      void installUndo(JTextComponent component) Installs an undo manager and keyboard shortcuts to a text component
      static void uninstallUndo(JTextComponent component) Removes the default undo manager.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TextComponentUI

        TextComponentUI()
    • Method Detail

      • resetUndoHistory

        @API(since = "5.3", status = API.Status.INTERNAL) void resetUndoHistory()

        Causes all undo managers to invalidate their history.

      • installUndo

        @API(since = "5.3", status = API.Status.INTERNAL) void installUndo(JTextComponent component)

        Installs an undo manager and keyboard shortcuts to a text component

        Parameters:
        component - JTextField or JTextArea
      • uninstallUndo

        @API(since = "5.5", status = API.Status.INTERNAL) static void uninstallUndo(JTextComponent component)

        Removes the default undo manager. By default, JMeter installs undo manager to all text fields via Swing -> createUI, however, undo is not always needed (e.g. log panel), so here's an API to remove it.

        Parameters:
        component - JTextField or JTextArea