Difference between revisions of "PrF UG classes edit template slots"
Line 20: | Line 20: | ||
<li><p> | <li><p> | ||
Click the <b>View Top-level Slot</b> | Click the <b>View Top-level Slot</b> | ||
− | [[Image:PrF_UG_slots_slot.view_top_level.gif|slots_slot.view_top_level]] | + | ([[Image:PrF_UG_slots_slot.view_top_level.gif| |
− | + | slots_slot.view_top_level]]) button at the top right of the pane. | |
− | The [[PrF_UG_slots_slot_editor|Slot Editor]] | + | The [[PrF_UG_slots_slot_editor|Slot Editor]] will be displayed. |
− | |||
</p> | </p> | ||
Line 48: | Line 47: | ||
<li><p> | <li><p> | ||
Click the <b>View Slot Overrides</b> | Click the <b>View Slot Overrides</b> | ||
− | [[Image:PrF_UG_slots_slot.view_overrides.gif|slots_slot.view_overrides]] | + | ([[Image:PrF_UG_slots_slot.view_overrides.gif| |
− | + | slots_slot.view_overrides]]) button at the top right of the pane. | |
The [[PrF_UG_slots_slot_editor|Slot Editor]] | The [[PrF_UG_slots_slot_editor|Slot Editor]] | ||
will be displayed. | will be displayed. | ||
Line 75: | Line 74: | ||
If you edit a slot at the class level, | If you edit a slot at the class level, | ||
the slot is displayed with an override | the slot is displayed with an override | ||
− | [[Image:PrF_UG_slots_slot.overridden.gif|slots_slot.overridden]] icon. | + | ([[Image:PrF_UG_slots_slot.overridden.gif|slots_slot.overridden]]) icon. |
=== Creating a New Slot === | === Creating a New Slot === | ||
Line 88: | Line 87: | ||
<li><p> | <li><p> | ||
Click the <b>Create Slot</b> | Click the <b>Create Slot</b> | ||
− | [[Image:PrF_UG_slots_slot.create.gif|slots_slot.create]] | + | ([[Image:PrF_UG_slots_slot.create.gif|slots_slot.create]]) button |
− | + | at the top right of the pane. | |
− | The [[PrF_UG_slots_slot_editor|Slot Editor]] | + | The [[PrF_UG_slots_slot_editor|Slot Editor]] will be displayed. |
− | |||
</p> | </p> | ||
<li><p> | <li><p> | ||
− | Use the | + | Use the [[PrF_UG_slots_slot_editor|Slot Editor]] |
− | |||
to edit slot properties | to edit slot properties | ||
such as <b>Name</b>, <b>Type</b>, and <b>Cardinality</b>, | such as <b>Name</b>, <b>Type</b>, and <b>Cardinality</b>, | ||
Line 106: | Line 103: | ||
A direct slot is displayed | A direct slot is displayed | ||
− | with a blue [[Image:PrF_UG_slots_slot.gif|slots_slot]] icon. | + | with a blue ([[Image:PrF_UG_slots_slot.gif|slots_slot]]) icon. |
=== Clearing Slot Overrides === | === Clearing Slot Overrides === | ||
Line 121: | Line 118: | ||
<li><p> | <li><p> | ||
Click the <b>Remove Slot Overrides</b> | Click the <b>Remove Slot Overrides</b> | ||
− | [[Image:PrF_UG_slots_slot.remove_overrides.gif|slots_slot.remove_overrides]] button | + | ([[Image:PrF_UG_slots_slot.remove_overrides.gif| |
− | + | slots_slot.remove_overrides]]) button at the top right of the pane. | |
Any changes you made at the class level are removed | Any changes you made at the class level are removed | ||
and the top-level definition of the slot is used. | and the top-level definition of the slot is used. | ||
Line 149: | Line 146: | ||
<li><p> | <li><p> | ||
Click the <b>Add Slot</b> | Click the <b>Add Slot</b> | ||
− | [[Image:PrF_UG_slots_slot.add.gif|slots_slot.add]] | + | ([[Image:PrF_UG_slots_slot.add.gif|slots_slot.add]]) button |
− | + | at the top right of the pane. | |
− | The <b>Select Slots</b> dialog box displays all the slots that you can add to the class. | + | The <b>Select Slots</b> dialog box displays all the slots |
+ | that you can add to the class. | ||
</p> | </p> | ||
Line 165: | Line 163: | ||
The new slot is added to the <b>Template Slots</b> pane. | The new slot is added to the <b>Template Slots</b> pane. | ||
It is a directly-attached slot and is displayed | It is a directly-attached slot and is displayed | ||
− | with a blue [[Image:PrF_UG_slots_slot.gif|slots_slot]] icon. | + | with a blue ([[Image:PrF_UG_slots_slot.gif|slots_slot]]) icon. |
You do not need to name the slot; | You do not need to name the slot; | ||
however, you may need to override its facets. | however, you may need to override its facets. | ||
If you wish to override the facets on the slot, | If you wish to override the facets on the slot, | ||
you may click the <b>View Top-level Slot</b> | you may click the <b>View Top-level Slot</b> | ||
− | [[Image:PrF_UG_slots_slot.view_top_level.gif|slots_slot.view_top_level]] | + | ([[Image:PrF_UG_slots_slot.view_top_level.gif|slots_slot.view_top_level]]) |
or <b>View Slot Overrides</b> | or <b>View Slot Overrides</b> | ||
− | [[Image:PrF_UG_slots_slot.view_overrides.gif|slots_slot.view_overrides]] button | + | ([[Image:PrF_UG_slots_slot.view_overrides.gif|slots_slot.view_overrides]]) button |
to display the [[PrF_UG_slots_slot_editor|Slot Editor]]. | to display the [[PrF_UG_slots_slot_editor|Slot Editor]]. | ||
− | See [[PrF_UG_slots_editing_a_slot|Viewing a Slot]] | + | See [[PrF_UG_slots_editing_a_slot|Viewing a Slot]] for more information. |
− | for more information. | ||
=== Removing a Slot === | === Removing a Slot === | ||
Line 189: | Line 186: | ||
<li><p> | <li><p> | ||
Click the <b>Remove Slot</b> | Click the <b>Remove Slot</b> | ||
− | [[Image:PrF_UG_slots_slot.remove.gif|slots_slot.remove]] button. | + | ([[Image:PrF_UG_slots_slot.remove.gif|slots_slot.remove]]) button. |
The slot will be removed from the class. | The slot will be removed from the class. | ||
</p> | </p> |
Revision as of 11:20, October 20, 2008
Editing Template Slots
The Template Slots pane in the Class Editor allows you to add, clear, create, edit, override, and remove slots.
Editing a Top-level Slot
To edit a slot at the top level:
Highlight the slot name in the Template Slots pane.
Click the View Top-level Slot () button at the top right of the pane. The Slot Editor will be displayed.
Use the Slot Editor to edit slot properties such as Name, Type, and Cardinality, and to add notes. See Viewing a Slot for more information on how to edit a slot.
Overriding a Slot at a Class
To override a slot at the class:
Highlight the slot name in the Template Slots pane.
Click the View Slot Overrides () button at the top right of the pane. The Slot Editor will be displayed.
Use the Slot Editor to edit slot properties such as Name, Type, and Cardinality, and to add notes. See Viewing a Slot and Overriding Slot Properties at a Class for more information.
Your class can have slots that were inherited from a superclass. If the slot is inherited, there are limitations on the edits that can be performed. Direct slots, which were created or added at the level of the slot, have no editing restrictions.
If you edit a slot at the class level, the slot is displayed with an override () icon.
Creating a New Slot
You can define a new slot for your class.
Make sure the correct class is highlighted in the Class Browser.
Click the Create Slot () button at the top right of the pane. The Slot Editor will be displayed.
Use the Slot Editor to edit slot properties such as Name, Type, and Cardinality, and to add notes. See Creating a Slot for more information on how to create a slot.
A direct slot is displayed with a blue () icon.
Clearing Slot Overrides
If you have overridden a slot at the class, you can remove your overrides and use the top-level definition of the slot:
Highlight the slot name in the Template Slots pane.
Click the Remove Slot Overrides () button at the top right of the pane. Any changes you made at the class level are removed and the top-level definition of the slot is used. See Removing Overrides From a Slot for more information.
Adding an Existing Slot to a Class
Once slots have been created, you can add them to more than one class. For example, the Prototype_Newspaper class has a Weekday slot, which can be used to choose among the days of the week. If you were creating a new type of employee who wrote a weekly feature, you might want to reuse this slot.
To choose a pre-existing slot to add to your class:
Make sure the correct class is highlighted in the Class Browser.
Click the Add Slot () button at the top right of the pane. The Select Slots dialog box displays all the slots that you can add to the class.
Highlight the slot that you wish to add to your class.
Click OK.
The new slot is added to the Template Slots pane. It is a directly-attached slot and is displayed with a blue () icon. You do not need to name the slot; however, you may need to override its facets. If you wish to override the facets on the slot, you may click the View Top-level Slot () or View Slot Overrides () button to display the Slot Editor. See Viewing a Slot for more information.
Removing a Slot
You can remove any direct slot that appears in the Template Slots pane. To remove a slot:
Note that the slot has not been deleted from the knowledge base. It will still appear in the Select Slots dialog box (see Adding an Existing Slot to a Class, above) and the Slots Tab. See Deleting a Slot for more information.