Tabnine Logo
Composite.setCursor
Code IndexAdd Tabnine to your IDE (free)

How to use
setCursor
method
in
org.eclipse.swt.widgets.Composite

Best Java code snippets using org.eclipse.swt.widgets.Composite.setCursor (Showing top 20 results out of 315)

origin: org.eclipse.swt.cocoa.macosx/x86_64

void _setCursor (Cursor cursor) {
  if (this.cursor != null) return;
  super.setCursor (cursor);
}
protected void checkSubclass () {
origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc

void _setCursor (Cursor cursor) {
  if (this.cursor != null) return;
  super.setCursor (cursor);
}
@Override
origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc

void _setCursor (Cursor cursor) {
  if (this.cursor != null) return;
  super.setCursor (cursor);
}
@Override
origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x

void _setCursor (Cursor cursor) {
  if (this.cursor != null) return;
  super.setCursor (cursor);
}
@Override
origin: org.eclipse.e4.ui.workbench.addons/swt

public void mouseExit(MouseEvent e) {
  Composite comp = (Composite) e.widget;
  comp.setCursor(null);
}
origin: org.eclipse.e4.ui.workbench.renderers/swt

public void mouseExit(MouseEvent e) {
  host.setCursor(null);
}
origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x

@Override
public void setCursor (Cursor cursor) {
  checkWidget ();
  super.setCursor (this.cursor = cursor);
}
/**
origin: org.eclipse.swt.cocoa.macosx/x86_64

public void setCursor (Cursor cursor) {
  checkWidget ();
  super.setCursor (this.cursor = cursor);
}
/**
origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc

@Override
public void setCursor (Cursor cursor) {
  checkWidget ();
  super.setCursor (this.cursor = cursor);
}
/**
origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc

@Override
public void setCursor (Cursor cursor) {
  checkWidget ();
  super.setCursor (this.cursor = cursor);
}
/**
origin: BiglySoftware/BiglyBT

  @Override
  public void runSupport() {
    Composite shell = skin.getShell();
    Cursor cursor = shell.getCursor();
    try {
      shell.setCursor(shell.getDisplay().getSystemCursor(SWT.CURSOR_WAIT));
      swtSetActiveTab(newTab, evenIfSame);
    } finally {
      shell.setCursor(cursor);
    }
  }
});
origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc

@Override
void setCursor (int /*long*/ cursor) {
  int /*long*/ defaultCursor = 0;
  if (cursor == 0) defaultCursor = OS.gdk_cursor_new_for_display (OS.gdk_display_get_default(), OS.GDK_XTERM);
  super.setCursor (cursor != 0 ? cursor : defaultCursor);
  if (cursor == 0) gdk_cursor_unref (defaultCursor);
}

origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc

@Override
void setCursor (int /*long*/ cursor) {
  int /*long*/ defaultCursor = 0;
  if (cursor == 0) defaultCursor = OS.gdk_cursor_new_for_display (OS.gdk_display_get_default(), OS.GDK_XTERM);
  super.setCursor (cursor != 0 ? cursor : defaultCursor);
  if (cursor == 0) gdk_cursor_unref (defaultCursor);
}

origin: BiglySoftware/BiglyBT

@Override
public void dragStart(DragSourceEvent event) {
  cTable.setCursor(null);
  TableRowCore row = getTableRow(event.x, event.y, true);
  if (row != null && !row.isSelected()) {
    setSelectedRows(new TableRowCore[] { row });
  }
  isDragging = true;
}
origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x

@Override
void setCursor (long /*int*/ cursor) {
  long /*int*/ defaultCursor = 0;
  if (cursor == 0) defaultCursor = OS.gdk_cursor_new_for_display (OS.gdk_display_get_default(), OS.GDK_XTERM);
  super.setCursor (cursor != 0 ? cursor : defaultCursor);
  if (cursor == 0) gdk_cursor_unref (defaultCursor);
}

origin: org.eclipse.e4.ui.workbench.addons/swt

/**
 * @param p
 */
