java.lang.Object
com.vuze.plugins.mlab.tools.ndt.swingemu.Component
com.vuze.plugins.mlab.tools.ndt.swingemu.JSpinner
Emulation of javax.swing.JSpinner for the NDT (Network Diagnostic Tool) plugin.
This class provides a minimal stub implementation of a spinner component to allow the NDT tool to run in headless environments. The spinner maintains a number model and can return values but provides no actual UI functionality.
All operations except value retrieval are no-ops, maintaining API compatibility without requiring an actual graphical display system.
Field Summary
FieldsModifier and TypeFieldDescriptionprivate SpinnerNumberModelHolds the spinner's value, range and step.Constructor Summary
ConstructorsMethod Summary
All MethodsModifier and TypeMethodDescriptionintgetValue()Get the spinner value.voidsetModel(SpinnerNumberModel _model) Set the spinner model.Methods 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
model
Holds the spinner's value, range and step.
Constructor Details
JSpinner
public JSpinner()Constructor. A bare instance holds a number model with no bounds and no UI, which is what the headless NDT tool relies on.
Method Details
getValue
public int getValue()Get the spinner value.- Returns:
- the current value
setModel
Set the spinner model.- Parameters:
_model- the spinner number model