Exemplo n.º 1
0
 private void initImages() {
   imageList = new ImageList(skin.getShell());
   this.icons = new Image[BROWSERSIM_ICONS.length];
   for (int i = 0; i < BROWSERSIM_ICONS.length; i++) {
     icons[i] = imageList.getImage(BROWSERSIM_ICONS[i]);
   }
 }
 public IPadPageTitleStyledText(Composite parent, ImageList imageList) {
   super(parent, (IS_OSX ? SWT.MULTI : SWT.SINGLE) | SWT.WRAP);
   setBackgroundImage(imageList.getImage(BD + "page-title-background.png"));
   setEditable(false);
   setEnabled(false);
   setMargins(16, IS_OSX ? 7 : 6, 16, 0);
   setAlignment(SWT.CENTER);
   setLineSpacing(27);
   font = createFont(this.getDisplay(), SWT.BOLD);
   setFont(font);
   BrowserSimUtil.addDisposeListener(this, font);
   foregroundColor = new Color(this.getDisplay(), 64, 64, 64);
   setForeground(foregroundColor);
   BrowserSimUtil.addDisposeListener(this, foregroundColor);
 }