"Normal" Controls

T
here are many kinds of controls already implemented. If you think you need a new control, chances are that it has already been implemented or is a simple combination of existing controls.

Some examples of normal controls include:

  • CommentControl: displays nothing when in DISP shape and a string (which is given as part of the constructor) in FORM shape.

  • TextFieldControl: displays the value of a field in DISP shape and generates a TextBox where you can edit the value of the field in FORM mode.

  • TextAreaControl: is just like TextFieldControl, except that the data can be larger and hence it displays it in a TextArea as opposed to a TextBox.

  • NoEditControl: displays the value of a field in both DISP and FORM shape. This is useful to display data which should not be modified. eg. when one is editing the information about a course, one should not be allowed to change the course number.

  • SingleLinkControl: creates a clickable link in DISP shape, where the URL as well as the LinkText can be generated by other controls. If they are plain-strings then these string are percent-substituted

  • EmailControl: in FORM shape allows one to edit an email address, and in DISP shape displays a clickable email address.

  • StaticStringControl: Used to display a fixed string, which may include HTML. For more info see StaticStrings

For more of these see utils/controls/singlecontrols and utils/controls/multiplecontrols.