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

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

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

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

@Override
boolean hasFocus () {
  if (hasChildFocus) return true;
  return super.hasFocus();
}

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

@Override
boolean hasFocus () {
  if (hasChildFocus) return true;
  return super.hasFocus();
}

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

@Override
boolean hasFocus () {
  if (hasChildFocus) return true;
  return super.hasFocus();
}

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

@Override
boolean hasFocus () {
  for (int i=0; i<itemCount; i++) {
    ExpandItem item = items [i];
    if (item.hasFocus ()) return true;
  }
  return super.hasFocus();
}

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

@Override
boolean hasFocus () {
  for (int i=0; i<itemCount; i++) {
    ExpandItem item = items [i];
    if (item.hasFocus ()) return true;
  }
  return super.hasFocus();
}

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

@Override
boolean hasFocus () {
  if (super.hasFocus ()) return true;
  if (entryHandle != 0 && OS.gtk_widget_has_focus (entryHandle)) return true;
  return false;
}

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

@Override
boolean hasFocus () {
  if (super.hasFocus ()) return true;
  if (entryHandle != 0 && OS.gtk_widget_has_focus (entryHandle)) return true;
  return false;
}

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

@Override
boolean hasFocus () {
  if (super.hasFocus ()) return true;
  if (entryHandle != 0 && OS.gtk_widget_has_focus (entryHandle)) return true;
  return false;
}

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

@Override
boolean hasFocus () {
  for (int i=0; i<itemCount; i++) {
    ExpandItem item = items [i];
    if (item.hasFocus ()) return true;
  }
  return super.hasFocus();
}

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

void keyDown (long /*int*/ id, long /*int*/ sel, long /*int*/ theEvent) {
  if (hasFocus()) {
    if ((state & CANVAS) != 0) {
      Shell s = this.getShell();
      s.deferFlushing();
      NSArray array = NSArray.arrayWithObject (new NSEvent (theEvent));
      s.keyInputHappened = false;
      view.interpretKeyEvents (array);
      if (imeInComposition ()) return;
      if (!s.keyInputHappened) {
        NSEvent nsEvent = new NSEvent (theEvent);
        boolean [] consume = new boolean [1];
        if (translateTraversal (nsEvent.keyCode (), nsEvent, consume)) return;
        if (isDisposed ()) return;
        if (!sendKeyEvent (nsEvent, SWT.KeyDown)) return;
        if (consume [0]) return;
      }
      return;
    }
  }
  super.keyDown (id, sel, theEvent);
}

org.eclipse.swt.widgetsCompositehasFocus

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

  • Making http post requests using okhttp
  • onRequestPermissionsResult (Fragment)
  • putExtra (Intent)
  • notifyDataSetChanged (ArrayAdapter)
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • Github Copilot alternatives
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