Package org.vietspider.ui.widget

Examples of org.vietspider.ui.widget.ImageHyperlink


    gridLayout.horizontalSpacing = 0;
    gridLayout.verticalSpacing = 0;
    gridLayout.marginWidth = 0;
    popup.setLayout(gridLayout);
   
    add = new ImageHyperlink(popup, SWT.CENTER);
    ImageLoader imageLoader = new ImageLoader();
    addNormal = imageLoader.load(popup.getDisplay(), "add2.png");
    addDown = imageLoader.load(popup.getDisplay(), "add3.png");
    add.setImage(addNormal);
    add.addHyperlinkListener(new HyperlinkAdapter(){
View Full Code Here


    gridLayout.horizontalSpacing = 0;
    gridLayout.verticalSpacing = 0;
    gridLayout.marginWidth = 0;
    popup.setLayout(gridLayout);

    add = new ImageHyperlink(popup, SWT.CENTER);
    ImageLoader imageLoader = new ImageLoader();
    addNormal = imageLoader.load(popup.getDisplay(), "add2.png");
    addDown = imageLoader.load(popup.getDisplay(), "add3.png");
    add.setImage(addNormal);
    add.addHyperlinkListener(new HyperlinkAdapter(){
View Full Code Here

 
  private OutlookBarPane pane; 
 
  public OutlookBarItem(OutlookBarPane p, String lbl, Image img) {  
    pane = p;  
    image = new ImageHyperlink(pane.getControl(), SWT.CENTER);
    image.setBackground(pane.getControl().getBackground());
    image.addMouseTrackListener(new MouseTrackAdapter(){
      public void mouseEnter(MouseEvent e){
        if(label != null) label.setFont(UIDATA.FONT_9VB);
      }
View Full Code Here

    int width = size.x - 4;
    int left = (width - sizeIcon) / 2;
   
    for(int i = 0; i < itemList.size(); i++) {
      OutlookBarItem item = itemList.get(i);
      ImageHyperlink image = item.getImage();
      Rectangle rect  = image.getImage().getBounds();
      image.setBounds(left, top, rect.width,  rect.height);
      top +=  rect.height + 4;
      Label itemLabel = item.getLabel();
      itemLabel.setBounds(5, top, width-20, 16);
      top = top + 40;     
    }   
View Full Code Here

  public void setImageGo1(Image imageGo1) { this.imageGo1 = imageGo1; }
  public Image getImageGo() { return imageGo;  }
 
  public ImageHyperlink createIcon(Composite com, Image img, String tip, IHyperlinkListener listener) {   
    ImageHyperlink icon = new ImageHyperlink(com , SWT.CENTER);
    icon.setBackground(com.getBackground());
    icon.setImage(img);
    if(listener != null) icon.addHyperlinkListener(listener);
    icon.setToolTipText(tip);
    return icon;   
  }
View Full Code Here

TOP

Related Classes of org.vietspider.ui.widget.ImageHyperlink

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.