BeanInfo for inner classes

Discussion in 'Java' started by Thomas Richter, Jun 14, 2004.

  1. Hi folks,

    suppose I've a class named Foo with an inner class named Bar:

    public class Foo {
    ....
    public class Bar {
    ...
    };
    };

    and I want to provide BeanInfo's for both, the surrounding and the inner
    class. For the surrounding class, this is easy: Write a FooBeanInfo class
    and save as "FooBeanInfo.java". Fine.

    But how to do the same for the inner class "Bar"?

    So long,
    Thomas
     
    Thomas Richter, Jun 14, 2004
    #1
    1. Advertising

  2. Thomas Richter wrote:

    >Hi folks,
    >
    >suppose I've a class named Foo with an inner class named Bar:
    >
    >public class Foo {
    > ....
    > public class Bar {
    > ...
    > };
    >

    // May be writing the bean info as an inner class here will do:
    public class BarBeanInfo extends ... {
    ...
    }

    >};
    >
    >and I want to provide BeanInfo's for both, the surrounding and the inner
    >class. For the surrounding class, this is easy: Write a FooBeanInfo class
    >and save as "FooBeanInfo.java". Fine.
    >
    >But how to do the same for the inner class "Bar"?
    >
    >So long,
    > Thomas
    >
    >
    >

    --
    Thomas<dot>Fritsch<squiggle>ops<dot>de
     
    Thomas Fritsch, Jun 14, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Francis

    Javadoc and @beaninfo

    Francis, Feb 5, 2004, in forum: Java
    Replies:
    0
    Views:
    675
    Francis
    Feb 5, 2004
  2. Sebastian Millies

    BeanInfo in JDK1.4.2_02 buggy

    Sebastian Millies, May 11, 2004, in forum: Java
    Replies:
    1
    Views:
    702
    Sebastian Millies
    May 11, 2004
  3. Carlo v. Dango
    Replies:
    14
    Views:
    1,086
    Alex Martelli
    Oct 19, 2003
  4. Pyenos
    Replies:
    2
    Views:
    407
    Pyenos
    Dec 27, 2006
  5. Olaf Klischat
    Replies:
    4
    Views:
    560
    Olaf Klischat
    Nov 23, 2009
Loading...

Share This Page