Java Code Examples for java.beans.BeanDescriptor#setValue()
The following examples show how to use
java.beans.BeanDescriptor#setValue() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MicrosoftEdgeBrowserBeanInfo.java From netbeans with Apache License 2.0 | 5 votes |
@Override public BeanDescriptor getBeanDescriptor() { BeanDescriptor descr = new BeanDescriptor(MicrosoftEdgeBrowser.class); descr.setDisplayName(NbBundle.getMessage(MicrosoftEdgeBrowserBeanInfo.class, "CTL_MicrosoftEdgeBrowserName")); // NOI18N descr.setShortDescription(NbBundle.getMessage(MicrosoftEdgeBrowserBeanInfo.class, "HINT_MicrosoftEdgeBrowserName")); // NOI18N descr.setValue ("helpID", "org.netbeans.modules.extbrowser.ExtWebBrowser"); // NOI18N return descr; }
Example 2
Source File: FilterBeanInfo.java From jivejdon with Apache License 2.0 | 5 votes |
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 em = bundle.getKeys(); while (em.hasMoreElements()) { String key = (String)em.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; }
Example 3
Source File: JiveBeanInfo.java From Openfire with Apache License 2.0 | 5 votes |
@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; }
Example 4
Source File: Foo.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
public BeanDescriptor getBeanDescriptor() { BeanDescriptor bd = new BeanDescriptor(Foo.class); // set a value to ensure that it's unique bd.setValue("test", Boolean.TRUE); return bd; }
Example 5
Source File: WombatBeanInfo.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
public BeanDescriptor getBeanDescriptor() { BeanDescriptor bd = new BeanDescriptor(Wombat.class); // set a value to ensure that it's unique bd.setValue("test", Boolean.TRUE); return bd; }
Example 6
Source File: ComponentBeanInfo.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
public BeanDescriptor getBeanDescriptor() { BeanDescriptor bd = new BeanDescriptor(Component.class); // set a value to ensure that it's unique bd.setValue("test", Boolean.TRUE); return bd; }
Example 7
Source File: ComponentBeanInfo.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
public BeanDescriptor getBeanDescriptor() { BeanDescriptor bd = new BeanDescriptor(Component.class); // set a value to ensure that it's unique bd.setValue("test", Boolean.TRUE); return bd; }
Example 8
Source File: FooBarBeanInfo.java From jdk8u-jdk with GNU General Public License v2.0 | 4 votes |
public BeanDescriptor getBeanDescriptor() { BeanDescriptor bd = new BeanDescriptor(FooBar.class); // set a value to ensure that it's unique bd.setValue("test", Boolean.TRUE); return bd; }
Example 9
Source File: FooBarBeanInfo.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
public BeanDescriptor getBeanDescriptor() { BeanDescriptor bd = new BeanDescriptor(FooBar.class); // set a value to ensure that it's unique bd.setValue("test", Boolean.TRUE); return bd; }
Example 10
Source File: FooBarBeanInfo.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
public BeanDescriptor getBeanDescriptor() { BeanDescriptor bd = new BeanDescriptor(FooBar.class); // set a value to ensure that it's unique bd.setValue("test", Boolean.TRUE); return bd; }
Example 11
Source File: Foo.java From jdk8u_jdk with GNU General Public License v2.0 | 4 votes |
public BeanDescriptor getBeanDescriptor() { BeanDescriptor bd = new BeanDescriptor(Foo.class); // set a value to ensure that it's unique bd.setValue("test", Boolean.TRUE); return bd; }
Example 12
Source File: WombatBeanInfo.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
public BeanDescriptor getBeanDescriptor() { BeanDescriptor bd = new BeanDescriptor(Wombat.class); // set a value to ensure that it's unique bd.setValue("test", Boolean.TRUE); return bd; }
Example 13
Source File: ComponentBeanInfo.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 4 votes |
public BeanDescriptor getBeanDescriptor() { BeanDescriptor bd = new BeanDescriptor(Component.class); // set a value to ensure that it's unique bd.setValue("test", Boolean.TRUE); return bd; }
Example 14
Source File: WombatBeanInfo.java From jdk8u-jdk with GNU General Public License v2.0 | 4 votes |
public BeanDescriptor getBeanDescriptor() { BeanDescriptor bd = new BeanDescriptor(Wombat.class); // set a value to ensure that it's unique bd.setValue("test", Boolean.TRUE); return bd; }
Example 15
Source File: FooBarBeanInfo.java From jdk8u-jdk with GNU General Public License v2.0 | 4 votes |
public BeanDescriptor getBeanDescriptor() { BeanDescriptor bd = new BeanDescriptor(FooBar.class); // set a value to ensure that it's unique bd.setValue("test", Boolean.TRUE); return bd; }
Example 16
Source File: WombatBeanInfo.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 4 votes |
public BeanDescriptor getBeanDescriptor() { BeanDescriptor bd = new BeanDescriptor(Wombat.class); // set a value to ensure that it's unique bd.setValue("test", Boolean.TRUE); return bd; }
Example 17
Source File: ComponentBeanInfo.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
public BeanDescriptor getBeanDescriptor() { BeanDescriptor bd = new BeanDescriptor(Component.class); // set a value to ensure that it's unique bd.setValue("test", Boolean.TRUE); return bd; }
Example 18
Source File: ComponentBeanInfo.java From jdk8u-jdk with GNU General Public License v2.0 | 4 votes |
public BeanDescriptor getBeanDescriptor() { BeanDescriptor bd = new BeanDescriptor(Component.class); // set a value to ensure that it's unique bd.setValue("test", Boolean.TRUE); return bd; }
Example 19
Source File: FooBarBeanInfo.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
public BeanDescriptor getBeanDescriptor() { BeanDescriptor bd = new BeanDescriptor(FooBar.class); // set a value to ensure that it's unique bd.setValue("test", Boolean.TRUE); return bd; }
Example 20
Source File: WombatBeanInfo.java From dragonwell8_jdk with GNU General Public License v2.0 | 4 votes |
public BeanDescriptor getBeanDescriptor() { BeanDescriptor bd = new BeanDescriptor(Wombat.class); // set a value to ensure that it's unique bd.setValue("test", Boolean.TRUE); return bd; }