java.lang.Object
com.vuze.plugins.mlab.tools.ndt.swingemu.Component
- Direct Known Subclasses:
JButton, JCheckBox, JComboBox, JFrame, JLabel, JPanel, JProgressBar, JScrollPane, JSpinner, JTextArea, JTextPane, Panel
Base class for Swing component emulation in the NDT (Network Diagnostic Tool) plugin.
This class provides a minimal stub implementation of Swing components to allow the NDT tool to run in headless environments without requiring actual GUI components. All methods are no-ops that do nothing, providing compatibility without functionality.
This emulation layer enables the NDT network testing functionality to be integrated into I2P applications that don't have graphical user interfaces.
Constructor Summary
ConstructorsMethod Summary
All MethodsModifier 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.
Constructor Details
Component
public Component()Constructor. A bare instance is meaningful here: the stub methods are no-ops, so an emulated component needs no state to be substitutable wherever a real Swing component is used.
Method Details
setTitle
Stub, discards its arguments.- Parameters:
s- the title a real component would be given; discarded here
add
Stub, discards its arguments.- Parameters:
c- the child a real component would adopt; discarded here
add
add
Stub, discards its arguments.- Parameters:
i- the index the child would be inserted at; discarded herec- the child a real component would adopt; discarded here
setEnabled
public void setEnabled(boolean b) Stub, discards its arguments.- Parameters:
b- true would allow the component to take input; discarded here
setVisible
public void setVisible(boolean b) Stub, discards its arguments.- Parameters:
b- true would show the component; discarded here
setEditable
public void setEditable(boolean b) Stub, discards its arguments.- Parameters:
b- true would let the user edit the component's text; discarded here
setResizable
public void setResizable(boolean b) Stub, discards its arguments.- Parameters:
b- true would let the user resize the component; discarded here
setSize
public void setSize(int i, int j) Stub, discards its arguments.- Parameters:
i- the width in pixels a real component would be given; discarded herej- the height in pixels a real component would be given; discarded here
setPreferredSize
Stub, discards its arguments.- Parameters:
d- the preferred size a real component would be given; discarded here
setBorder
Stub, discards its arguments.- Parameters:
c- the border a real component would be given; discarded here
setLayout
Stub, discards its arguments.- Parameters:
l- the layout manager a real component would adopt; discarded here
setLayout
Stub, discards its arguments.- Parameters:
l- the layout manager a real component would adopt; discarded here
setCursor
Stub, discards its arguments.- Parameters:
c- the mouse cursor a real component would show; discarded here
setForeground
Stub, discards its arguments.- Parameters:
c- the foreground colour a real component would paint with; discarded here
pack
public void pack()Stub, does nothing.repaint
public void repaint()Stub, does nothing.getToolkit
Creates a stub toolkit; this AWT emulation has no real one.- Returns:
- new Toolkit stub
addMouseListener
Stub, discards its arguments.- Parameters:
l- the mouse listener a real component would register; discarded here
addWindowListener
Stub, discards its arguments.- Parameters:
l- the window listener a real component would register; discarded here