access modifiers on Listeners.InitOwner and Field.UniqueName

  1. #1

    access modifiers on Listeners.InitOwner and Field.UniqueName


    Hi,

    Is it possible to have the access modifiers of all the Listeners classes (TextFieldListeners, BoxComponentListeners, etc changed from internal to public on the next release, and the Field.UniqueName changed from internal to protected?

    I just finished building a new CoordinateField control for the entry of GPS coordinates and had to make those changes on my end in order to inherit from TextBaseField.

    Thanks,

    Alex
  2. #2

    RE: access modifiers on Listeners.InitOwner and Field.UniqueName

    Is it possible to have the access modifiers of all the Listeners classes (TextFieldListeners, BoxComponentListeners, etc changed from internal to public on the next release
    Best I can tell everything is already marked as "public" or "public virtual"? At least in the v0.7 release.




    and the Field.UniqueName changed from internal to protected?
    done. This change will be included with the v0.8.0 release (or now via svn).*


    Geoffrey McGill
    Founder
  3. #3

    RE: access modifiers on Listeners.InitOwner and Field.UniqueName


    Sorry, it's the InitOwner() method in the listener classes that is marked as internal, at least in the 0.70 release.

    Thanks!

    Alex
  4. #4

    RE: access modifiers on Listeners.InitOwner and Field.UniqueName

    Sorry, it's the InitOwner() method in the listener classes that is marked as internal, at least in the 0.70 release.
    Ya, I ran into that issue yesterday as well when I was trying to create an extension. The InitOwner will have to change.


    We should be able to make the change today.


    Geoffrey McGill
    Founder
  5. #5

    RE: access modifiers on Listeners.InitOwner and Field.UniqueName

    Hello,


    I just downloaded the source from SVN and it seems that this still has internal modifier as below:


    
    
            internal void InitOwners(Control owner)
            {
                if(owner == null)
                {
                    return;
                }
    
    
                this.Owner = owner;
                foreach (ListenerTriplet listener in this.Listeners)
                {
                    listener.Listener.Owner = owner;
                }
    
    
                //owner.Load += new EventHandler(Owner_Load);
    
    
                owner.Load += delegate(object sender, EventArgs e)
                {
                    this.Owner = owner;
                    foreach (ListenerTriplet listener in this.Listeners)
                    {
                        listener.Listener.Owner = owner;
                    }
                };
            }

    Can this be changed to public, so that I can add my owen Listeners to a custom object? Or am I doing something completely wrong?


    Thanks
    SkyNet
  6. #6

    RE: access modifiers on Listeners.InitOwner and Field.UniqueName

    Hi,

    I think you can safely remove calling of that function from your listeners initialization (just don't use InitOwners)

Similar Threads

  1. Replies: 0
    Last Post: May 04, 2012, 10:13 PM
  2. [2.0 Beta 2] nCannot access Hidden field
    By Alexx in forum 2.x Help
    Replies: 2
    Last Post: May 03, 2012, 9:31 AM
  3. Replies: 2
    Last Post: Aug 19, 2011, 1:36 PM
  4. [CLOSED] Access to record when field is bound?
    By PatrikG in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Jul 04, 2011, 5:11 PM
  5. [CLOSED] Can't access a slider field during client-side onload
    By ewgoforth in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Jan 31, 2011, 7:38 PM

Posting Permissions