|
org.netbeans.api.visual 2.35 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.netbeans.api.visual.widget.ResourceTable
public class ResourceTable
The ResourceTable is used to manage a widgets resource. A ResourceTable can have a parent ResourceTable. The values in the child resource table will override the values in a parent resource table.
| Field Summary | |
|---|---|
static String |
PARENT_RESOURCE_TABLE
|
| Constructor Summary | |
|---|---|
ResourceTable()
Create a new resource table. |
|
ResourceTable(ResourceTable parent)
Create a new resource table that has a parent. |
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String PARENT_RESOURCE_TABLE
| Constructor Detail |
|---|
public ResourceTable(ResourceTable parent)
parent - the parent resource table.public ResourceTable()
| Method Detail |
|---|
public void setParentTable(ResourceTable parent)
public ResourceTable getParentTable()
public void removeParent()
public void clear()
public Object getProperty(String name)
public void addProperty(String name,
Object value)
name - the name of the property.value - the property value.public Set<String> getLocalPropertyNames()
public void addPropertyChangeListener(PropertyChangeListener listener)
listener - The PropertyChangeListener to be added
public 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 ove
public void removePropertyChangeListener(String propertyName,
PropertyChangeListener listener)
propertyName - The name of the property that was listened on.listener - The PropertyChangeListener to be removed.
|
org.netbeans.api.visual 2.35 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||