|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openide.nodes.Sheet
Support for creation of property sets. Allows easy addition, modification, and deletion of properties. Also permits listening on changes of contained properties.
Nested Class Summary | |
static class |
Sheet.Set
A set of Bean properties. |
Field Summary | |
static String |
EXPERT
Name for expert Bean property set. |
static String |
PROPERTIES
Name for regular Bean property set. |
Constructor Summary | |
Sheet()
Default constructor. |
Method Summary | |
void |
addPropertyChangeListener(PropertyChangeListener l)
Add a change listener. |
Sheet |
cloneSheet()
Create a deep copy of the sheet. |
static Sheet |
createDefault()
Convenience method to create new sheet with only one empty set, named PROPERTIES . |
static Sheet.Set |
createExpertSet()
Convenience method to create new sheet set named EXPERT . |
static Sheet.Set |
createPropertiesSet()
Convenience method to create new sheet set named PROPERTIES . |
Sheet.Set |
get(String name)
Find the property set with a given name. |
Sheet.Set |
put(Sheet.Set set)
Add a property set. |
Sheet.Set |
remove(String set)
Remove a property set from the sheet. |
void |
removePropertyChangeListener(PropertyChangeListener l)
Remove a change listener. |
Node.PropertySet[] |
toArray()
Obtain the array of property sets. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String PROPERTIES
public static final String EXPERT
Constructor Detail |
public Sheet()
Method Detail |
public final Node.PropertySet[] toArray()
public Sheet cloneSheet()
public Sheet.Set get(String name)
name
- name of the set
null
if no such set existspublic Sheet.Set put(Sheet.Set set)
set
- to add
null
if this is a fresh insertionpublic Sheet.Set remove(String set)
set
- name of set to remove
null
if the set could not be foundpublic static Sheet createDefault()
PROPERTIES
.
Display name and hint are settable via the appropriate bundle.
public static Sheet.Set createPropertiesSet()
PROPERTIES
.
public static Sheet.Set createExpertSet()
EXPERT
.
public void addPropertyChangeListener(PropertyChangeListener l)
l
- the listenerpublic void removePropertyChangeListener(PropertyChangeListener l)
l
- the listener
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |