@Override public BeanDescriptor getBeanDescriptor() { BeanDescriptor descriptor = new BeanDescriptor(getBeanClass()); try { // Attempt to load the displayName and shortDescription explicitly. String displayName = bundle.getString("displayName"); if (displayName != null) { descriptor.setDisplayName(displayName); } String shortDescription = bundle.getString("shortDescription"); if (shortDescription != null) { descriptor.setShortDescription(shortDescription); } // Add any other properties that are specified. Enumeration enumeration = bundle.getKeys(); while (enumeration.hasMoreElements()) { String key = (String)enumeration.nextElement(); String value = bundle.getString(key); if (value != null) { descriptor.setValue(key, value); } } } catch (Exception e) { // Ignore any exceptions. We may get some if we try to load a // a property that doesn't appear in the resource bundle. } return descriptor; }
public void annotateBeanDescriptor(BeanDescriptor beanDescriptor) { beanDescriptor.setValue(Constants.BeanDescriptor.PROPERTY_CATEGORIES, new CategoryDescriptor[] { CategoryDescriptors.GENERAL, CategoryDescriptors.APPEARANCE, CategoryDescriptors.DATA, CategoryDescriptors.EVENTS, CategoryDescriptors.JAVASCRIPT, CategoryDescriptors.ADVANCED, CategoryDescriptors.INTERNAL}); }
public BeanDescriptor getBeanDescriptor() { BeanDescriptor beanDescriptor = super.getBeanDescriptor(); beanDescriptor.setValue(Constants.BeanDescriptor.IS_CONTAINER, Boolean.FALSE); // This is set here rather than using <resize-constraints> metadata // in conf-icon-renderer.xml because we need to do a bitwise // or of two constants, which the DTD (or code generator) doesn't // allow beanDescriptor.setValue(Constants.BeanDescriptor.RESIZE_CONSTRAINTS,new Integer(Constants.ResizeConstraints.MAINTAIN_ASPECT_RATIO|Constants.ResizeConstraints.ANY)); return beanDescriptor; }
public static void installFor(Class<? extends Enum> enumClass) { try { BeanInfo info = Introspector.getBeanInfo( enumClass ); info.getBeanDescriptor().setValue( "persistenceDelegate", INSTANCE ); } catch( IntrospectionException exception ) { throw new RuntimeException("Unable to persist enumerated type "+enumClass, exception); } }
public BeanDescriptor getBeanDescriptor() { BeanDescriptor descriptor = super.getBeanDescriptor(); descriptor.setValue(Constants.BeanDescriptor.MARKUP_SECTION, "head"); return descriptor; }
public BeanDescriptor getBeanDescriptor() { BeanDescriptor beanDescriptor = super.getBeanDescriptor(); beanDescriptor.setValue( Constants.BeanDescriptor.INLINE_EDITABLE_PROPERTIES, new String[] { "*summary://span[@class='FulAlrtHdrTxt']", "detail://span[@class='AlrtMsgTxt']" }); // NOI18N return beanDescriptor; } }
public BeanDescriptor getBeanDescriptor() { BeanDescriptor descriptor = super.getBeanDescriptor(); descriptor.setValue(Constants.BeanDescriptor.MARKUP_SECTION, "head"); return descriptor; } }
@Override protected void initialize() { BeanDescriptor bd = getBeanDescriptor(); bd.setValue("isContainer", Boolean.FALSE); } }
@Override protected void initialize() { BeanDescriptor bd = getBeanDescriptor(); bd.setValue("isContainer", Boolean.FALSE); }
public RadioButtonGroupBeanInfo() { BeanDescriptor beanDescriptor = super.getBeanDescriptor(); beanDescriptor.setValue( Constants.BeanDescriptor.INLINE_EDITABLE_PROPERTIES, new String[] { "label://label[@class='RbGrpLbl'" }); // NOI18N }
public BeanDescriptor getBeanDescriptor() { BeanDescriptor descriptor = super.getBeanDescriptor(); descriptor.setValue(Constants.BeanDescriptor.MARKUP_SECTION, "head"); return descriptor; } }
public CheckboxBeanInfo() { BeanDescriptor beanDescriptor = super.getBeanDescriptor(); beanDescriptor.setValue( Constants.BeanDescriptor.INLINE_EDITABLE_PROPERTIES, new String[] { "*label://label[@class='CbLbl'" }); // NOI18N }
public CompositeComponentBeanInfo(BeanDescriptor descriptor) { super(); _descriptor = descriptor; getBeanDescriptor().setValue(PROPERTY_DESCRIPTOR_MAP_KEY, new PropertyDescriptorMap()); }
private static BeanDescriptor getBdescriptor(){ //GEN-HEADEREND:BeanDescriptor // Here you can add code for customizing the BeanDescriptor. if (beanDescriptor == null) beanDescriptor = new BeanDescriptor(AbstractToolBarBeanInfo.class); beanDescriptor.setValue("isContainer", Boolean.FALSE); beanDescriptor.setDisplayName("AbstractToolBar"); return beanDescriptor; }//GEN-LAST:BeanDescriptor
private static BeanDescriptor getBdescriptor(){ //GEN-HEADEREND:BeanDescriptor // Here you can add code for customizing the BeanDescriptor. if (beanDescriptor == null) { beanDescriptor = new BeanDescriptor(JLifeFormattedTexAreaBeanInfo.class); } beanDescriptor.setValue("isContainer", Boolean.FALSE); beanDescriptor.setDisplayName("JLifeFormattedTextArea"); return beanDescriptor; }//GEN-LAST:BeanDescriptor // Properties information will be obtained from introspection.//GEN-FIRST:Properties
private static BeanDescriptor getBdescriptor(){ //GEN-HEADEREND:BeanDescriptor // Here you can add code for customizing the BeanDescriptor. if (beanDescriptor == null) beanDescriptor = new BeanDescriptor(ToolsToolBarBeanInfo.class); beanDescriptor.setValue("isContainer", Boolean.FALSE); beanDescriptor.setDisplayName("ToolsToolBar"); return beanDescriptor; }//GEN-LAST:BeanDescriptor
private static BeanDescriptor getBdescriptor(){ //GEN-HEADEREND:BeanDescriptor // Here you can add code for customizing the BeanDescriptor. if (beanDescriptor == null) beanDescriptor = new BeanDescriptor(ViewToolBarBeanInfo.class); beanDescriptor.setValue("isContainer", Boolean.FALSE); beanDescriptor.setDisplayName("ViewToolBar"); return beanDescriptor; }//GEN-LAST:BeanDescriptor
public DropDownBeanInfo() { BeanDescriptor beanDescriptor = super.getBeanDescriptor(); PropertyDescriptor[] descriptors = this.getPropertyDescriptors(); for (int i = 0; i < descriptors.length; i++) { if (descriptors[i].getName().equals("action")) //NOI18N descriptors[i].setHidden(true); } beanDescriptor.setValue( Constants.BeanDescriptor.INLINE_EDITABLE_PROPERTIES, new String[] { "label://label" }); // NOI18N }
public BeanDescriptor getBeanDescriptor() { if (beanDescriptor == null) { beanDescriptor = new BeanDescriptor(beanClass); beanDescriptor.setValue(Constants.BeanDescriptor.INSTANCE_NAME, "bigIntegerConverter"); //NOI18N beanDescriptor.setDisplayName(bundle.getMessage("bigIntegerConvert")); //NOI18N beanDescriptor.setShortDescription(bundle.getMessage("bigIntegerConvertShortDesc")); //NOI18N beanDescriptor.setValue(Constants.BeanDescriptor.HELP_KEY, "projrave_ui_elements_palette_jsf-val-conv_big_integer_converter"); } return beanDescriptor; }
@Override protected void initialize() { BeanDescriptor bd = getBeanDescriptor(); bd.setName("JXCollapsiblePane"); bd.setShortDescription("A pane which hides its content with an animation."); bd.setValue("isContainer", Boolean.TRUE); bd.setValue("containerDelegate", "getContentPane"); setPreferred(true, "animated", "collapsed", "direction"); setBound(true, "animated", "collapsed", "direction"); setPropertyEditor(DirectionPropertyEditor.class, "direction"); }