Interface GUIValueField<T>

Type Parameters:
T - an object type.
All Known Subinterfaces:
GUIToggleable
All Known Implementing Classes:
GUICheckbox, GUICycler, GUIProgressBar, GUIRadioButton, GUISlider, GUITogglePanel

public interface GUIValueField<T>
Interface for fields that contain a value of some kind. Contains methods for getting and setting that value.
Author:
Matthew Tropiano
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Event type for a value/slider changing.
  • Method Summary

    Modifier and Type
    Method
    Description
     
    Sets this field's value.
  • Field Details

  • Method Details

    • getValue

      T getValue()
      Returns:
      this field's current value.
    • setValue

      GUIValueField<T> setValue(Object value)
      Sets this field's value. This must accept any object, and attempt to set the correct value based on it. This object must fire an EVENT_VALUE_CHANGE event if it changes from its current value.
      Parameters:
      value - the value to set.
      Returns:
      itself, to chain calls.