[platform-dev] EnumerationValues in propertySheet

  • From: "Ben35" < >
  • To:
  • Subject: [platform-dev] EnumerationValues in propertySheet
  • Date: Thu, 27 Sep 2012 05:30:01 -0400

Hi!

 I have Javabean with an int property. In the BeanInfo class I have this
 property descriptor:

 PropertyDescriptor layout = new PropertyDescriptor("layout", beanClass);
 layout.setValue("enumerationValues", new Object[] {
 "Body", new Integer(LayoutProperties.BODY), "LayoutProperties.BODY",
 "Header", new Integer(LayoutProperties.HEADER), "LayoutProperties.HEADER",
 "Sidebar", new
 Integer(LayoutProperties.SIDEBAR),"LayoutProperties.SIDEBAR",
 "Footer", new Integer(LayoutProperties.FOOTER),
 "LayoutProperties.FOOTER" } );

       

 I would like the PropertySheet in Netbeans Platform to give me a drop
 down where I can select one of the values.
 Netbeans picks up other things I define in PropertyDescriptors, but not
 enumerationValues.






[platform-dev] EnumerationValues in propertySheet

Ben35 09/27/2012

[platform-dev] Re: EnumerationValues in propertySheet

Frédéric Deniger 09/27/2012

Project Features

Project Links

About this Project

Platform was started in November 2009, is owned by Antonin Nebuzelsky, and has 138 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20131025.e7cbc9d). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close