public class PTProperty
extends java.lang.Object
Constructor and Description |
---|
PTProperty(java.lang.String name,
java.lang.String displayName,
java.lang.String description)
Constructor
|
PTProperty(java.lang.String name,
java.lang.String displayName,
java.lang.String description,
java.lang.Object value)
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getCategory() |
java.lang.String |
getDescription() |
java.lang.String |
getDisplayName() |
PTEditor |
getEditor() |
java.lang.String |
getName() |
java.lang.Object |
getValue() |
int |
hashCode() |
boolean |
isEnabled() |
PTProperty |
setCategory(java.lang.String category) |
PTProperty |
setEditor(PTEditor editor) |
PTProperty |
setEnabled(boolean enabled) |
PTProperty |
setParentTable(PropertyTable parentTable) |
PTProperty |
setValue(java.lang.Object value) |
public PTProperty(java.lang.String name, java.lang.String displayName, java.lang.String description)
name
- name of the propertydisplayName
- Name of the property displayed in the widgetdescription
- Description of the property displayed in the widgetpublic PTProperty(java.lang.String name, java.lang.String displayName, java.lang.String description, java.lang.Object value)
name
- name of the propertydisplayName
- Name of the property displayed in the widgetdescription
- Description of the property displayed in the widgetvalue
- Initial value of the propertypublic java.lang.String getCategory()
public java.lang.String getDescription()
public java.lang.String getDisplayName()
public PTEditor getEditor()
public java.lang.String getName()
public java.lang.Object getValue()
public boolean isEnabled()
true
if the property is enabled, false
otherwisepublic PTProperty setCategory(java.lang.String category)
category
- category associated to this propertypublic PTProperty setEditor(PTEditor editor)
editor
- editor associated to this propertypublic PTProperty setEnabled(boolean enabled)
enabled
- if true
, the property is enabled.public PTProperty setParentTable(PropertyTable parentTable)
parentTable
- the property table associated to this propertypublic PTProperty setValue(java.lang.Object value)
value
- the new value of the propertypublic int hashCode()
hashCode
in class java.lang.Object
Object.hashCode()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Object.equals(java.lang.Object)