Difference between revisions of "PrF UG inst entry field integer"

From Protege Wiki
Jump to: navigation, search
 
(One intermediate revision by the same user not shown)
Line 2: Line 2:
 
== The Integer Fields ==
 
== The Integer Fields ==
  
{{PrF_UG_TOC_inst}}<div id='prf_ug'>
+
<noinclude>{{PrF_UG_TOC_inst}}<div id='prf_ug'></noinclude>
  
 
When an instance is created for a class with a slot
 
When an instance is created for a class with a slot
Line 15: Line 15:
 
It appears as an entry bar:
 
It appears as an entry bar:
  
<div>[[Image:PrF_UG_inst_filled_entry_integer.png|
+
<div>[[Image:PrF_UG_inst_filled_entry_integer.png|frame|none|
       instances_filled_entry_integer]]</div>
+
       Single Cardinality entry field]]</div>
  
 
<ul class='a'>
 
<ul class='a'>
Line 47: Line 47:
 
The following example shows such an invalid entry ("four") in an Integer field:
 
The following example shows such an invalid entry ("four") in an Integer field:
  
<div>[[Image:PrF_UG_inst_page_number_red.png|
+
<div>[[Image:PrF_UG_inst_page_number_red.png|frame|none|
       instances_page_number_red]]</div>
+
       entry field with invalid value]]</div>
  
 
=== Multiple Cardinality ===
 
=== Multiple Cardinality ===
Line 59: Line 59:
 
there is a limit on the number of values you can enter.
 
there is a limit on the number of values you can enter.
  
<div>[[Image:PrF_UG_inst_entry_integer_multiple.png|
+
<div>[[Image:PrF_UG_inst_entry_integer_multiple.png|frame|none|
       instances_entry_integer_multiple]]</div>
+
       Multiple Cardinality display list]]</div>
  
 
To edit a pre-existing value:
 
To edit a pre-existing value:
Line 71: Line 71:
 
   <li><p>
 
   <li><p>
 
     Click the <b>View Value</b>
 
     Click the <b>View Value</b>
     [[Image:PrF_UG_all_object.view.gif|all_object.view]] button.
+
     ([[Image:PrF_UG_all_object.view.gif|all_object.view]]) button.
 
     An <b>Edit Integer Value</b> dialog box will be displayed.
 
     An <b>Edit Integer Value</b> dialog box will be displayed.
 
     </p>
 
     </p>
Line 89: Line 89:
 
   <li><p>
 
   <li><p>
 
     Click the <b>Create Value</b>
 
     Click the <b>Create Value</b>
     [[Image:PrF_UG_all_object.add.gif|all_object.add]] button.
+
     ([[Image:PrF_UG_all_object.add.gif|all_object.add]]) button.
 
     A <b>Create Integer Value</b> dialog box will be displayed.
 
     A <b>Create Integer Value</b> dialog box will be displayed.
 
     </p>
 
     </p>
Line 113: Line 113:
 
   <li><p>
 
   <li><p>
 
     Click the <b>Remove Value</b>
 
     Click the <b>Remove Value</b>
     [[Image:PrF_UG_all_object.remove.gif|all_object.remove]] button.
+
     ([[Image:PrF_UG_all_object.remove.gif|all_object.remove]]) button.
 
     The selected values will be removed.
 
     The selected values will be removed.
 
     </p>
 
     </p>
Line 119: Line 119:
  
  
</div>
+
<noinclude></div></noinclude>

Latest revision as of 18:07, November 13, 2008

The Integer Fields


Protege-Frames User's Guide
Instances
Instances Tab
Class Browser at Instances Tab
Instance Browser
Instances Window
Instance Buttons
Instance Menu
Types Pane
Instance Editor
Standard Field Types
Fields with Multiple Cardinality
Boolean Fields
Class Fields
Float Fields
Instance Fields
Integer Fields
String Fields
Symbol Fields
Creating an Instance
Creating Multiple Instances
Displaying the Instance Editor
Setting the Display Slot
Showing Subclass Instances
Editing an Instance
Copying an Instance
Deleting an Instance
Finding an Instance
Changing an Instance's Class
Working with Instance Types
Instance Icons
Glossary, Editing Help

When an instance is created for a class with a slot of Value Type Integer, the entry field corresponding to the slot is an Integer entry field, taking whole numbers as values.

Single Cardinality

The entry field corresponding to a slot of value type Integer with Cardinality Single can contain a single integer number. It appears as an entry bar:

Single Cardinality entry field
  • To edit a value, click in the entry field and make your edits.

  • To create a value, enter a whole number in the entry field.

  • To clear a value, delete the value in the entry field.

Error Detection

The information in a Integer field must be a whole number. If you enter text or other invalid information, such as values less than the minimum or greater than the maximum, the entered value will be displayed in red and will not be saved by the system. The previous value (if any) will be used instead. The following example shows such an invalid entry ("four") in an Integer field:

entry field with invalid value

Multiple Cardinality

The entry field corresponding to a slot of type Integer with Cardinality Multiple shows a display list with three buttons. This field takes a list of integer values. If the at most value is set in the Cardinality field for the slot, there is a limit on the number of values you can enter.

Multiple Cardinality display list

To edit a pre-existing value:

  1. Select the value you want to edit.

  2. Click the View Value (all_object.view) button. An Edit Integer Value dialog box will be displayed.

  3. Edit the number directly in the dialog box.

  4. Click OK.

To add a value:

  1. Click the Create Value (all_object.add) button. A Create Integer Value dialog box will be displayed.

  2. Enter a whole number in the entry bar. You can enter positive or negative values.

  3. Click OK.

To remove a value:

  1. Select the value(s) you want to remove. You can select multiple values by holding down the Ctrl (Cmd) key.

  2. Click the Remove Value (all_object.remove) button. The selected values will be removed.