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

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

Best Java code snippets using org.eclipse.swt.widgets.Composite.getChildren (Showing top 20 results out of 756)

  • 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: pentaho/pentaho-kettle

private void clearPreviewComposite() {
 // First clear out the preview composite, then put in a text field showing the log text
 //
 //
 for ( Control control : previewComposite.getChildren() ) {
  control.dispose();
 }
}
origin: pentaho/pentaho-kettle

private void setCompositeEnabled( Composite comp, boolean enabled ) {
 // TODO: move to TableView?
 comp.setEnabled( enabled );
 for ( Control child : comp.getChildren() ) {
  child.setEnabled( enabled );
 }
}
origin: pentaho/pentaho-kettle

 @Override public void widgetSelected( SelectionEvent selectionEvent ) {
  for ( Control control : contentArea.getChildren() ) {
   control.setVisible( false );
  }
  content.setVisible( true );
 }
} );
origin: pentaho/pentaho-kettle

private void handleChilds( Composite composite ) {
 for ( Control el : composite.getChildren() ) {
  handleElement( el );
  if ( el instanceof Composite ) {
   handleChilds( (Composite) el );
  }
 }
}
origin: pentaho/pentaho-kettle

public void setLook( Control widget ) {
 setLook( widget, WIDGET_STYLE_DEFAULT );
 if ( widget instanceof Composite ) {
  for ( Control child : ( (Composite) widget ).getChildren() ) {
   setLook( child );
  }
 }
}
origin: pentaho/pentaho-kettle

/**
 * Gets the table views.
 *
 * @param parentControl the parent control
 * @param tableViews    the table views
 * @return the table views
 */
private static final void getTableViews( Control parentControl, List<TableView> tableViews ) {
 if ( parentControl instanceof TableView ) {
  tableViews.add( (TableView) parentControl );
 } else {
  if ( parentControl instanceof Composite ) {
   Control[] children = ( (Composite) parentControl ).getChildren();
   for ( Control child : children ) {
    getTableViews( child, tableViews );
   }
  } else {
   if ( parentControl instanceof Shell ) {
    Control[] children = ( (Shell) parentControl ).getChildren();
    for ( Control child : children ) {
     getTableViews( child, tableViews );
    }
   }
  }
 }
}
origin: pentaho/pentaho-kettle

/**
 * Grab the step debugging information from the dialog. Store it in our private map
 */
private void getStepDebugMeta() {
 int index = wSteps.getSelectionIndex();
 if ( previousIndex >= 0 ) {
  // Is there anything on the composite to save yet?
  //
  if ( wComposite.getChildren().length == 0 ) {
   return;
  }
  StepMeta stepMeta = transDebugMeta.getTransMeta().getStep( previousIndex );
  StepDebugMeta stepDebugMeta = new StepDebugMeta( stepMeta );
  stepDebugMeta.setCondition( condition );
  stepDebugMeta.setPausingOnBreakPoint( wPauseBreakPoint.getSelection() );
  stepDebugMeta.setReadingFirstRows( wFirstRows.getSelection() );
  stepDebugMeta.setRowCount( Const.toInt( wRowCount.getText(), -1 ) );
  stepDebugMetaMap.put( stepMeta, stepDebugMeta );
 }
 previousIndex = index;
}
origin: pentaho/pentaho-kettle

private void showLogTypeOptions( int index ) {
 if ( index != previousLogTableIndex ) {
  getLogInfo( previousLogTableIndex );
  // clean the log options composite...
  //
  for ( Control control : wLogOptionsComposite.getChildren() ) {
   control.dispose();
  }
  previousLogTableIndex = index;
  LogTableInterface logTable = logTables.get( index );
  LogTableUserInterface logTableUserInterface = logTableUserInterfaces.get( index );
  if ( logTableUserInterface != null ) {
   logTableUserInterface.showLogTableOptions( wLogOptionsComposite, logTable );
  } else {
   if ( logTable instanceof JobLogTable ) {
    showJobLogTableOptions( (JobLogTable) logTable );
   } else if ( logTable instanceof ChannelLogTable ) {
    showChannelLogTableOptions( (ChannelLogTable) logTable );
   }
   if ( logTable instanceof JobEntryLogTable ) {
    showJobEntryLogTableOptions( (JobEntryLogTable) logTable );
   }
  }
  wLogOptionsComposite.layout( true, true );
  wLogComp.layout( true, true );
 }
}
origin: pentaho/pentaho-kettle

