Codota Logo
Composite.setFocus
Code IndexAdd Codota to your IDE (free)

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

Best Java code snippets using org.eclipse.swt.widgets.Composite.setFocus (Showing top 20 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.neoscada.chart/org.eclipse.scada.chart.swt

@Override
public void setFocus ()
{
  this.control.setFocus ();
}
origin: org.eclipse.platform/org.eclipse.search

@Override
public void setFocus() {
  if (fControl != null)
    fControl.setFocus();
}
origin: org.apache.uima/uimaj-ep-cas-editor

/**
 * Sets the focus.
 */
@Override
public void setFocus() {
 mOutlineComposite.setFocus();
}
origin: org.eclipse.platform/org.eclipse.team.ui

@Override
public void setFocus() {
  pgComp.setFocus();
}
origin: org.eclipse.platform/org.eclipse.team.ui

@Override
public void setFocus() {
  localComposite.setFocus();
}
origin: BiglySoftware/BiglyBT

@Override
public void
setFocus()
{
  browser.setFocus();
}
origin: org.apache.uima/textmarker-ep-caseditor

@Override
public void setFocus() {
 overlay.setFocus();
}
origin: org.eclipse.platform/org.eclipse.swt.examples

/**
 * Grabs input focus.
 */
public void setFocus() {
  mainComposite.setFocus();
}
origin: org.eclipse.platform/org.eclipse.ui.workbench

/**
 * Sets focus to a part in the page.
 */
@Override
public void setFocus() {
  // important to give focus to the composite rather than the label
  // as the composite will actually take focus (though hidden),
  // but setFocus on a Label is a no-op
  pgComp.setFocus();
}
origin: de.dentrassi.eclipse.neoscada.chart/org.eclipse.scada.chart.swt

@Override
public void setFocus ()
{
  this.control.setFocus ();
}
origin: org.eclipse.jdt/org.eclipse.jdt.ui

public void setFocus(boolean enabled) {
  if (enabled == fHasFocus)
    return;
  fHasFocus= enabled;
  if (fHasFocus) {
    if (isTextVisible()) {
      fTextComposite.setFocus();
    } else {
      fImageComposite.setFocus();
    }
  }
}
origin: inspectIT/inspectIT

/**
 * {@inheritDoc}
 * <p>
 * Manually set focus to form body, otherwise is the tool-bar in focus.
 */
@Override
public void setFocus() {
  mainForm.getBody().setFocus();
}
origin: BiglySoftware/BiglyBT

  @Override
  public void runSupport() {
    if (isDisposed()) {
      return;
    }
    cTable.setFocus();
  }
});
origin: org.eclipse.pde/org.eclipse.pde.ui

@Override
public void setFocus() {
  scrolledComposite.getParent().setFocus();
}
origin: org.eclipse.platform/org.eclipse.swt.examples

/**
 * Grabs input focus
 */
public void focus() {
  if (locationBar != null) locationBar.setFocus();
  else if (browser != null) browser.setFocus();
  else parent.setFocus();
}
origin: openaudible/openaudible

/**
 * Grabs input focus
 */
public void focus() {
  if (locationBar != null)
    locationBar.setFocus();
  else if (browser != null)
    browser.setFocus();
  else
    parent.setFocus();
}

origin: org.eclipse.platform/org.eclipse.ui.workbench

/**
 * Set focus on the current selection.
 *
 */
public void setFocus() {
  Control[] children = control.getChildren();
  if (children.length > 0) {
    ((ProgressInfoItem)children[0]).setButtonFocus();
  } else {
    noEntryArea.setFocus();
  }
}
origin: inspectIT/inspectIT

/**
 * {@inheritDoc}
 * <p>
 * Manually set focus to form body, otherwise is the tool-bar in focus.
 */
@Override
public void setFocus() {
  getManagedForm().getForm().getBody().setFocus();
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

@Override
LRESULT WM_LBUTTONDOWN (int /*long*/ wParam, int /*long*/ lParam) {
  LRESULT result = super.WM_LBUTTONDOWN (wParam, lParam);
  if (result == LRESULT.ZERO) return result;

  /* Set focus for a canvas with no children */
  if ((state & CANVAS) != 0) {
    if ((style & SWT.NO_FOCUS) == 0 && hooksKeys ()) {
      if (OS.GetWindow (handle, OS.GW_CHILD) == 0) setFocus ();
    }
  }
  return result;
}

origin: BiglySoftware/BiglyBT

public void viewActivated() {
  SelectedContentManager.clearCurrentlySelectedContent();
  if (viewWhenDeactivated != null) {
    viewWhenDeactivated.getComposite().setFocus();
    viewWhenDeactivated.updateSelectedContent(true);
  } else {
    MyTorrentsView currentView = getCurrentView();
    if (currentView != null ) {
      currentView.updateSelectedContent();
    }
  }
}
org.eclipse.swt.widgetsCompositesetFocus

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

  • Updating database using SQL prepared statement
  • getResourceAsStream (ClassLoader)
  • findViewById (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • BufferedReader (java.io)
    Reads text from a character-input stream, buffering characters so as to provide for the efficient re
  • PrintWriter (java.io)
    Prints formatted representations of objects to a text-output stream. This class implements all of th
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
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