public class NameField extends FieldDefinition
FIELD_TYPE_IDENTITY, FIELD_TYPE_NAME, FIELD_TYPE_OCCURRENCE, FIELD_TYPE_QUERY, FIELD_TYPE_ROLE| Constructor and Description |
|---|
NameField(TopicIF topic,
TopicMap tm) |
NameField(TopicIF topic,
TopicMap tm,
NameType nameType) |
| Modifier and Type | Method and Description |
|---|---|
void |
addValue(Topic topic,
Object _value,
LifeCycleListener listener)
Adds a name to a topic.
|
boolean |
equals(Object obj) |
String |
getFieldName()
Returns the name of this field definition.
|
int |
getFieldType() |
int |
getHeight()
Returns the assigned height of the name text field.
|
LocatorIF |
getLocator() |
NameType |
getNameType()
Gets the name type.
|
List<TopicNameIF> |
getValues(Topic topic)
Returns the names, which have this NameType object as type, associated with
the topic.
|
int |
getWidth()
Returns the assigned width of the name text field.
|
void |
removeValue(Topic topic,
Object _value,
LifeCycleListener listener)
Removes a name from a topic.
|
getCardinality, getFieldDefinition, getFieldDefinition, getFieldDefinition, getValidationType, getValueView, getViewModes, hashCode, setCardinalityaddTopicType, copyCharacteristics, findDependentObjects, getDependentObjects, getFieldInstances, getFieldInstances, getId, getMostSpecificTopicType, getName, getTopicIF, getTopicMap, getTopicTypes, isAssociationType, isFieldDefinition, isInstanceOf, isInstanceOf, isNameType, isOccurrenceType, isOntologyTopic, isOntologyType, isPrivateSystemTopic, isPublicSystemTopic, isRoleType, isSystemTopic, isTopicMap, isTopicType, remove, removeTopicType, toStringpublic int getFieldType()
getFieldType in class FieldDefinitionpublic String getFieldName()
FieldDefinitiongetFieldName in class FieldDefinitionpublic LocatorIF getLocator()
getLocator in class FieldDefinitionpublic boolean equals(Object obj)
equals in class FieldDefinitionpublic NameType getNameType()
public List<TopicNameIF> getValues(Topic topic)
getValues in class FieldDefinitiontopic - the topic from which the values is retrieved.public void addValue(Topic topic, Object _value, LifeCycleListener listener)
addValue in class FieldDefinition_value - value which is going to be added to the topic.public void removeValue(Topic topic, Object _value, LifeCycleListener listener)
removeValue in class FieldDefinition_value - value which is going to be removed from the topic.public int getHeight()
public int getWidth()