org.openide.nodes
Class PropertySupport
java.lang.Object
|
+--java.beans.FeatureDescriptor
|
+--org.openide.nodes.Node.Property
|
+--org.openide.nodes.PropertySupport
- Direct Known Subclasses:
- PropertySupport.Name, PropertySupport.ReadOnly, PropertySupport.ReadWrite, PropertySupport.WriteOnly
- public abstract class PropertySupport
- extends Node.Property
Support class for Node.Property
.
- See Also:
Node.Property
Method Summary |
boolean |
canRead()
Test whether the property is readable. |
boolean |
canWrite()
Test whether the property is writable. |
Methods inherited from class java.beans.FeatureDescriptor |
attributeNames, getDisplayName, getName, getShortDescription, getValue, isExpert, isHidden, isPreferred, setDisplayName, setExpert, setHidden, setName, setPreferred, setShortDescription, setValue |
PropertySupport
public PropertySupport(String name,
Class type,
String displayName,
String shortDescription,
boolean canR,
boolean canW)
- Constructs a new support.
- Parameters:
name
- the name of the propertytype
- the class type of the propertydisplayName
- the display name of the propertycanR
- whether the property is readablecanW
- whether the property is writable
canRead
public boolean canRead()
- Description copied from class:
Node.Property
- Test whether the property is readable.
- Overrides:
canRead
in class Node.Property
- Following copied from class:
org.openide.nodes.Node.Property
- Returns:
true
if it is
canWrite
public boolean canWrite()
- Description copied from class:
Node.Property
- Test whether the property is writable.
- Overrides:
canWrite
in class Node.Property
- Following copied from class:
org.openide.nodes.Node.Property
- Returns:
true
if the read of the value is supported
Built on December 12 2001. | Portions Copyright 1997-2001 Sun Microsystems, Inc. All rights reserved.