/** * Set the label that displays the icon. * * @param iconLabel the label to display the icon, may be the same as the text label or <code>null * </code> to ignore the icon * @see #setTextLabel(Label) */ public void setIconLabel(Label iconLabel) { this.iconLabel = iconLabel; if (icon != null) { iconLabel.setIcon(icon); } }
/** @generated */ protected void setLabelIconHelper(IFigure figure, Image icon) { if (figure instanceof WrappingLabel) { ((WrappingLabel) figure).setIcon(icon); } else { ((Label) figure).setIcon(icon); } }
@Override protected IFigure createFigure() { Label l = (Label) super.createFigure(); l.setIcon( IntegrationImages.getImageWithBadge( IntegrationImages.INBOUND_ADAPTER, IntegrationImages.BADGE_SI_JPA)); return l; }
@Override protected IFigure createFigure() { Label l = (Label) super.createFigure(); l.setIcon( IntegrationImages.getImageWithBadge( IntegrationImages.TRANSFORMER, IntegrationImages.BADGE_SI_FILE)); return l; }
public void markError(String errMsg) { errStr = errMsg; if (errStr != null) { // lblCnnName.setIcon(ImageFactory.getErrorImg()); } else { lblCnnName.setIcon(null); } }
@Override public void setIcon(Image icon) { this.icon = icon; if (iconLabel != null) { iconLabel.setIcon(icon); adjustSize(); } }
/** @generated */ protected void setLabelIconHelper(IFigure figure, Image icon) { if (figure instanceof WrappingLabel) { ((WrappingLabel) figure).setIcon(icon); return; } else if (figure instanceof Label) { ((Label) figure).setIcon(icon); return; } else { getLabelDelegate().setIcon(icon, 0); } }
public InterceptorsFigure() { ToolbarLayout layout = new ToolbarLayout(); setLayoutManager(layout); setBorder(new LineBorder(ColorConstants.black, 1)); /* Header Label */ Label constantLabel = new Label("Interceptors"); constantLabel.setLabelAlignment(PositionConstants.LEFT); constantLabel.setIcon( S2EditorUI.getImageDescriptor("icons/arraypartition_obj.gif").createImage()); constantLabel.setBackgroundColor(new Color(null, 0xb7, 0xe4, 0xa8)); constantLabel.setOpaque(true); constantLabel.setForegroundColor(ColorConstants.titleForeground); constantLabel.setFont(JFaceResources.getFontRegistry().getBold(JFaceResources.DIALOG_FONT)); add(constantLabel); bodyFigure = new BodyFigure(); add(bodyFigure); }
@Override protected IFigure createFigure() { Label l = (Label) super.createFigure(); l.setIcon(CommonImages.getImage(BatchImages.END)); return l; }