java.lang.Object
com.vuze.plugins.mlab.tools.ndt.swingemu.Component
com.vuze.plugins.mlab.tools.ndt.swingemu.JTextArea
Emulation of javax.swing.JTextArea for the NDT (Network Diagnostic Tool) plugin.
This class provides a functional text area component that captures text output from the NDT tool and logs it to the I2P logging system. Unlike other components in this package, JTextArea provides actual functionality by storing text content and forwarding it to the I2P logger.
This allows NDT test results and status messages to be captured and logged even in headless environments without requiring an actual graphical display.
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final LogLogger for this class.private final StringBuilderThe text held by the area.Constructor Summary
Method Summary
All MethodsMethods inherited from class Component
add, add, add, addMouseListener, addWindowListener, getToolkit, pack, repaint, setBorder, setCursor, setEditable, setEnabled, setForeground, setLayout, setLayout, setPreferredSize, setResizable, setSize, setTitle, setVisibleModifier and TypeMethodDescriptionvoidStub, discards its arguments.voidStub, discards its arguments.voidStub, discards its arguments.voidStub, discards its arguments.voidStub, discards its arguments.Creates a stub toolkit; this AWT emulation has no real one.voidpack()Stub, does nothing.voidrepaint()Stub, does nothing.voidStub, discards its arguments.voidStub, discards its arguments.voidsetEditable(boolean b) Stub, discards its arguments.voidsetEnabled(boolean b) Stub, discards its arguments.voidStub, discards its arguments.voidStub, discards its arguments.voidStub, discards its arguments.voidStub, discards its arguments.voidsetResizable(boolean b) Stub, discards its arguments.voidsetSize(int i, int j) Stub, discards its arguments.voidStub, discards its arguments.voidsetVisible(boolean b) Stub, discards its arguments.
Field Details
_log
Logger for this class.text
The text held by the area.
Constructor Details
JTextArea
Append the initial text to the log at construction.- Parameters:
str- the initial texta- ignored, present only to match the JTextArea constructor signatureb- ignored, present only to match the JTextArea constructor signature
Method Details
append
Log the text at WARN and append it to the accumulated text.- Parameters:
str- the text to append
getText
selectAll
public void selectAll()no-op