public class ObjectProperty
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
ObjectProperty.Type
Property type.
|
Constructor and Description |
---|
ObjectProperty(java.lang.String name)
Creates a displayable / modifiable property with the given name.
|
ObjectProperty(java.lang.String name,
ObjectProperty.Type type) |
ObjectProperty(java.lang.String name,
ObjectProperty.Type type,
boolean displayable,
boolean modifiable,
boolean exportable) |
ObjectProperty(java.lang.String name,
java.lang.String displayedName,
ObjectProperty.Type type,
boolean displayable,
boolean modifiable,
boolean exportable) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
static ObjectProperty |
fromDescription(java.lang.String description)
Returns an
ObjectProperty instance built from the given description . |
java.lang.String |
getDisplayedName()
Returns a text used for label and header.
|
java.lang.String |
getName()
Returns the name of this property.
|
ObjectProperty.Type |
getType()
Returns the type of this property.
|
int |
hashCode() |
boolean |
isDisplayable()
Returns whether the value of this property is displayable.
|
boolean |
isExportable()
Returns whether the value of this property is exportable.
|
boolean |
isModifiable()
Returns whether the value of this property is modifiable.
|
public ObjectProperty(java.lang.String name)
public ObjectProperty(java.lang.String name, ObjectProperty.Type type)
public ObjectProperty(java.lang.String name, ObjectProperty.Type type, boolean displayable, boolean modifiable, boolean exportable)
public ObjectProperty(java.lang.String name, java.lang.String displayedName, ObjectProperty.Type type, boolean displayable, boolean modifiable, boolean exportable)
public static ObjectProperty fromDescription(java.lang.String description)
ObjectProperty
instance built from the given description
.description
- a string containing property name possibly followed by a
colon, the property type and displayable modifiable exportable displayedName attributes
name:(ANY|STRING|DATE|BOOLEAN|INTEGER|NUMBER|PRICE|LENGTH|PERCENTAGE|CONTENT) displayable=(true|false) modifiable=(true|false) exportable=(true|false) displayedName=textpublic java.lang.String getName()
public ObjectProperty.Type getType()
public boolean isDisplayable()
public boolean isModifiable()
public boolean isExportable()
public java.lang.String getDisplayedName()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
© Copyright 2024 Space Mushrooms
Distributed under GNU General Public License