/** * Sets the icon preferred width. * * @param iconPreferredWidth * the iconPreferredWidth to set. */ public void setIconPreferredWidth(int iconPreferredWidth) { if (icon == null) { icon = new Icon(); } icon.setWidth(iconPreferredWidth); }
/** * Sets the icon preferred width. * * @param iconPreferredWidth * the iconPreferredWidth to set. */ public void setIconPreferredWidth(int iconPreferredWidth) { if (icon == null) { icon = new Icon(); } icon.setWidth(iconPreferredWidth); }
/** * Sets the icon preferred width. * * @param iconPreferredHeight * the iconPreferredHeight to set. */ public void setIconPreferredHeight(int iconPreferredHeight) { if (icon == null) { icon = new Icon(); } icon.setHeight(iconPreferredHeight); }
/** * Sets the icon preferred width. * * @param iconPreferredHeight * the iconPreferredHeight to set. */ public void setIconPreferredHeight(int iconPreferredHeight) { if (icon == null) { icon = new Icon(); } icon.setHeight(iconPreferredHeight); }
/** * Sets the icon image URL of this workspace. Supported URL protocols include * : * <ul> * <li>all JVM supported protocols</li> * <li>the <b>jar:/</b> pseudo URL protocol</li> * <li>the <b>classpath:/</b> pseudo URL protocol</li> * </ul> * * @param iconImageURL * the iconImageURL to set. */ public void setIconImageURL(String iconImageURL) { if (icon == null) { icon = new Icon(); } icon.setIconImageURL(iconImageURL); }
/** * Sets the icon image URL of this descriptor. Supported URL protocols include * : * <ul> * <li>all JVM supported protocols</li> * <li>the <b>jar:/</b> pseudo URL protocol</li> * <li>the <b>classpath:/</b> pseudo URL protocol</li> * </ul> * * @param iconImageURL * the iconImageURL to set. */ public void setIconImageURL(String iconImageURL) { if (icon == null) { icon = new Icon(); } icon.setIconImageURL(iconImageURL); }
/** * {@inheritDoc} * * @return the icon */ @Override public Icon getIcon() { Icon icon = super.getIcon(); if (icon == null) { if (entityDescriptor != null) { icon = entityDescriptor.getIcon(); } if (icon == null) { icon = new Icon(getDefaultIconImageURL(), null); } } return icon; }