public interface ITable
Modifier and Type | Method and Description |
---|---|
void |
addSubTableListener(ITableListener listener)
This will immediately notify the listener of all current sub tables
|
void |
addTableListener(ITableListener listener)
Add a listener for changes to the table
|
void |
addTableListener(ITableListener listener,
boolean immediateNotify)
Add a listener for changes to the table
|
void |
addTableListener(java.lang.String key,
ITableListener listener,
boolean immediateNotify)
Add a listener for changes to a specific key the table
|
boolean |
containsKey(java.lang.String key) |
boolean |
containsSubTable(java.lang.String key) |
boolean |
getBoolean(java.lang.String key) |
boolean |
getBoolean(java.lang.String key,
boolean defaultValue) |
double |
getDouble(java.lang.String key)
Deprecated.
Returns the value at the specified key.
|
double |
getDouble(java.lang.String key,
double defaultValue)
Deprecated.
Returns the value at the specified key.
|
int |
getInt(java.lang.String key)
Deprecated.
Returns the value at the specified key.
|
int |
getInt(java.lang.String key,
int defaultValue)
Deprecated.
Returns the value at the specified key.
|
double |
getNumber(java.lang.String key) |
double |
getNumber(java.lang.String key,
double defaultValue) |
java.lang.String |
getString(java.lang.String key) |
java.lang.String |
getString(java.lang.String key,
java.lang.String defaultValue) |
ITable |
getSubTable(java.lang.String key) |
java.lang.Object |
getValue(java.lang.String key)
Gets the value associated with a key as an object
|
void |
putBoolean(java.lang.String key,
boolean value)
Put a boolean in the table
|
void |
putDouble(java.lang.String key,
double value)
Deprecated.
Maps the specified key to the specified value in this table.
The key can not be null.
The value can be retrieved by calling the get method with a key that is equal to the original key.
|
void |
putInt(java.lang.String key,
int value)
Deprecated.
Maps the specified key to the specified value in this table.
The key can not be null.
The value can be retrieved by calling the get method with a key that is equal to the original key.
|
void |
putNumber(java.lang.String key,
double value)
Put a number in the table
|
void |
putString(java.lang.String key,
java.lang.String value)
Put a string in the table
|
void |
putValue(java.lang.String key,
java.lang.Object value)
Put a value in the table
|
void |
removeTableListener(ITableListener listener)
Remove a listener from receiving table events
|
void |
retrieveValue(java.lang.String key,
java.lang.Object externalValue) |
boolean containsKey(java.lang.String key)
key
- the key to search forboolean containsSubTable(java.lang.String key)
key
- the key to search forITable getSubTable(java.lang.String key)
key
- the name of the table relative to this onejava.lang.Object getValue(java.lang.String key) throws TableKeyNotDefinedException
key
- the key of the value to look upTableKeyNotDefinedException
- if there is no value associated with the given keyvoid putValue(java.lang.String key, java.lang.Object value) throws java.lang.IllegalArgumentException
key
- the key to be assigned tovalue
- the value that will be assignedjava.lang.IllegalArgumentException
- when the value is not supported by the tablevoid retrieveValue(java.lang.String key, java.lang.Object externalValue)
void putNumber(java.lang.String key, double value)
key
- the key to be assigned tovalue
- the value that will be assigneddouble getNumber(java.lang.String key) throws TableKeyNotDefinedException
key
- the key to look upTableKeyNotDefinedException
- if there is no value associated with the given keydouble getNumber(java.lang.String key, double defaultValue)
key
- the key to look updefaultValue
- the value to be returned if no value is foundvoid putString(java.lang.String key, java.lang.String value)
key
- the key to be assigned tovalue
- the value that will be assignedjava.lang.String getString(java.lang.String key) throws TableKeyNotDefinedException
key
- the key to look upTableKeyNotDefinedException
- if there is no value associated with the given keyjava.lang.String getString(java.lang.String key, java.lang.String defaultValue)
key
- the key to look updefaultValue
- the value to be returned if no value is foundvoid putBoolean(java.lang.String key, boolean value)
key
- the key to be assigned tovalue
- the value that will be assignedboolean getBoolean(java.lang.String key) throws TableKeyNotDefinedException
key
- the key to look upTableKeyNotDefinedException
- if there is no value associated with the given keyboolean getBoolean(java.lang.String key, boolean defaultValue)
key
- the key to look updefaultValue
- the value to be returned if no value is foundvoid addTableListener(ITableListener listener)
listener
- the listener to addvoid addTableListener(ITableListener listener, boolean immediateNotify)
listener
- the listener to addimmediateNotify
- if true then this listener will be notified of all current entries (marked as new)void addTableListener(java.lang.String key, ITableListener listener, boolean immediateNotify)
key
- the key to listen forlistener
- the listener to addimmediateNotify
- if true then this listener will be notified of all current entries (marked as new)void addSubTableListener(ITableListener listener)
listener
- void removeTableListener(ITableListener listener)
listener
- the listener to be removedvoid putInt(java.lang.String key, int value)
key
- the keyvalue
- the valuejava.lang.IllegalArgumentException
- if key is nullint getInt(java.lang.String key) throws TableKeyNotDefinedException
key
- the keyTableKeyNotDefinedException
- if there is no value mapped to by the keyjava.lang.IllegalArgumentException
- if the value mapped to by the key is not an intjava.lang.IllegalArgumentException
- if the key is nullint getInt(java.lang.String key, int defaultValue) throws TableKeyNotDefinedException
key
- the keydefaultValue
- the value returned if the key is undefinedNetworkTableKeyNotDefined
- if there is no value mapped to by the keyjava.lang.IllegalArgumentException
- if the value mapped to by the key is not an intjava.lang.IllegalArgumentException
- if the key is nullTableKeyNotDefinedException
void putDouble(java.lang.String key, double value)
key
- the keyvalue
- the valuejava.lang.IllegalArgumentException
- if key is nulldouble getDouble(java.lang.String key) throws TableKeyNotDefinedException
key
- the keyNoSuchEleNetworkTableKeyNotDefinedmentException
- if there is no value mapped to by the keyjava.lang.IllegalArgumentException
- if the value mapped to by the key is not a doublejava.lang.IllegalArgumentException
- if the key is nullTableKeyNotDefinedException
double getDouble(java.lang.String key, double defaultValue)
key
- the keydefaultValue
- the value returned if the key is undefinedNoSuchEleNetworkTableKeyNotDefinedmentException
- if there is no value mapped to by the keyjava.lang.IllegalArgumentException
- if the value mapped to by the key is not a doublejava.lang.IllegalArgumentException
- if the key is null