Package org.vietspider.ui.services

Examples of org.vietspider.ui.services.ClientRM


    text.setLayoutData(gridData);
    text.setText(path);
    text.setFont(UIDATA.FONT_8V);
    text.setBackground(ColorCache.getInstance().getWhite());
   
    ClientRM resource = new ClientRM("HTMLExplorer");
   
    Label label = new Label(main, SWT.NONE);
    gridData = new GridData(GridData.FILL_HORIZONTAL);
    label.setText(resource.getLabel("invalid_path"));
    label.setLayoutData(gridData);
    label.setFont(UIDATA.FONT_9);
   
    Composite bottom = new Composite(main, SWT.NONE);
    gridData = new GridData(GridData.FILL_HORIZONTAL);
    gridData.horizontalSpan = 3;
    bottom.setLayoutData(gridData);
    RowLayout rowLayout = new RowLayout();
    bottom.setLayout(rowLayout);
    rowLayout.justify = true;
   
    Button button = new Button(bottom, SWT.PUSH);
    button.setText(resource.getLabel("remove.path.yes_to_all"));
    button.addSelectionListener(new SelectionAdapter(){
      @SuppressWarnings("unused")
      public void widgetSelected(SelectionEvent evt) {
        type  = YES_TO_ALL;
        shell.dispose();
      }     
    });   
    button.setFont(UIDATA.FONT_9);
   
    button = new Button(bottom, SWT.PUSH);
    button.setText(resource.getLabel("remove.path.yes"));
    button.addSelectionListener(new SelectionAdapter(){
      @SuppressWarnings("unused")
      public void widgetSelected(SelectionEvent evt) {
        type  = YES;
        shell.dispose();
      }     
    });
    button.setFont(UIDATA.FONT_9);
   
    button = new Button(bottom, SWT.PUSH);
    button.setText(resource.getLabel("remove.path.no"));
    button.addSelectionListener(new SelectionAdapter(){
      @SuppressWarnings("unused")
      public void widgetSelected(SelectionEvent evt) {
        type  = NO;
        shell.dispose();
      }     
    });
    button.setFont(UIDATA.FONT_9);
   
    button = new Button(bottom, SWT.PUSH);
    button.setText(resource.getLabel("remove.path.no_to_all"));
    button.addSelectionListener(new SelectionAdapter(){
      @SuppressWarnings("unused")
      public void widgetSelected(SelectionEvent evt) {
        type  = NO_TO_ALL;
        shell.dispose();
View Full Code Here


  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

public class ApplicationFactory extends UIFactory {

  private String CLASS_NAME ;

  public ApplicationFactory(Composite composite, String source, String name) {
    resources = new ClientRM(source);
    CLASS_NAME = name;   
    this.composite = composite;   
  }
View Full Code Here

    CLASS_NAME = name;   
    this.composite = composite;   
  }

  public ApplicationFactory(String source, Class<?> cl, int w, int h) {   
    resources = new ClientRM(source);
    CLASS_NAME = cl.getName();
    if(XPWidgetTheme.isPlatform()) {
      composite = createShell(UIDATA.DISPLAY, cl, resources.getLabel(CLASS_NAME+".title"), "VietSpider.png", w, h);
    } else {
      composite = createShell(UIDATA.DISPLAY, cl, resources.getLabel(CLASS_NAME+".title"), "VietSpider2.ico", w, h)
View Full Code Here

TOP

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

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.