public final class Sheet extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Sheet.Set
A list of bean properties.
|
Modifier and Type | Field and Description |
---|---|
static String |
EXPERT
Name for expert Bean property set.
|
static String |
PROPERTIES
Name for regular Bean property set.
|
Constructor and Description |
---|
Sheet()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
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
Sheet.PROPERTIES . |
static Sheet.Set |
createExpertSet()
Convenience method to create new sheet set named
Sheet.EXPERT . |
static Sheet.Set |
createPropertiesSet()
Convenience method to create new sheet set named
Sheet.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.
|
public static final String PROPERTIES
public static final String EXPERT
public final Node.PropertySet[] toArray()
public Sheet cloneSheet()
public Sheet.Set get(String name)
name
- name of the setnull
if no such set existspublic Sheet.Set put(Sheet.Set set)
set
- to addnull
if this is a fresh insertionpublic Sheet.Set remove(String set)
set
- name of set to removenull
if the set could not be foundpublic static Sheet createDefault()
Sheet.PROPERTIES
.
Display name and hint are settable via the appropriate bundle.public static Sheet.Set createPropertiesSet()
Sheet.PROPERTIES
.public static Sheet.Set createExpertSet()
Sheet.EXPERT
.public void addPropertyChangeListener(PropertyChangeListener l)
l
- the listenerpublic void removePropertyChangeListener(PropertyChangeListener l)
l
- the listener