defclass Tag

Format: <defclass TagName >< inherit ClassName1, ... > heitml </defclass>

Purpose: The defclass tag defines a class. Note that most classes are defined using the def or defenv tags. defclass defines a class without defining a constructor method. This is useful in two cases

Defclass defines a new class. The class inherits methods and constructors according to the normal inheritance rules. If the class inherited a constructor defined by a def tag, then the class acts as a class defined by a def tag. If the class inherited a constructor defined by a defenv tag, then the class acts as a class define by a defenv tag. If the class did not inherit any constructor, no objects of the class can be created. For a description of the inherit tag, see the inherit tag.

Please note, that the parameter list and any properties defined by defwysiwyg or defhtml belong to the constructor and are inherited together with the constructor.

See Also: def, defenv, inherit.

Example:

<defclass myButton><inherit iaButton>
  <def process x>
  <...>
  </def>
</defclass>

A sample environment definition is as illustrated above. It defines a class named myButton that works just as an iaButton but overrides the process with another method to be performed.


This page was dynamically generated by the web application development tool RADpage of H.E.I.
© 1996-2013 H.E.I. All Rights Reserved.