>Why can't you use non-visual classes?
Is there a way to do the following:
Once that object is created, visually it would be dropped on a form but not here, I need to put some custom code in a hook method. If visually, I would be able to drop some lines in the hook method and the object would have a call to it and execute its code, if present. How can I accomplish the same here?