Skip to content

Private classes

2009 March 29
by Sven Busse

Juten Tach,
in my previous post, i talked about singletons and private (invisible) classes. You know, these classes, that you put in the class file of a regular class, but outside of the package declaration, so that they are only visible to the regular class in that file.

I was a bit unsure, if this is a regularly supported feature. Today i looked through the sources of the flex framework in order to learn more about Arrays and ArrayCollections. And there, in the class ListCollectionView, i found two private classes residing beside the original ListCollectionView: ListCollectionViewCursor and ListCollectionViewBookmark. So, that’s good enough for me. Doubts are gone, i will start making use of them.

Share this:
  • email
  • Twitter
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Posterous
  • Digg
  • Technorati
  • Slashdot
  • Suggest to Techmeme via Twitter
  • StumbleUpon
  • Reddit
  • Netvibes
  • LinkedIn
  • Mixx
One Response leave one →
  1. Adam permalink
    March 30, 2009

    I had problems with private components (e.g. Item renderers) and automation. The automation tools seem to choke when they see a component without a public definition.

Leave a Reply

Note: You can use basic XHTML in your comments. Your email address will never be published.

Subscribe to this comment feed via RSS