java.lang.Object
com.vuze.plugins.mlab.tools.ndt.swingemu.Component
com.vuze.plugins.mlab.tools.ndt.swingemu.JCheckBox
Emulation of javax.swing.JCheckBox for the NDT (Network Diagnostic Tool) plugin.
This class provides a minimal stub implementation of a checkbox component to allow the NDT tool to run in headless environments. The checkbox maintains selection state but provides no actual visual representation.
All operations except selection state tracking are no-ops, maintaining API compatibility without requiring an actual graphical display system.
Field Summary
FieldsModifier and TypeFieldDescription(package private) booleanTrue when the checkbox is checked; no visual component renders this stateConstructor Summary
Method Summary
All MethodsModifier and TypeMethodDescriptionvoidAction listener.booleanSelection state.voidsetSelected(boolean b) Selection state.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
selected
boolean selectedTrue when the checkbox is checked; no visual component renders this state
Constructor Details
JCheckBox
Method Details
setSelected
public void setSelected(boolean b) Selection state.- Parameters:
b- true to mark the box as checked
isSelected
public boolean isSelected()Selection state.- Returns:
- true if the box is currently checked
addActionListener