本文整理匯總了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;
}