本文整理汇总了Java中java.beans.BeanDescriptor.setValue方法的典型用法代码示例。如果您正苦于以下问题:Java BeanDescriptor.setValue方法的具体用法?Java BeanDescriptor.setValue怎么用?Java BeanDescriptor.setValue使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类java.beans.BeanDescriptor
的用法示例。
在下文中一共展示了BeanDescriptor.setValue方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getBeanDescriptor
import java.beans.BeanDescriptor; //导入方法依赖的package包/类
@Override
public BeanDescriptor getBeanDescriptor() {
BeanDescriptor beanDescriptor = new BeanDescriptor(beanClass, null);
beanDescriptor.setDisplayName(displayName);
beanDescriptor.setShortDescription(shortDescription);
if (iconNameC16 != null) {
beanDescriptor.setValue("icon" + BeanInfo.ICON_COLOR_16x16, iconNameC16);
}
if (iconNameC32 != null) {
beanDescriptor.setValue("icon" + BeanInfo.ICON_COLOR_32x32, iconNameC32);
}
if (iconNameM16 != null) {
beanDescriptor.setValue("icon" + BeanInfo.ICON_MONO_16x16, iconNameM16);
}
if (iconNameM32 != null) {
beanDescriptor.setValue("icon" + BeanInfo.ICON_MONO_32x32, iconNameM32);
}
return beanDescriptor;
}
示例2: getBeanDescriptor
import java.beans.BeanDescriptor; //导入方法依赖的package包/类
@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;
}
示例3: getBeanDescriptor
import java.beans.BeanDescriptor; //导入方法依赖的package包/类
@Override
public BeanDescriptor getBeanDescriptor() {
BeanDescriptor bd = new BeanDescriptor(TestClass.class, null);
bd.setShortDescription("user-defined-description");
bd.setValue("isContainer", true);
bd.setValue("containerDelegate", "user-defined-delegate");
return bd;
}
示例4: getBeanDescriptor
import java.beans.BeanDescriptor; //导入方法依赖的package包/类
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;
}
示例5: getBeanDescriptor
import java.beans.BeanDescriptor; //导入方法依赖的package包/类
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;
}
示例6: getBeanDescriptor
import java.beans.BeanDescriptor; //导入方法依赖的package包/类
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;
}
示例7: getBeanDescriptor
import java.beans.BeanDescriptor; //导入方法依赖的package包/类
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;
}