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

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

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

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

@Override
boolean forceFocus (int /*long*/ focusHandle) {
  int dir = OS.GTK_DIR_TAB_FORWARD;
  if ((style & SWT.MIRRORED) != 0) dir = OS.GTK_DIR_TAB_BACKWARD;
  int /*long*/ childHandle = handle;
  if (currentFocusItem != null)  childHandle = currentFocusItem.handle;
  /*
   * Feature in GTK. GtkToolBar takes care of navigating through
   * items by Up/Down arrow keys.
   */
  if (OS.gtk_widget_child_focus (childHandle, dir)) return true;
  return super.forceFocus (focusHandle);
}

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

@Override
boolean forceFocus (long /*int*/ focusHandle) {
  int dir = OS.GTK_DIR_TAB_FORWARD;
  if ((style & SWT.MIRRORED) != 0) dir = OS.GTK_DIR_TAB_BACKWARD;
  long /*int*/ childHandle = handle;
  if (currentFocusItem != null)  childHandle = currentFocusItem.handle;
  /*
   * Feature in GTK. GtkToolBar takes care of navigating through
   * items by Up/Down arrow keys.
   */
  if (OS.gtk_widget_child_focus (childHandle, dir)) return true;
  return super.forceFocus (focusHandle);
}

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

@Override
boolean forceFocus (int /*long*/ focusHandle) {
  int dir = OS.GTK_DIR_TAB_FORWARD;
  if ((style & SWT.MIRRORED) != 0) dir = OS.GTK_DIR_TAB_BACKWARD;
  int /*long*/ childHandle = handle;
  if (currentFocusItem != null)  childHandle = currentFocusItem.handle;
  /*
   * Feature in GTK. GtkToolBar takes care of navigating through
   * items by Up/Down arrow keys.
   */
  if (OS.gtk_widget_child_focus (childHandle, dir)) return true;
  return super.forceFocus (focusHandle);
}

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

@Override
boolean forceFocus (int /*long*/ focusHandle) {
  if (lastFocus != null && lastFocus.setFocus ()) return true;
  for (int i = 0; i < itemCount; i++) {
    ExpandItem item = items [i];
    if (item.setFocus ()) return true;
  }
  return super.forceFocus (focusHandle);
}

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

@Override
boolean forceFocus (long /*int*/ focusHandle) {
  if (lastFocus != null && lastFocus.setFocus ()) return true;
  for (int i = 0; i < itemCount; i++) {
    ExpandItem item = items [i];
    if (item.setFocus ()) return true;
  }
  return super.forceFocus (focusHandle);
}

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

@Override
boolean forceFocus (int /*long*/ focusHandle) {
  if (lastFocus != null && lastFocus.setFocus ()) return true;
  for (int i = 0; i < itemCount; i++) {
    ExpandItem item = items [i];
    if (item.setFocus ()) return true;
  }
  return super.forceFocus (focusHandle);
}

origin: org.eclipse.pde/org.eclipse.pde.ui

/**
 * Creates the page control by creating individual options in the order
 * subject to their position in the list.'
 *
 * @param composite
 */
@Override
public void createControl(Composite composite) {
  Composite container = new Composite(composite, SWT.NULL);
  GridLayout layout = new GridLayout();
  layout.numColumns = 2;
  layout.verticalSpacing = 9;
  container.setLayout(layout);
  for (int i = 0; i < options.size(); i++) {
    TemplateOption option = (TemplateOption) options.get(i);
    option.createControl(container, 2);
  }
  if (helpContextId != null)
    PlatformUI.getWorkbench().getHelpSystem().setHelp(container, helpContextId);
  setControl(container);
  Dialog.applyDialogFont(container);
  container.forceFocus();
}
org.eclipse.swt.widgetsCompositeforceFocus

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

  • Reactive rest calls using spring rest template
  • onRequestPermissionsResult (Fragment)
  • compareTo (BigDecimal)
  • getSystemService (Context)
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • JTextField (javax.swing)
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Option (scala)
  • Top plugins for Android Studio
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