Results 1 to 2 of 2

Thread: adding functionality to AbstractControlFactory.createControl

  1. #1
    Join Date
    Aug 2005
    Location
    Austin, TX
    Posts
    425

    Default 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?

    Thanks,
    Larry.

  2. #2
    Join Date
    Aug 2004
    Location
    Melbourne, Australia
    Posts
    335

    Default

    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.

    Ollie

Similar Threads

  1. MethodSecurityInterceptor not working?
    By asarco in forum Security
    Replies: 14
    Last Post: Mar 31st, 2008, 09:59 AM
  2. stale Oracle processes
    By compostellas in forum Data
    Replies: 7
    Last Post: Jun 27th, 2005, 12:14 PM
  3. MDB-like functionality
    By drewmca in forum JMS
    Replies: 11
    Last Post: Jan 14th, 2005, 03:57 AM
  4. Replies: 8
    Last Post: Dec 7th, 2004, 06:13 PM
  5. Replies: 2
    Last Post: Sep 5th, 2004, 10:49 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •