public void setText(String text) { if (text != null) titleLabel.setText(text); titleLabel.setVisible(text != null); layout(); redraw(); }
public void setText(String text) { if (text != null) titleLabel.setText(text); titleLabel.setVisible(text != null); layout(); redraw(); }
@Override public void setFont(Font font) { super.setFont(font); titleLabel.setFont(font); fontHeight = -1; fontBaselineHeight = -1; layout(); }
@Override public void setFont(Font font) { super.setFont(font); titleLabel.setFont(font); fontHeight = -1; fontBaselineHeight = -1; layout(); }
public void updateImage(Image newImage, boolean doLayout) { Image theImage = newImage != null ? newImage : this.image; if (theImage != null) { ensureBusyLabelExists(); } else if (busyLabel != null) { if (!busyLabel.isBusy()) { busyLabel.dispose(); busyLabel = null; } } if (busyLabel != null) { busyLabel.setImage(theImage); } if (doLayout) layout(); }
public void updateImage(Image newImage, boolean doLayout) { Image theImage = newImage != null ? newImage : this.image; if (theImage != null) { ensureBusyLabelExists(); } else if (busyLabel != null) { if (!busyLabel.isBusy()) { busyLabel.dispose(); busyLabel = null; } } if (busyLabel != null) { busyLabel.setImage(theImage); } if (doLayout) layout(); }
/** * Sets the form's busy state. Busy form will display 'busy' animation in * the area of the title image. * * @param busy * the form's busy state */ public boolean setBusy(boolean busy) { if (busy) ensureBusyLabelExists(); else if (busyLabel == null) return false; if (busy == busyLabel.isBusy()) return false; busyLabel.setBusy(busy); if (busyLabel.getImage() == null) { layout(); return true; } return false; }
/** * Sets the form's busy state. Busy form will display 'busy' animation in * the area of the title image. * * @param busy * the form's busy state */ public boolean setBusy(boolean busy) { if (busy) ensureBusyLabelExists(); else if (busyLabel == null) return false; if (busy == busyLabel.isBusy()) return false; busyLabel.setBusy(busy); if (busyLabel.getImage() == null) { layout(); return true; } return false; }