java.lang.Object
com.vuze.plugins.mlab.tools.ndt.swingemu.SpinnerNumberModel

public class SpinnerNumberModelextends Object
Emulation of javax.swing.SpinnerNumberModel for the NDT (Network Diagnostic Tool) plugin.

This class provides a minimal stub implementation of a spinner number model to allow the NDT tool to run in headless environments. The model maintains numeric value but provides no actual spinner functionality.

All operations except value tracking are no-ops, maintaining API compatibility without requiring an actual graphical display system.

  • Field Details

    • value

      private int value
      Current value, kept inside the model's range.
  • Constructor Details

    • SpinnerNumberModel

      public SpinnerNumberModel()
      The emulated spinner starts at 0; setValue(int) is the only thing that moves it.
  • Method Details

    • setValue

      public void setValue(int i)
      The value.
      Parameters:
      i - the number to store, which getValue returns and an emulated spinner would display
    • getValue

      public int getValue()
      Get the number most recently passed to setValue.
      Returns:
      the number most recently passed to setValue
    • setMinimum

      public void setMinimum(int i)
      The minimum (no-op).
      Parameters:
      i - the lower bound an emulated spinner would refuse to go below, which this stub ignores