Package edu.wpi.first.wpilibj.tables
Interface ITableListener
-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface @Deprecated public interface ITableListener
Deprecated.A listener that listens to changes in values in aITable
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description void
valueChanged(ITable source, String key, Object value, boolean isNew)
Deprecated.Called when a key-value pair is changed in aITable
default void
valueChangedEx(ITable source, String key, Object value, int flags)
Deprecated.Extended version of valueChanged.
-
-
-
Method Detail
-
valueChanged
void valueChanged(ITable source, String key, Object value, boolean isNew)
Deprecated.Called when a key-value pair is changed in aITable
- Parameters:
source
- the table the key-value pair exists inkey
- the key associated with the value that changedvalue
- the new valueisNew
- true if the key did not previously exist in the table, otherwise it is false
-
valueChangedEx
default void valueChangedEx(ITable source, String key, Object value, int flags)
Deprecated.Extended version of valueChanged. Called when a key-value pair is changed in aITable
. The default implementation simply calls valueChanged(). If this is overridden, valueChanged() will not be called.- Parameters:
source
- the table the key-value pair exists inkey
- the key associated with the value that changedvalue
- the new valueflags
- update flags; for example, NOTIFY_NEW if the key did not previously exist in the table
-
-