1 19 20 package org.netbeans.modules.form.beaninfo.awt; 21 22 import java.beans.*; 23 24 28 abstract class MenuItemBeanInfo extends MenuComponentBeanInfo { 29 30 31 MenuItemBeanInfo() { 32 } 33 34 35 public PropertyDescriptor[] getPropertyDescriptors() { 36 PropertyDescriptor[] inh = super.getPropertyDescriptors(); 37 PropertyDescriptor[] desc = new PropertyDescriptor[inh.length + 3]; 38 System.arraycopy(inh, 0, desc, 0, inh.length); 39 try { 40 desc[inh.length] = new PropertyDescriptor("actionCommand", java.awt.MenuItem .class); desc[inh.length + 1] = new PropertyDescriptor("label", java.awt.MenuItem .class); desc[inh.length + 2] = new PropertyDescriptor("enabled", java.awt.MenuItem .class); return desc; 44 } catch (IntrospectionException ex) { 45 return inh; 46 } 47 } 48 } 49 | Popular Tags |