Difference between revisions of "PrF UG inst standard fields"
(Automated import of articles) |
|||
Line 6: | Line 6: | ||
Template slots for a class are translated to entry fields for an instance of that class. | Template slots for a class are translated to entry fields for an instance of that class. | ||
For each slot in the class, | For each slot in the class, | ||
− | the | + | the [[PrF_UG_inst_instance_editor|Instance Editor]] displays a field |
− | [[PrF_UG_inst_instance_editor|Instance Editor]] | + | where a user can enter information corresponding to that slot. |
− | displays a field where a user can enter information corresponding to that slot. | + | For example, the <i>headline</i> slot for the <b>Article</b> class |
− | For example, | + | becomes a field where the user can enter a headline for an instance. |
− | the <i>headline</i> slot for the <b>Article</b> class becomes a field where the user can enter a headline for an instance. | + | The display and options for the field depend on the type of information |
− | The display and options for the field depend on the type of information that can be entered in the field. | + | that can be entered in the field. |
− | The different field types are based on the | + | The different field types are based |
− | [[PrF_UG_slots_slot_editor#Value_Type_Menu|value type]] | + | on the [[PrF_UG_slots_slot_editor#Value_Type_Menu|value type]] |
of the corresponding slot. | of the corresponding slot. | ||
− | For example, | + | For example, a slot of [[PrF_UG_slots_value_type_string|value type String]] |
− | a slot of | + | is represented by a [[PrF_UG_inst_entry_field_string|String entry field]]. |
− | [[PrF_UG_slots_value_type_string|value type String]] | ||
− | is represented by a | ||
− | [[PrF_UG_inst_entry_field_string|String entry field]]. | ||
− | <b>Note:</b> These topics describe the default fields only. | + | <b>Note:</b> |
+ | These topics describe the default fields only. | ||
You can select different formats for some fields, | You can select different formats for some fields, | ||
− | using the | + | using the [[PrF_UG_forms_forms_tab|Forms Tab]]. |
− | [[PrF_UG_forms_forms_tab|Forms Tab]]. | ||
− | {{#var:PrF}} provides the following fields for both <b>Single</b> and <b>Multiple</b> cardinality. | + | {{#var:PrF}} provides the following fields |
− | For simplicity, | + | for both <b>Single</b> and <b>Multiple</b> cardinality. |
− | only the <b>Single</b> cardinality is shown: | + | For simplicity, only the <b>Single</b> cardinality is shown: |
{| summary="default fields" | {| summary="default fields" |
Revision as of 23:28, October 15, 2008
The Standard Field Types
Template slots for a class are translated to entry fields for an instance of that class. For each slot in the class, the Instance Editor displays a field where a user can enter information corresponding to that slot. For example, the headline slot for the Article class becomes a field where the user can enter a headline for an instance. The display and options for the field depend on the type of information that can be entered in the field.
The different field types are based on the value type of the corresponding slot. For example, a slot of value type String is represented by a String entry field.
Note: These topics describe the default fields only. You can select different formats for some fields, using the Forms Tab.
Protege-Frames provides the following fields for both Single and Multiple cardinality. For simplicity, only the Single cardinality is shown:
Field Type | Default Field | Default Appearance |
---|---|---|
a checkbox field that is true or false | ||
a display field and buttons that allow you to specify a class as the field value | ||
an entry field that verifies that the entered value is a valid decimal number | ||
a display field and buttons that allow you to create or specify an instance as the field value | ||
an entry field that verifies that the entered value is a valid whole number | ||
an entry field that verifies that the entered value is a valid string | ||
a drop-down list that displays the Symbol's preset list of values |