Package org.vietspider.ui.services

Examples of org.vietspider.ui.services.ImageLoader


    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(){
      @SuppressWarnings("unused")
      public void linkEntered(HyperlinkEvent e) {
        add.setImage(addNormal);
View Full Code Here


    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(){
      @SuppressWarnings("unused")
      public void linkEntered(HyperlinkEvent e) {
        add.setImage(addNormal);
View Full Code Here

 
  private Image imageCancel1;
  private Image imageCancel;
 
  public ToolbarResource(Display display, String resource, Class<?> clazz) {
    ImageLoader imgResources = new ImageLoader();
   
    ClientRM txtResources = new ClientRM(resource);
   
    textBack = txtResources.getLabel(clazz.getName()+".backTip");
    if(XPWidgetTheme.isPlatform()) {
      imageBack1 = imgResources.load(display, "xBack1.png");
      imageBack = imgResources.load(display, "xBack.png");
    } else {
      imageBack1 = imgResources.load(display, "back1.png");
      imageBack = imgResources.load(display, "back.png");
    }
   
    textForward = txtResources.getLabel(clazz.getName()+".forwardTip");
    if(XPWidgetTheme.isPlatform()) {
      imageForward1 = imgResources.load(display, "xForward1.png");
      imageForward = imgResources.load(display, "xForward.png");
    } else {
      imageForward1 = imgResources.load(display, "forward1.png");
      imageForward = imgResources.load(display, "forward.png");
    }
   
    textRefesh = txtResources.getLabel(clazz.getName()+".refreshTip");
    if(XPWidgetTheme.isPlatform()) {
      imageRefesh1 = imgResources.load(display, "xRefresh1.png");
      imageRefesh = imgResources.load(display, "xRefresh.png");
    } else {
      imageRefesh1 = imgResources.load(display, "refresh1.png");
      imageRefesh = imgResources.load(display, "refresh.png");
    }
   
    textGo = txtResources.getLabel(clazz.getName()+".goTip");
    imageGo = imgResources.load(display, "godom.png");
    imageGo1 = imgResources.load(display, "godom1.png");
   
    textStop = txtResources.getLabel(clazz.getName()+".stopTip");
    imageStop1 = imgResources.load(display, "stop1.png");
    imageStop = imgResources.load(display, "stop.png");
   
    imageCancel1 = imgResources.load(display, "xgocancel1.png");
    imageCancel = imgResources.load(display, "xgocancel.png");
  }
View Full Code Here

TOP

Related Classes of org.vietspider.ui.services.ImageLoader

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.