|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--fdda.model.impl.Property
The implementation of the Property interface. Facets are held in a HashMap, Values are held in an ArrayList.
Field Summary |
Fields inherited from interface fdda.model.Property |
DEFAULT_VALUE, FIXED_WHILE_RUNNING, GRAPHIC_RELEVANT, LINE_COUNT_LINK, MAX_COUNT_VALUES, MAX_VALUE, MIN_COUNT_VALUES, MIN_VALUE, MULTI_VALUED |
Constructor Summary | |
Property(String name,
String type)
Constructor. |
|
Property(String name,
String type,
String displayedName,
String description)
Constructor with description. |
Method Summary | |
void |
addValue(Object value)
Adds a new value at the end of the value list. |
void |
addValueAt(int nr,
Object value)
Adds a new value at the specified nr. |
Object |
clone()
'Clones' the property, making a 'deep' copy - i.e., also makes copies of the values and the facets. |
void |
deleteValue(int nr)
Removes a value from the list. |
Iterator |
facets()
Returns an Iterator over the names of the facets of the property. |
int |
getCountOfValues()
Returns the number of values. |
String |
getDescription()
Returns the description of the property |
String |
getDisplayedName()
Returns the displayed name of the property. |
Object |
getFacet(String name)
Returns the value of the facet with the specified name. |
String |
getName()
Returns the name of the property. |
String |
getType()
Returns the type of the property (e.g. |
Object |
getValue()
Returns the value of the property, or the first value in case of a multi-valued property. |
Object |
getValue(int nr)
Returns a specific value of the property. |
boolean |
isModifiable()
Returns whether the property shall be modifiable by the user |
boolean |
isVisible()
Returns whether the property is visible to the user. |
void |
setFacet(String name,
Object value)
Sets the facet of the specified name to the specified value. |
void |
setModifiable(boolean modifiable)
Specifies whether the property shall be modifiable by the user |
void |
setPropertyHolder(PropertyHolder holder)
Sets the PropertyHolder that holds the property. |
void |
setValueAt(int nr,
Object value)
Changes the specified value to the new value. |
void |
setVisible(boolean visible)
Specifies whether the property shall be visible to the user. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Property(String name, String type)
name
- the name of the propertytype
- the type of the propertypublic Property(String name, String type, String displayedName, String description)
name
- the name of the propertytype
- the type of the propertydisplayedName
- the displayed namedescription
- the description of the propertyMethod Detail |
public void setPropertyHolder(PropertyHolder holder)
Property
setPropertyHolder
in interface Property
holder
- the PropertyHolderpublic Object clone()
clone
in class Object
public String getName()
Property
getName
in interface Property
public String getDisplayedName()
Property
getDisplayedName
in interface Property
public String getType()
Property
getType
in interface Property
public String getDescription()
Property
getDescription
in interface Property
public void addValueAt(int nr, Object value)
Property
addValueAt
in interface Property
nr
- the nr of the new valuevalue
- the new valuepublic void addValue(Object value)
Property
addValue
in interface Property
value
- the new valuepublic void setFacet(String name, Object value)
Property
setFacet
in interface Property
name
- the name of the facetvalue
- the new value of the facetpublic Iterator facets()
Property
facets
in interface Property
public Object getFacet(String name)
Property
getFacet
in interface Property
name
- the name of the facet
public Object getValue()
Property
getValue
in interface Property
public Object getValue(int nr)
Property
getValue
in interface Property
nr
- the number of the value
public void deleteValue(int nr)
Property
deleteValue
in interface Property
nr
- the number of the value which shall be deletedpublic void setValueAt(int nr, Object value)
Property
setValueAt
in interface Property
nr
- the nr of the valuevalue
- the new valuepublic int getCountOfValues()
Property
getCountOfValues
in interface Property
public void setVisible(boolean visible)
Property
setVisible
in interface Property
visible
- whether the property shall be visiblepublic void setModifiable(boolean modifiable)
Property
setModifiable
in interface Property
modifiable
- whether the property shall be modifiablepublic boolean isModifiable()
Property
isModifiable
in interface Property
public boolean isVisible()
Property
isVisible
in interface Property
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |