Codota Logo
Composite.forceFocus
Code IndexAdd Codota 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)

  • Common ways to obtain Composite
private void myMethod () {
Composite c =
  • Codota IconControl control;control.getParent()
  • Codota IconStatusDialog zuper;(Composite) zuper.createDialogArea(parent)
  • Codota IconTitleAreaDialog zuper;(Composite) zuper.createDialogArea(parent)
  • Smart code suggestions by Codota
}
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

  • Finding current android device location
  • addToBackStack (FragmentTransaction)
  • setContentView (Activity)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • BigInteger (java.math)
    Immutable arbitrary-precision integers. All operations behave as if BigIntegers were represented in
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now