|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A property of a part of a model. Properties have a certain
A property can also have one or more
Finally, a property has some attributes pertaining to the view the user gets:
whether he sees it at all, whether he can modify it, and a description.
PropertyType
,
PropertyHolder
Field Summary | |
static String |
DEFAULT_VALUE
Name of the facet that specifies the default value of the property |
static String |
FIXED_WHILE_RUNNING
Name of the facet that specifies that this property can't be modified while a demonstration is running. |
static String |
GRAPHIC_RELEVANT
Name of the facet that specifies whether the property influences the graphical representation of the property holder. |
static String |
LINE_COUNT_LINK
Name of the facet that specifies whether the property shall have as many values as the node that holds is has connections. |
static String |
MAX_COUNT_VALUES
Name of the facet that holds the maximum number of values of the property. |
static String |
MAX_VALUE
Name of the facet that holds the maximal value of the property. |
static String |
MIN_COUNT_VALUES
Name of the facet that holds the minimum number of values of the property. |
static String |
MIN_VALUE
Name of the facet that holds the minimal value of the property. |
static String |
MULTI_VALUED
Name of the facet that specifies whether the property has more than one value. |
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. |
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. |
Field Detail |
public static final String MIN_VALUE
public static final String MAX_VALUE
public static final String MIN_COUNT_VALUES
public static final String MAX_COUNT_VALUES
public static final String LINE_COUNT_LINK
public static final String DEFAULT_VALUE
public static final String MULTI_VALUED
public static final String GRAPHIC_RELEVANT
public static final String FIXED_WHILE_RUNNING
Method Detail |
public String getName()
public String getDisplayedName()
public Object getValue()
public Object getValue(int nr)
nr
- the number of the value
public void setValueAt(int nr, Object value)
nr
- the nr of the valuevalue
- the new valuepublic void addValueAt(int nr, Object value)
nr
- the nr of the new valuevalue
- the new valuepublic void addValue(Object value)
value
- the new valuepublic void deleteValue(int nr)
nr
- the number of the value which shall be deletedpublic int getCountOfValues()
public String getType()
public Object getFacet(String name)
name
- the name of the facet
public void setFacet(String name, Object value)
name
- the name of the facetvalue
- the new value of the facetpublic Iterator facets()
public String getDescription()
public boolean isVisible()
public void setVisible(boolean visible)
visible
- whether the property shall be visiblepublic boolean isModifiable()
public void setModifiable(boolean modifiable)
modifiable
- whether the property shall be modifiablepublic void setPropertyHolder(PropertyHolder holder)
holder
- the PropertyHolder
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |