NAME

Krang::ElementClass - base class for Krang element classes


SYNOPSIS

  package ElementSet::element_name;
  use Krang::ClassLoader base => 'ElementClass';
  # override new() to setup element class parameters
  sub new { 
      my $pkg = shift;
      my %opt = (name => "element_name", @_);
      return $pkg->SUPER::new(%opt); 
  }
  1;


DESCRIPTION

This class serves as the base class for all Krang Element classes. Element classes are created by inheriting from this class or one of its sub-classes (Krang::ElementClass::SelectBox, for example). Sub-classes must override several methods and setup the required 'name' attribute by overriding new().

For a higher-level overview of the Krang element system, see docs/element_system.pod.


INTERFACE

OBJECT ATTRIBUTES

Krang::ElementClass objects have the following attributes, available through the standard Krang::MethodMaker accessors. Sub-classes may add new attributes as needed to implement their functionality, but these will always be available.

STATIC OBJECT METHODS

The following methods are available on all Krang::ElementClass objects, and should not be overriden in sub-classes.

OBJECT METHODS TO OVERRIDE

The following methods are available on all Krang::ElementClass objects. All of these methods may be overridden in child classes to specialize the behavior of an element class.


TODO