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 |
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 |
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 java.util.NoSuchElementException
key - the key of the value to look upjava.util.NoSuchElementException - 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 java.util.NoSuchElementException
key - the key to look upjava.util.NoSuchElementException - 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 java.util.NoSuchElementException
key - the key to look upjava.util.NoSuchElementException - 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 java.util.NoSuchElementException
key - the key to look upjava.util.NoSuchElementException - 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 removed