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

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

Best Java code snippets using org.eclipse.swt.widgets.Composite.getTabList (Showing top 12 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.codehaus.openxma/xmartserver

  /**
   * Returns that control given in the parameters which is found first in
   * the tab order of the given composite or one of its subcomposits.
   * @param comp the composite where to search for the controls
   * @param c1, c2 the controls to deside which comes first in tab order
   * @return the control of the parameters which is found first in the tab order
   *      or null if none of them is found.
   */
  private Widget firstTab(Composite comp,Widget c1, Widget c2) {
    Control[] conts = comp.getTabList();
    for(int i=0;i<conts.length;i++) {
      if(conts[i] instanceof Composite) {
        Widget first = firstTab((Composite)conts[i],c1,c2);
        if(first!=null) return first;
      }
      if(c1==conts[i]) return c1;
      if(c2==conts[i]) return c2;
    }
    return null;
  }
}
origin: org.codehaus.openxma/xmartclient

  /**
   * Returns that control given in the parameters which is found first in
   * the tab order of the given composite or one of its subcomposits.
   * @param comp the composite where to search for the controls
   * @param c1, c2 the controls to deside which comes first in tab order
   * @return the control of the parameters which is found first in the tab order
   *      or null if none of them is found.
   */
  private Widget firstTab(Composite comp,Widget c1, Widget c2) {
    Control[] conts = comp.getTabList();
    for(int i=0;i<conts.length;i++) {
      if(conts[i] instanceof Composite) {
        Widget first = firstTab((Composite)conts[i],c1,c2);
        if(first!=null) return first;
      }
      if(c1==conts[i]) return c1;
      if(c2==conts[i]) return c2;
    }
    return null;
  }
}
origin: org.eclipse.rap/org.eclipse.rap.rwt

private static int computeTabIndices( Composite composite, int startIndex ) {
 int result = startIndex;
 for( Control control : composite.getTabList() ) {
  getControlAdapter( control ).setTabIndex( result );
  // for Links, leave a range out to be assigned to hrefs on the client
  result += control instanceof Link ? 300 : 1;
  if( control instanceof Composite ) {
   result = computeTabIndices( ( Composite )control, result );
  }
 }
 return result;
}
origin: org.eclipse.platform/org.eclipse.ui.forms

private boolean setFocus(Control c, boolean direction) {
  if (c instanceof Composite) {
    Composite comp = (Composite)c;
    Control [] tabList = comp.getTabList();
    if (direction) {
      for (Control element : tabList) {
        if (setFocus(element, direction))
          return true;
      }
    }
    else {
      for (int i=tabList.length-1; i>=0; i--) {
        if (setFocus(tabList[i], direction))
          return true;
      }
    }
    if (!(c instanceof Canvas))
      return false;
  }
  return c.setFocus();
}
origin: org.eclipse.rap/org.eclipse.rap.rwt.q07

/**
 * Recursively computes the tab indices for all child controls of a given
 * composite and stores the resulting values in the control adapters.
 */
private static int computeTabIndices( Composite composite, int startIndex ) {
 Control[] tabList = composite.getTabList();
 int result = startIndex;
 for( int i = 0; i < tabList.length; i++ ) {
  Control control = tabList[ i ];
  IControlAdapter controlAdapter = ControlUtil.getControlAdapter( control );
  controlAdapter.setTabIndex( result );
  // for Links, leave a range out to be assigned to hrefs on the client
  if( control instanceof Link ) {
   result += 300;
  } else {
   result += 1;
  }
  if( control instanceof Composite ) {
   result = computeTabIndices( ( Composite )control, result );
  }
 }
 return result;
}
origin: org.eclipse.platform/org.eclipse.ui.forms

private boolean setFocusToNextSibling(Control c, boolean next) {
  Composite parent = c.getParent();
  Control[] children = parent.getTabList();
  for (int i = 0; i < children.length; i++) {
    Control child = children[i];
    if (child == c) {
      // here
      if (next) {
        for (int j = i + 1; j < children.length; j++) {
          Control nc = children[j];
          if (nc.setFocus())
            return false;
        }
      } else {
        for (int j = i - 1; j >= 0; j--) {
          Control pc = children[j];
          if (pc.setFocus())
            return false;
        }
      }
    }
  }
  return false;
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.ui.forms

private boolean setFocus(Control c, boolean direction) {
  if (c instanceof Composite) {
    Composite comp = (Composite)c;
    Control [] tabList = comp.getTabList();
    if (direction) {
      for (Control element : tabList) {
        if (setFocus(element, direction))
          return true;
      }
    }
    else {
      for (int i=tabList.length-1; i>=0; i--) {
        if (setFocus(tabList[i], direction))
          return true;
      }
    }
    if (!(c instanceof Canvas))
      return false;
  }
  return c.setFocus();
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.ui.forms

private boolean setFocusToNextSibling(Control c, boolean next) {
  Composite parent = c.getParent();
  Control[] children = parent.getTabList();
  for (int i = 0; i < children.length; i++) {
    Control child = children[i];
    if (child == c) {
      // here
      if (next) {
        for (int j = i + 1; j < children.length; j++) {
          Control nc = children[j];
          if (nc.setFocus())
            return false;
        }
      } else {
        for (int j = i - 1; j >= 0; j--) {
          Control pc = children[j];
          if (pc.setFocus())
            return false;
        }
      }
    }
  }
  return false;
}
origin: stackoverflow.com

Control[] tabList = content.getTabList();
origin: org.codehaus.openxma/xmartclient

Control control;
Control[] tabList = parent.getTabList();
Control lastControl = null;
if(tabList.length>0) {
origin: org.eclipse.platform/org.eclipse.ui.workbench

final Control[] tabStops = dataArea.getTabList();
final ArrayList<Control> newTabStops = new ArrayList<>();
for (Control tabStop : tabStops) {
origin: org.codehaus.openxma/xmartclient

setFocusToFirstControl(actPageInfo.page.getComposite().getTabList());
org.eclipse.swt.widgetsCompositegetTabList

Javadoc

Gets the (possibly empty) tabbing order for the control.

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

  • Reading from database using SQL prepared statement
  • getExternalFilesDir (Context)
  • requestLocationUpdates (LocationManager)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • FileInputStream (java.io)
    A FileInputStream obtains input bytes from a file in a file system. What files are available depends
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • JTextField (javax.swing)
  • Option (scala)
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