PrF UG slots value type symbol
The Symbol Value Type
A slot of type Symbol allows you to create a predefined list of strings; an instance of a class chooses from among these strings. When Symbol is selected as the value type, the Allowed Values pane is displayed. An instance then takes string(s) from among the allowed values as the value(s) of the slot.
To set the value type of a slot to Symbol:
Create the slot, or view the Slot Editor for an existing slot.
Select Symbol from the Value Type menu. The Allowed Values pane will be displayed.
Create the values you want as the list of available values for a slot. To create a value:
When you have created all the values you want for this symbol, fill in the other fields as desired.
To edit a pre-existing value:
Click the View Value () button at the top of the Allowed Values pane.
Edit the string in the Edit Symbol window.
Click OK.
To remove a value from the list of values:
Select the values to remove. To highlight multiple values, hold down the Ctrl (Cmd) key while clicking each value. To highlight a range of values, click the first value, then hold down the Shift key and click the last value in the range.
Click the Remove Value () button at the top of the Allowed Values pane.
Example
For example, the weekday slot at the class Prototype_Newspaper allows you to choose from among the seven days of the week: Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, and Saturday.
An instance has a pop-up menu that allows a user to choose one of the symbol values for the slot: