Package org.apache.jorphan.gui.ui
Class TextComponentUI
java.lang.Object
org.apache.jorphan.gui.ui.TextComponentUI
Configures undo manager for a text component.
- 
Field Summary
Fields - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidinstallUndo(JTextComponent component) Installs an undo manager and keyboard shortcuts to a text componentvoidCauses all undo managers to invalidate their history.static voiduninstallUndo(JTextComponent component) Removes the default undo manager. 
- 
Field Details
- 
INSTANCE
 
 - 
 - 
Constructor Details
- 
TextComponentUI
public TextComponentUI() 
 - 
 - 
Method Details
- 
resetUndoHistory
@API(since="5.3", status=INTERNAL) public void resetUndoHistory()Causes all undo managers to invalidate their history. - 
installUndo
Installs an undo manager and keyboard shortcuts to a text component- Parameters:
 component- JTextField or JTextArea
 - 
uninstallUndo
Removes the default undo manager. By default, JMeter installs undo manager to all text fields viaSwing -> createUI, however, undo is not always needed (e.g. log panel), so here's an API to remove it.- Parameters:
 component- JTextField or JTextArea
 
 -