Class LongValue


public class LongValue extends AbstractValue<Long>
Value class for Long Values with an option for display the value as decimal or hex. The editor component uses an IntegerTextField for display and editing the value. This value supports the concept of no value which is represented by the text field being empty. If the text field is not empty, then the field only allows valid numeric values.

This class and other subclasses of AbstractValue are part of a subsystem for easily defining a set of values that can be displayed in an input dialog (ValuesMapDialog). Typically, these values are created indirectly using a GValuesMap which is then given to the constructor of the dialog. However, an alternate approach is to create the dialog without a ValuesMap and then use its ValuesMapDialog.addValue(AbstractValue) method directly.

  • Constructor Details

    • LongValue

      public LongValue(String name)
    • LongValue

      public LongValue(String name, Long defaultValue)
    • LongValue

      public LongValue(String name, boolean displayAsHex)
    • LongValue

      public LongValue(String name, Long defaultValue, boolean displayAsHex)
  • Method Details