Package org.eclipse.swt.graphics

Examples of org.eclipse.swt.graphics.Cursor


    grid_data.grabExcessHorizontalSpace = true;
    grid_data.horizontalAlignment = GridData.CENTER;
    link.setLayoutData(grid_data);
    link.setFont(skin.getLabelFont());
    link.setForeground(SWTThread.getDisplay().getSystemColor(SWT.COLOR_BLUE));
    link.setCursor(new Cursor(SWTThread.getDisplay(),SWT.CURSOR_HAND));
    link.setText(JMConstants.JMULE_FORUMS);
    link.setData(JMConstants.JMULE_FORUMS);
    link.addMouseListener(link_listener);
   
    Composite controls_composite = new Composite(content,SWT.NONE);
View Full Code Here


    label.setFont(skin.getDefaultFont());
    label.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    label.setText(server.getServerLink().getAsString());
    label.setToolTipText(_._("serverpropertieswindow.label.ed2k_link.tooltip"));
    label.setForeground(SWTThread.getDisplay().getSystemColor(SWT.COLOR_BLUE));
    label.setCursor(new Cursor(SWTThread.getDisplay(),SWT.CURSOR_HAND));
    label.addListener(SWT.MouseUp, new Listener() {
      public void handleEvent(Event arg0) {
        Utils.setClipBoardText(server.getServerLink().getAsString());
      }
    });
View Full Code Here

    }
  }
 
  public static void formatAsLink(Label label, final MouseListener listener ) {
    label.setForeground(SWTThread.getDisplay().getSystemColor(SWT.COLOR_BLUE));
    label.setCursor(new Cursor(SWTThread.getDisplay(),SWT.CURSOR_HAND));
    label.addMouseListener(listener);
  }
View Full Code Here

    grid_data.horizontalSpan = 2;
    download_link.setLayoutData(grid_data);
    download_link.setText(_._("updaterwindow.label.download_link"));
    download_link.setData(JMConstants.JMULE_DOWNLOAD_PAGE);
    download_link.setForeground(SWTThread.getDisplay().getSystemColor(SWT.COLOR_BLUE));
    download_link.setCursor(new Cursor(SWTThread.getDisplay(),SWT.CURSOR_HAND));
    download_link.addMouseListener(new MouseAdapter() { 
      public void mouseDoubleClick(MouseEvent arg0) {
        String path = (String) ((CLabel) arg0.widget).getData();
        if (!Utils.launchProgram(path))
          Utils.showWarningMessage(shell, _._("updaterwindow.error_open_url.title")
View Full Code Here

    /* Guard against Illegal-Thread-Access */
    if (display == null)
      throw new IllegalStateException("Method was not called from the UI-Thread!");

    /* Set the Cursor */
    Cursor cursor = display.getSystemCursor(SWT.CURSOR_APPSTARTING);
    Shell[] shells = display.getShells();
    for (Shell shell : shells) {
      Integer id = (Integer) shell.getData(BUSYID_NAME);
      if (id == null) {
        shell.setCursor(cursor);
View Full Code Here

    /* Guard against Illegal-Thread-Access */
    if (display == null)
      throw new IllegalStateException("Method was not called from the UI-Thread!");

    /* Set the Cursor */
    Cursor cursor = display.getSystemCursor(SWT.CURSOR_APPSTARTING);
    Shell[] shells = display.getShells();
    for (Shell shell : shells) {
      Integer id = (Integer) shell.getData(BUSYID_NAME);
      if (id == null) {
        shell.setCursor(cursor);
View Full Code Here

    /* Guard against Illegal-Thread-Access */
    if (display == null)
      throw new IllegalStateException("Method was not called from the UI-Thread!"); //$NON-NLS-1$

    /* Set the Cursor */
    Cursor cursor = display.getSystemCursor(SWT.CURSOR_APPSTARTING);
    Shell[] shells = display.getShells();
    for (Shell shell : shells) {
      Integer id = (Integer) shell.getData(BUSYID_NAME);
      if (id == null) {
        shell.setCursor(cursor);
View Full Code Here

  }

  //setzt den Maus auf SandUhr
  public static void startCursor(Shell shell){
    if(!shell.isDisposed())
      shell.setCursor(new Cursor(shell.getDisplay(), SWT.CURSOR_WAIT));
  }
View Full Code Here

  }

  //setzt den Maus auf Pfeil
  public static void stopCursor(Shell shell){
    if(!shell.isDisposed())
      shell.setCursor(new Cursor(shell.getDisplay(), SWT.CURSOR_ARROW));
  }
View Full Code Here

  }

  //setzt den Maus auf SandUhr
  public static void startCursor(Shell shell){
    if(!shell.isDisposed())
      shell.setCursor(new Cursor(shell.getDisplay(), SWT.CURSOR_WAIT));
  }
View Full Code Here

TOP

Related Classes of org.eclipse.swt.graphics.Cursor

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.