/** Get an icon for this node in the closed state. * Uses the Bean's icon if possible. * * @param type constant from {@link java.beans.BeanInfo} * @return icon to use */ @Override public Image getIcon(int type) { Image image = beanInfo.getIcon(type); if (image != null) { return image; } return super.getIcon(type); }
@Override public Image getIcon(int type) { return icon == null ? super.getIcon(type) : icon; }
/** Get an icon for this node in the closed state. * Uses the Bean's icon if possible. * * @param type constant from {@link java.beans.BeanInfo} * @return icon to use */ public Image getIcon (int type) { Image image = beanInfo.getIcon (type); if (image != null) return image; return super.getIcon(type); }
@Override public Image getIcon(int type) { Image original = super.getIcon(type); return ImageUtilities.mergeImages(original, MakeLogicalViewProvider.brokenProjectBadge, 8, 0); }
@Override public Image getIcon(int type) { if (call instanceof Node) { return ((Node)call).getIcon(type); } return super.getIcon(type); } }
/** Get an icon for this node in the closed state. * Uses the Bean's icon if possible. * * @param type constant from {@link java.beans.BeanInfo} * @return icon to use */ public Image getIcon (int type) { Image image = beanInfo.getIcon (type); if (image != null) return image; return super.getIcon(type); }
@Override public Image getIcon(int type) { return annotateImage(super.getIcon(type)); }
@Override public Image getIcon(int type) { String path = ""; try { path = watchModel.getIconBaseWithExtension(null, v); } catch (UnknownTypeException ex) { Exceptions.printStackTrace(ex); } setIconBaseWithExtension(path); return super.getIcon(type); }
@Override public Image getIcon(int type) { Image original = super.getIcon(type); if (broken || illegalState) { return ImageUtilities.mergeImages(original, brokenProjectBadge, 8, 0); } else { return compileOnSaveDisabled ? ImageUtilities.mergeImages(original, compileOnSaveDisabledBadge, 8, 0) : original; } }
public Image getIcon(int type) { Image img = liveBean.getBeanInfo().getIcon(type); if (img == null) { img = super.getIcon(type); // Falls back to default icon. } return img; }
public Image getIcon(int type) { Image image = null; Node imageDelegate = getImageDelegate(); if (imageDelegate != null) { image = imageDelegate.getIcon(type); } if (image == null) { image = super.getIcon(type); } return image; }
public @Override Image getIcon(int type) { Image img = super.getIcon(type); if (files != null && files.iterator().hasNext()) { try { FileObject fo = files.iterator().next(); img = fo.getFileSystem().getStatus().annotateIcon(img, type, files); } catch (FileStateInvalidException e) { ErrorManager.getDefault().notify(ErrorManager.INFORMATIONAL, e); } } return img; }
@Override public Image getIcon( int type ) { Image original = super.getIcon( type ); if (isBroken()) { return ImageUtilities.mergeImages(original, ProjectProperties.ICON_BROKEN_BADGE.getImage(), 8, 0); } else if (deployOnSaveDisabled) { return DeployOnSaveUtils.badgeDisabledDeployOnSave(original); } else { return original; } }
@Override public Image getIcon(int type) { Image original = super.getIcon(type); return badgeIcon(original, container.getDetail().getStatus()); }
public Image getIcon(int type) { if (type == BeanInfo.ICON_COLOR_16x16) { if (isJB7x()) { return ImageUtilities.loadImage("org/netbeans/modules/j2ee/jboss4/resources/as7_16x16.png"); // NOI18N } return ImageUtilities.loadImage("org/netbeans/modules/j2ee/jboss4/resources/16x16.gif"); // NOI18N } return super.getIcon(type); }
@Override public java.awt.Image getIcon(int param) { java.awt.Image retValue = super.getIcon(param); if (hasJavadoc) { retValue = Utilities.mergeImages(retValue, Utilities.loadImage("org/codehaus/mevenide/repository/DependencyJavadocIncluded.png"),//NOI18N 12, 12); } if (hasSources) { retValue = Utilities.mergeImages(retValue, Utilities.loadImage("org/codehaus/mevenide/repository/DependencySrcIncluded.png"),//NOI18N 12, 8); } return retValue; }
@Override public java.awt.Image getIcon(int param) { java.awt.Image retValue = super.getIcon(param); if (hasJavadoc) { retValue = Utilities.mergeImages(retValue, Utilities.loadImage("org/codehaus/mevenide/repository/DependencyJavadocIncluded.png"),//NOI18N 12, 12); } if (hasSources) { retValue = Utilities.mergeImages(retValue, Utilities.loadImage("org/codehaus/mevenide/repository/DependencySrcIncluded.png"),//NOI18N 12, 8); } return retValue; }
private Image computeIcon(boolean opened, int type) { Image image; Node iconDelegate = getIconDelegate(); if (opened) { image = iconDelegate != null ? iconDelegate.getOpenedIcon(type) : super.getOpenedIcon(type); } else { image = iconDelegate != null ? iconDelegate.getIcon(type) : super.getIcon(type); } Image badge = ImageUtilities.loadImage(EJB_BADGE); return ImageUtilities.mergeImages(image, badge, 7, 7); }
@Override public Image getIcon(int param) { java.awt.Image retValue = super.getIcon(param); if (hasJavadoc) { Image ann = ImageUtilities.loadImage(IconResources.JAVADOC_BADGE_ICON); //NOI18N ann = ImageUtilities.addToolTipToImage(ann, toolTipJavadoc); retValue = ImageUtilities.mergeImages(retValue, ann, 12, 0);//NOI18N } if (hasSources) { Image ann = ImageUtilities.loadImage(IconResources.SOURCE_BADGE_ICON); //NOI18N ann = ImageUtilities.addToolTipToImage(ann, toolTipSource); retValue = ImageUtilities.mergeImages(retValue, ann, 12, 8);//NOI18N } return retValue; }
@Override public Image getIcon(int type) { if (description.getCustomIcon() != null) { return ImageUtilities.icon2Image(description.getCustomIcon()); } Icon icon = Icons.getElementIcon(description.getKind(), description.getModifiers()); if (icon != null) { return ImageUtilities.icon2Image(icon); } else { return super.getIcon(type); } }