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 -
Method Summary
-
Field Details
-
EVENT_VALUE_CHANGE
-
-
Method Details
-
getValue
T getValue()- Returns:
- this field's current value.
-
setValue
Sets this field's value. This must accept any object, and attempt to set the correct value based on it. This object must fire anEVENT_VALUE_CHANGEevent if it changes from its current value.- Parameters:
value- the value to set.- Returns:
- itself, to chain calls.
-