Announcement Announcement Module
No announcement yet.
adding functionality to AbstractControlFactory.createControl Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • adding functionality to AbstractControlFactory.createControl

    I'm running into some dead-ends as I try to implement some custom functionality on master/detail forms.

    I need to be able to execute certain functionality right after the form component is constructed. I'd like this functionality to occur in my new abstract base classes so derived classes don't have to remember to do so.

    There are limitations on AbstractControlFactory and AbstractForm because methods are declared as final. Why is AbstractForm.createControl declared final?

    Maybe what's missing is some method, maybe postCreateControl(), that will get called by AbstractControlFactory after calling createControl(), giving derived classes a chance to do something (like set internal control states).

    WDYT? Is this worth pursuing, or am I missing something that already allows this?


  • #2
    Seems fair enough to me. Up till now all of this kind of functionality has been implemented by adding stuff to the end of the createControl method on a per class basis.