protected void setCursor(Composite composite, Point p) {
  if (hSizingRect.contains(p)) {
    composite.setCursor(composite.getDisplay().getSystemCursor(SWT.CURSOR_SIZEWE));
  } else if (vSizingRect.contains(p)) {
    composite.setCursor(composite.getDisplay().getSystemCursor(SWT.CURSOR_SIZENS));
  } else if (cornerRect.contains(p)) {
    if (isFixed(SWT.TOP)) {
      if (isFixed(SWT.RIGHT))
        composite.setCursor(composite.getDisplay().getSystemCursor(SWT.CURSOR_SIZESW));
      else
        composite.setCursor(composite.getDisplay().getSystemCursor(SWT.CURSOR_SIZESE));
    } else if (isFixed(SWT.BOTTOM)) {
      if (isFixed(SWT.RIGHT))
        composite.setCursor(composite.getDisplay().getSystemCursor(SWT.CURSOR_SIZESE));
      else
        composite.setCursor(composite.getDisplay().getSystemCursor(SWT.CURSOR_SIZESW));
    }
  } else {
    composite.setCursor(null);
  }
}
origin: org.eclipse.e4.ui.workbench.renderers/swt

  public void mouseMove(MouseEvent e) {
    if (!draggingSashes) {
      // Set the cursor feedback
      List<SashRect> sashList = getSashRects(e.x, e.y);
      if (sashList.size() == 0) {
        host.setCursor(host.getDisplay().getSystemCursor(
            SWT.CURSOR_ARROW));
      } else if (sashList.size() == 1) {
        if (sashList.get(0).container.isHorizontal())
          host.setCursor(host.getDisplay().getSystemCursor(
              SWT.CURSOR_SIZEWE));
        else
          host.setCursor(host.getDisplay().getSystemCursor(
              SWT.CURSOR_SIZENS));
      } else {
        host.setCursor(host.getDisplay().getSystemCursor(
            SWT.CURSOR_SIZEALL));
      }
    } else {
      adjustWeights(sashesToDrag, e.x, e.y);
      host.layout();
      host.update();
    }
  }
});
origin: org.eclipse.platform/org.eclipse.e4.ui.workbench.addons.swt

/**
 * @param p
 */
protected void setCursor(Composite composite, Point p) {
  if (hSizingRect.contains(p)) {
    composite.setCursor(composite.getDisplay().getSystemCursor(SWT.CURSOR_SIZEWE));
  } else if (vSizingRect.contains(p)) {
    composite.setCursor(composite.getDisplay().getSystemCursor(SWT.CURSOR_SIZENS));
  } else if (cornerRect.contains(p)) {
    if (isFixed(SWT.TOP)) {
      if (isFixed(SWT.RIGHT)) {
        composite.setCursor(composite.getDisplay().getSystemCursor(SWT.CURSOR_SIZESW));
      } else {
        composite.setCursor(composite.getDisplay().getSystemCursor(SWT.CURSOR_SIZESE));
      }
    } else if (isFixed(SWT.BOTTOM)) {
      if (isFixed(SWT.RIGHT)) {
        composite.setCursor(composite.getDisplay().getSystemCursor(SWT.CURSOR_SIZESE));
      } else {
        composite.setCursor(composite.getDisplay().getSystemCursor(SWT.CURSOR_SIZESW));
      }
    }
  } else {
    composite.setCursor(null);
  }
}
origin: BiglySoftware/BiglyBT

/**
 * Create a skin object based off an existing config "template"
 *
 * @param sID ID of new skin object
 * @param sConfigID config id to use to create new skin object
 * @param parentSkinObject location to place new skin object in
 *
 * @return new skin object
 */
public SWTSkinObject createSkinObject(String sID, String sConfigID,
    SWTSkinObject parentSkinObject, Object datasource) {
  SWTSkinObject skinObject = null;
  Cursor cursor = skinComposite.getCursor();
  try {
    skinComposite.setCursor(skinComposite.getDisplay().getSystemCursor(SWT.CURSOR_WAIT));
    skinObject = linkIDtoParent(skinProperties, sID, sConfigID,
        parentSkinObject, true, true, datasource);
    if (bLayoutComplete) {
      layout(skinObject);
  }
  } catch (Exception e) {
    Debug.out("Trying to create " + sID + "." + sConfigID + " on "
        + parentSkinObject, e);
  } finally {
    skinComposite.setCursor(cursor);
  }
  return skinObject;
}
origin: BiglySoftware/BiglyBT

  @Override
  public void runSupport() {
    if (isDisposed() || tableRow == null) {
      return;
    }
    if (isMouseOver()) {
      TableViewSWT<?> view = (TableViewSWT<?>) tableRow.getView();
      if (view != null) {
        Composite composite = view.getComposite();
        if (composite != null && !composite.isDisposed()) {
          composite.setCursor(composite.getDisplay().getSystemCursor(
              getCursorID()));
        }
      }
    }
  }
});
org.eclipse.swt.widgetsCompositesetCursor

Popular methods of Composite

  • setLayout
    Sets the layout which is associated with the receiver to be the argument which may be null.
  • <init>
    Constructs a new instance of this class given its parent and a style value describing its behavior a
  • setLayoutData
  • layout
    Forces a lay out (that is, sets the size and location) of all widgets that are in the parent hierarc
  • getDisplay
  • getChildren
    Returns a (possibly empty) array containing the receiver's children. Children are returned in the or
  • getShell
  • getFont
  • getLayout
    Returns layout which is associated with the receiver, or null if one has not been set.
  • setFont
  • getParent
  • computeSize
  • getParent,
  • computeSize,
  • dispose,
  • setBackground,
  • getClientArea,
  • isDisposed,
  • getBackground,
  • setVisible,
  • setSize,
  • setData

Popular in Java

  • Reading from database using SQL prepared statement
  • putExtra (Intent)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • scheduleAtFixedRate (ScheduledExecutorService)
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now