public final class LayoutProperty extends Object
Constructor and Description |
---|
LayoutProperty(org.openide.nodes.Node.Property property,
String category,
String canonicalName) |
Modifier and Type | Method and Description |
---|---|
static LayoutProperty |
createProperty(Layout layout,
Class valueType,
String propertyName,
String propertyCategory,
String propertyDescription,
String getMethod,
String setMethod)
Create a property.
|
static LayoutProperty |
createProperty(Layout layout,
Class valueType,
String propertyName,
String propertyCategory,
String propertyDescription,
String getMethod,
String setMethod,
Class<? extends PropertyEditor> editorClass)
Create a property, with a particular
PropertyEditor . |
static LayoutProperty |
createProperty(Layout layout,
Class valueType,
String propertyName,
String propertyCategory,
String propertyCanonicalName,
String propertyDescription,
String getMethod,
String setMethod)
Create a property.
|
static LayoutProperty |
createProperty(Layout layout,
Class valueType,
String propertyName,
String propertyCategory,
String propertyCanonicalName,
String propertyDescription,
String getMethod,
String setMethod,
Class<? extends PropertyEditor> editorClass)
Create a property, with a particular
PropertyEditor . |
String |
getCanonicalName() |
String |
getCategory()
Return the category of the property
|
org.openide.nodes.Node.Property |
getProperty()
Return the underlying
Property . |
public org.openide.nodes.Node.Property getProperty()
Property
.Node.Property
public String getCategory()
public String getCanonicalName()
public static LayoutProperty createProperty(Layout layout, Class valueType, String propertyName, String propertyCategory, String propertyDescription, String getMethod, String setMethod) throws NoSuchMethodException
propertyName
will be used as the canonical name of the LayoutProperty
.layout
- The layout instancevalueType
- The type of the property value, ex: Double.class
propertyName
- The display name of the propertypropertyCategory
- A category string or null
for using
default categorypropertyDescription
- A description string for the propertygetMethod
- The name of the get method for this property, must exist
to make Java reflexion working.setMethod
- The name of the set method for this property, must exist
to make Java reflexion working.NoSuchMethodException
- if the getter or setter methods cannot be foundpublic static LayoutProperty createProperty(Layout layout, Class valueType, String propertyName, String propertyCategory, String propertyDescription, String getMethod, String setMethod, Class<? extends PropertyEditor> editorClass) throws NoSuchMethodException
PropertyEditor
. A particular
editor must be specified when the property type don't have a registered
editor class.
The parameter propertyName
will be used as the canonical name of the LayoutProperty
.layout
- The layout instancevalueType
- The type of the property value, ex: Double.class
propertyName
- The display name of the propertypropertyCategory
- A category string or null
for using
default categorypropertyDescription
- A description string for the propertygetMethod
- The name of the get method for this property, must exist
to make Java reflexion working.setMethod
- The name of the set method for this property, must exist
to make Java reflexion working.editorClass
- A PropertyEditor
class for the given typeNoSuchMethodException
- if the getter or setter methods cannot be foundpublic static LayoutProperty createProperty(Layout layout, Class valueType, String propertyName, String propertyCategory, String propertyCanonicalName, String propertyDescription, String getMethod, String setMethod) throws NoSuchMethodException
propertyName
will be used as the canonical name of the LayoutProperty
.layout
- The layout instancevalueType
- The type of the property value, ex: Double.class
propertyName
- The display name of the propertypropertyCategory
- A category string or null
for using
default categorypropertyCanonicalName
- Canonical name for the LayoutProperty
. It should be unique and not localizedpropertyDescription
- A description string for the propertygetMethod
- The name of the get method for this property, must exist
to make Java reflexion working.setMethod
- The name of the set method for this property, must exist
to make Java reflexion working.NoSuchMethodException
- if the getter or setter methods cannot be foundpublic static LayoutProperty createProperty(Layout layout, Class valueType, String propertyName, String propertyCategory, String propertyCanonicalName, String propertyDescription, String getMethod, String setMethod, Class<? extends PropertyEditor> editorClass) throws NoSuchMethodException
PropertyEditor
. A particular
editor must be specified when the property type don't have a registered
editor class.
The parameter propertyName
will be used as the canonical name of the LayoutProperty
.layout
- The layout instancevalueType
- The type of the property value, ex: Double.class
propertyName
- The display name of the propertypropertyCategory
- A category string or null
for using
default categorypropertyCanonicalName
- Canonical name for the LayoutProperty
. It should be unique and not localizedpropertyDescription
- A description string for the propertygetMethod
- The name of the get method for this property, must exist
to make Java reflexion working.setMethod
- The name of the set method for this property, must exist
to make Java reflexion working.editorClass
- A PropertyEditor
class for the given typeNoSuchMethodException
- if the getter or setter methods cannot be foundCopyright © 2007–2017 Gephi Consortium. All rights reserved.