congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
Composite.setTabItemFocus
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

@Override
boolean setTabItemFocus () {
  int index = 0;
  while (index < items.length) {
    ToolItem item = items [index];
    if (item != null && (item.style & SWT.SEPARATOR) == 0) {
      if (item.getEnabled ()) break;
    }
    index++;
  }
  if (index == items.length) return false;
  return super.setTabItemFocus ();
}

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

boolean setTabGroupFocus () {
  if (isTabItem ()) return setTabItemFocus ();
  boolean takeFocus = (style & SWT.NO_FOCUS) == 0;
  if ((state & CANVAS) != 0) takeFocus = hooksKeys ();
  if (takeFocus && setTabItemFocus ()) return true;
  Control [] children = _getChildren ();
  for (int i=0; i<children.length; i++) {
    Control child = children [i];
    if (child.isTabItem () && child.setTabItemFocus ()) return true;
  }
  return false;
}

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

@Override
boolean setTabGroupFocus (boolean next) {
  if (isTabItem ()) return setTabItemFocus (next);
  boolean takeFocus = (style & SWT.NO_FOCUS) == 0;
  if ((state & CANVAS) != 0) takeFocus = hooksKeys ();
  if (socketHandle != 0) takeFocus = true;
  if (takeFocus  && setTabItemFocus (next)) return true;
  Control [] children = _getChildren ();
  for (int i=0; i<children.length; i++) {
    Control child = children [i];
    if (child.isTabItem () && child.setTabItemFocus (next)) return true;
  }
  return false;
}

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

@Override
boolean setTabGroupFocus (boolean next) {
  if (isTabItem ()) return setTabItemFocus (next);
  boolean takeFocus = (style & SWT.NO_FOCUS) == 0;
  if ((state & CANVAS) != 0) takeFocus = hooksKeys ();
  if (socketHandle != 0) takeFocus = true;
  if (takeFocus  && setTabItemFocus (next)) return true;
  Control [] children = _getChildren ();
  for (int i=0; i<children.length; i++) {
    Control child = children [i];
    if (child.isTabItem () && child.setTabItemFocus (next)) return true;
  }
  return false;
}

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

@Override
boolean setTabGroupFocus (boolean next) {
  if (isTabItem ()) return setTabItemFocus (next);
  boolean takeFocus = (style & SWT.NO_FOCUS) == 0;
  if ((state & CANVAS) != 0) takeFocus = hooksKeys ();
  if (socketHandle != 0) takeFocus = true;
  if (takeFocus  && setTabItemFocus (next)) return true;
  Control [] children = _getChildren ();
  for (int i=0; i<children.length; i++) {
    Control child = children [i];
    if (child.isTabItem () && child.setTabItemFocus (next)) return true;
  }
  return false;
}

origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

@Override
boolean setTabGroupFocus () {
  if (isTabItem ()) return setTabItemFocus ();
  boolean takeFocus = (style & SWT.NO_FOCUS) == 0;
  if ((state & CANVAS) != 0) {
    takeFocus = hooksKeys ();
    if ((style & SWT.EMBEDDED) != 0) takeFocus = true;
  }
  if (takeFocus && setTabItemFocus ()) return true;
  Control [] children = _getChildren ();
  for (int i=0; i<children.length; i++) {
    Control child = children [i];
    if (child.isTabItem () && child.setRadioFocus (true)) return true;
  }
  for (int i=0; i<children.length; i++) {
    Control child = children [i];
    if (child.isTabItem () && !child.isTabGroup () && child.setTabItemFocus ()) {
      return true;
    }
  }
  return false;
}

org.eclipse.swt.widgetsCompositesetTabItemFocus

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 requests using okhttp
  • scheduleAtFixedRate (Timer)
  • notifyDataSetChanged (ArrayAdapter)
  • runOnUiThread (Activity)
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • JPanel (javax.swing)
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • 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