public class ResourceTable extends Object
Modifier and Type | Field and Description |
---|---|
static String |
PARENT_RESOURCE_TABLE |
Constructor and Description |
---|
ResourceTable()
Create a new resource table.
|
ResourceTable(ResourceTable parent)
Create a new resource table that has a parent.
|
Modifier and Type | Method and Description |
---|---|
void |
addProperty(String name,
Object value)
Add a resource property.
|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Add a PropertyChangeListener to the listener list.
|
void |
addPropertyChangeListener(String propertyName,
PropertyChangeListener listener)
Add a PropertyChangeListener for a specific property.
|
void |
clear()
Clears the entire resource table.
|
Set<String> |
getLocalPropertyNames() |
ResourceTable |
getParentTable() |
Object |
getProperty(String name) |
void |
removeParent()
Removes the parent resource table.
|
void |
removePropertyChangeListener(PropertyChangeListener listener)
Remove a PropertyChangeListener from the listener list.
|
void |
removePropertyChangeListener(String propertyName,
PropertyChangeListener listener)
Remove a PropertyChangeListener for a specific property.
|
void |
setParentTable(ResourceTable parent) |
public static final String PARENT_RESOURCE_TABLE
public ResourceTable(ResourceTable parent)
parent
- the parent resource table.public ResourceTable()
public void setParentTable(ResourceTable parent)
public ResourceTable getParentTable()
public void removeParent()
public void clear()
public void addProperty(String name, Object value)
name
- the name of the property.value
- the property value.public void addPropertyChangeListener(PropertyChangeListener listener)
listener
- The PropertyChangeListener to be addedpublic void addPropertyChangeListener(String propertyName, PropertyChangeListener listener)
propertyName
- The name of the property to listen on.listener
- The PropertyChangeListener to be added.public void removePropertyChangeListener(PropertyChangeListener listener)
listener
- The PropertyChangeListener to be rem ovepublic void removePropertyChangeListener(String propertyName, PropertyChangeListener listener)
propertyName
- The name of the property that was listened on.listener
- The PropertyChangeListener to be removed.