本文整理汇总了Java中java.beans.BeanInfo.ICON_MONO_16x16方法的典型用法代码示例。如果您正苦于以下问题:Java BeanInfo.ICON_MONO_16x16方法的具体用法?Java BeanInfo.ICON_MONO_16x16怎么用?Java BeanInfo.ICON_MONO_16x16使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类java.beans.BeanInfo
的用法示例。
在下文中一共展示了BeanInfo.ICON_MONO_16x16方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getIcon
import java.beans.BeanInfo; //导入方法依赖的package包/类
@Override
public Image getIcon(int type) {
Image icon = null;
if (type == BeanInfo.ICON_COLOR_16x16 || type == BeanInfo.ICON_MONO_16x16) {
if (icon16 == null) {
icon16 = _getIcon(type, icon16URL);
if (icon16 == null)
icon16 = ImageUtilities.loadImage("org/netbeans/modules/palette/resources/unknown16.gif"); // NOI18N
}
icon = icon16;
}
else if (type == BeanInfo.ICON_COLOR_32x32 || type == BeanInfo.ICON_MONO_32x32) {
if (icon32 == null) {
icon32 = _getIcon(type, icon32URL);
if (icon32 == null)
icon32 = ImageUtilities.loadImage("org/netbeans/modules/palette/resources/unknown32.gif"); // NOI18N
}
icon = icon32;
}
return icon;
}
示例2: getIcon
import java.beans.BeanInfo; //导入方法依赖的package包/类
public Image getIcon(int iconKind) {
if ((iconKind == BeanInfo.ICON_COLOR_16x16) || (iconKind == BeanInfo.ICON_MONO_16x16)) {
return ImageUtilities.loadImage("org/netbeans/modules/java/j2seplatform/resources/platform.gif"); // NOI18N
} else {
return null;
}
}
示例3: getIcon
import java.beans.BeanInfo; //导入方法依赖的package包/类
@Override
public Image getIcon(int type) {
if ((type == BeanInfo.ICON_COLOR_16x16) || (type == BeanInfo.ICON_MONO_16x16)) {
// XXX new icons would be great!
return ImageUtilities.loadImage("org/netbeans/modules/java/resources/class.png"); // NOI18N
}
else {
return ImageUtilities.loadImage("org/netbeans/modules/java/resources/class.png"); // NOI18N
}
}
示例4: getIcon
import java.beans.BeanInfo; //导入方法依赖的package包/类
/** @param type Desired type of the icon
* @return returns the properties loader's icon */
public Image getIcon(final int type) {
if((type == BeanInfo.ICON_COLOR_16x16) || (type == BeanInfo.ICON_MONO_16x16)) {
return ImageUtilities.loadImage("org/netbeans/modules/properties/propertiesObject.png"); // NOI18N
} else {
return ImageUtilities.loadImage("org/netbeans/modules/properties/propertiesObject32.gif"); // NOI18N
}
}
示例5: getIcon
import java.beans.BeanInfo; //导入方法依赖的package包/类
@Override
public Image getIcon(int type) {
if (type == BeanInfo.ICON_COLOR_16x16 || type == BeanInfo.ICON_MONO_16x16) {
return ImageUtilities.loadImage("org/netbeans/modules/hibernate/resources/hibernate-configuration.png");
} else {
return null;
}
}
示例6: getIcon
import java.beans.BeanInfo; //导入方法依赖的package包/类
@Override
public Image getIcon(int type) {
if (type == BeanInfo.ICON_COLOR_16x16 || type == BeanInfo.ICON_MONO_16x16) {
return ImageUtilities.loadImage("org/netbeans/modules/hibernate/resources/hibernate-mapping.png");
} else {
return null;
}
}
示例7: getIcon
import java.beans.BeanInfo; //导入方法依赖的package包/类
@Override
public Image getIcon(int type) {
if (type == BeanInfo.ICON_COLOR_16x16 || type == BeanInfo.ICON_MONO_16x16) {
return ImageUtilities.loadImage("org/netbeans/modules/hibernate/resources/hibernate-reveng.png");
} else {
return null;
}
}
示例8: getIcon
import java.beans.BeanInfo; //导入方法依赖的package包/类
public Image getIcon(int type) {
if (type == BeanInfo.ICON_COLOR_16x16 || type == BeanInfo.ICON_MONO_16x16) {
return ImageUtilities.loadImage("org/netbeans/modules/javawebstart/resources/jnlp.gif"); // NOI18N
} else {
return null;
}
}