Class PTProperty
- java.lang.Object
-
- org.eclipse.nebula.widgets.opal.propertytable.PTProperty
-
public class PTProperty extends java.lang.ObjectInstances of this class are property stored in a PropertyTableWidget
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Stringcategoryprivate java.lang.Stringdescriptionprivate java.lang.StringdisplayNameprivate PTEditoreditorprivate booleanenabledprivate java.lang.Stringnameprivate PropertyTableparentTableprivate java.lang.Objectvalue
-
Constructor Summary
Constructors Constructor Description PTProperty(java.lang.String name, java.lang.String displayName, java.lang.String description)ConstructorPTProperty(java.lang.String name, java.lang.String displayName, java.lang.String description, java.lang.Object value)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetCategory()java.lang.StringgetDescription()java.lang.StringgetDisplayName()PTEditorgetEditor()java.lang.StringgetName()java.lang.ObjectgetValue()inthashCode()booleanisEnabled()PTPropertysetCategory(java.lang.String category)PTPropertysetEditor(PTEditor editor)PTPropertysetEnabled(boolean enabled)PTPropertysetParentTable(PropertyTable parentTable)PTPropertysetValue(java.lang.Object value)
-
-
-
Field Detail
-
name
private final java.lang.String name
-
displayName
private final java.lang.String displayName
-
description
private final java.lang.String description
-
value
private java.lang.Object value
-
category
private java.lang.String category
-
enabled
private boolean enabled
-
editor
private PTEditor editor
-
parentTable
private PropertyTable parentTable
-
-
Constructor Detail
-
PTProperty
public PTProperty(java.lang.String name, java.lang.String displayName, java.lang.String description)Constructor- Parameters:
name- name of the propertydisplayName- Name of the property displayed in the widgetdescription- Description of the property displayed in the widget
-
PTProperty
public PTProperty(java.lang.String name, java.lang.String displayName, java.lang.String description, java.lang.Object value)Constructor- Parameters:
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 property
-
-
Method Detail
-
getCategory
public java.lang.String getCategory()
- Returns:
- the category of the property
-
getDescription
public java.lang.String getDescription()
- Returns:
- the description of the property
-
getDisplayName
public java.lang.String getDisplayName()
- Returns:
- the displayed name of the property
-
getEditor
public PTEditor getEditor()
- Returns:
- the editor associated to this property
-
getName
public java.lang.String getName()
- Returns:
- the name of the property
-
getValue
public java.lang.Object getValue()
- Returns:
- the value of the property
-
isEnabled
public boolean isEnabled()
- Returns:
trueif the property is enabled,falseotherwise
-
setCategory
public PTProperty setCategory(java.lang.String category)
- Parameters:
category- category associated to this property- Returns:
- the property
-
setEditor
public PTProperty setEditor(PTEditor editor)
- Parameters:
editor- editor associated to this property- Returns:
- the property
-
setEnabled
public PTProperty setEnabled(boolean enabled)
- Parameters:
enabled- iftrue, the property is enabled.- Returns:
- the property
-
setParentTable
public PTProperty setParentTable(PropertyTable parentTable)
- Parameters:
parentTable- the property table associated to this property- Returns:
- the property
-
setValue
public PTProperty setValue(java.lang.Object value)
- Parameters:
value- the new value of the property- Returns:
- the property
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object- See Also:
Object.hashCode()
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object- See Also:
Object.equals(java.lang.Object)
-
-