for ( Control control : metricsComposite.getChildren() ) {
 if ( !control.isDisposed() ) {
  control.dispose();
origin: pentaho/pentaho-kettle

for ( Control control : wDataComp.getChildren() ) {
 control.dispose();
origin: pentaho/pentaho-kettle

for ( Control control : wComposite.getChildren() ) {
 control.dispose();
origin: pentaho/pentaho-kettle

for ( Control control : metricsComposite.getChildren() ) {
 if ( !control.isDisposed() ) {
  control.dispose();
origin: pentaho/pentaho-kettle

for ( Control control : wLogOptionsComposite.getChildren() ) {
 control.dispose();
origin: pentaho/pentaho-kettle

for ( Control control : perfComposite.getChildren() ) {
 if ( !control.isDisposed() ) {
  control.dispose();
origin: org.eclipse.platform/org.eclipse.jface.text

@Override
protected Point computeSize(Composite composite, int wHint, int hHint, boolean flushCache) {
  Control[] children= composite.getChildren();
  Point size= new Point(0, 0);
  for (Control element : children) {
    Point s= element.computeSize(SWT.DEFAULT, SWT.DEFAULT, flushCache);
    size.x += s.x;
    size.y= Math.max(size.y, s.y);
  }
  size.x += (Math.max(0, children.length -1) * fGap);
  return size;
}
origin: org.eclipse/org.eclipse.jdt.ui

private boolean isChildVisible(Composite pb, Control child) {
  Control[] children= pb.getChildren();
  for (int i= 0; i < children.length; i++) {
    if (children[i] == child && children[i].isVisible())
      return true;
  }
  return false;
}

origin: org.eclipse.platform/org.eclipse.jface.text

@Override
protected Point computeSize(Composite composite, int wHint, int hHint, boolean flushCache) {
  Control[] children= composite.getChildren();
  Point s= children[children.length - 1].computeSize(SWT.DEFAULT, SWT.DEFAULT, flushCache);
  if (fVerticalRuler != null && fIsVerticalRulerVisible)
    s.x += fVerticalRuler.getWidth() + fGap;
  return s;
}
origin: org.eclipse/org.eclipse.jdt.ui

  public void layout(Composite composite, boolean force) {
    Rectangle rect = composite.getClientArea();
    Control[] children = composite.getChildren();
    for (int i = 0; i < children.length; i++) {
      children[i].setSize(rect.width, rect.height);
    }
  }
}
origin: org.eclipse.jdt/org.eclipse.jdt.ui

protected void disposeDeferredCreatedContent() {
  Control[] children= fParent.getChildren();
  for (int i= 0; i < children.length; i++) {
    children[i].dispose();
  }
  ToolBarManager toolBarManager= getToolBarManager();
  if (toolBarManager != null)
    toolBarManager.removeAll();
}
origin: BiglySoftware/BiglyBT

private void clearPanel() {
 if ( panel.isDisposed()){
   return;
 }
 Control[] controls = panel.getChildren();
 for (int i = 0; i < controls.length; i++) {
  if (controls[i] != null && !controls[i].isDisposed())
   controls[i].dispose();
 }
 setTitle("");
 setCurrentInfo("");
}
org.eclipse.swt.widgetsCompositegetChildren

Javadoc

Returns a (possibly empty) array containing the receiver's children. Children are returned in the order that they are drawn. The topmost control appears at the beginning of the array. Subsequent controls draw beneath this control and appear later in the array.

Note: This is not the actual structure used by the receiver to maintain its list of children, so modifying the array will not affect the receiver.

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
  • getShell
  • getFont
  • getLayout
    Returns layout which is associated with the receiver, or null if one has not been set.
  • setFont
  • getParent
  • computeSize
  • dispose
  • 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