Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.Composite.layout()


          else
          {
            warningLabel.setText("Value does not respect the constrains");
          }
         
          c.layout();
        }
        catch (NumberFormatException ex) {
          warningLabel.setText("Input value is not a real number");
          c.layout();
        }
View Full Code Here


         
          c.layout();
        }
        catch (NumberFormatException ex) {
          warningLabel.setText("Input value is not a real number");
          c.layout();
        }
      }

     
    });
View Full Code Here

                {
                    int count = Integer.parseInt(addMoreButton.getData("rowCount").toString());
                    createARowForCreatingHeadersBinding(composite, ++count);
                    addMoreButton.setData("rowCount", count);
                    scrolledComposite.setMinSize(composite.computeSize(SWT.DEFAULT, SWT.DEFAULT));
                    composite.layout();
                    _form.layout();
                }
            });
         
        scrolledComposite.setMinSize(composite.computeSize(SWT.DEFAULT, SWT.DEFAULT));
View Full Code Here

                    _form.layout();
                }
            });
         
        scrolledComposite.setMinSize(composite.computeSize(SWT.DEFAULT, SWT.DEFAULT));
        composite.layout();
    }
   
    /**
     * Adds a row for adding a binding for Headers Exchange. Used by the method, which creates the customized
     * layout and widgest for Header's exchange method createNewBinding.
View Full Code Here

      debugTimer.schedule(new MyDebugRepaintTask(this), curDelay, curDelay);

      ContainerWrapper pCW = parentW.getParent();
      Composite parent = pCW != null ? (Composite) pCW.getComponent() : null;
      if (parent != null)
        parent.layout();

    } else if (!b && debugTimer != null) {
      debugTimer.cancel();
      debugTimer = null;
    }
View Full Code Here

    hiddenControl(getBorder(IContainer.BORDER_E), isHidden);
    hiddenControl(getBorder(IContainer.BORDER_SW), isHidden);
    hiddenControl(getBorder(IContainer.BORDER_S), isHidden);
    hiddenControl(getBorder(IContainer.BORDER_SE), isHidden);
    hiddenControl(getBorder(IContainer.BORDER_S).getParent(), isHidden);
    composite.layout();
  }

  private void hiddenControl(Control control, boolean isHidden)
  {
    GridData gd = (GridData) control.getLayoutData();
View Full Code Here

    super.layout();
    if(!visible) return;
    Control [] control = selectedGroup.getComposite().getChildren();
    if(control.length < 1) return;
    Composite comp = (Composite)control[0];
    comp.layout();   
    showIcons();
 
 

  private void showIcons() {
View Full Code Here

    if (fCachedTextViewer instanceof ITextViewerExtension) {
      ITextViewerExtension extension= (ITextViewerExtension) fCachedTextViewer;
      Control control= extension.getControl();
      if (control instanceof Composite && !control.isDisposed()) {
        Composite composite= (Composite) control;
        composite.layout(true);
      }
    }
  }

  /**
 
View Full Code Here

                {
                    int count = Integer.parseInt(addMoreButton.getData("rowCount").toString());
                    createARowForCreatingHeadersBinding(composite, ++count);
                    addMoreButton.setData("rowCount", count);
                    scrolledComposite.setMinSize(composite.computeSize(SWT.DEFAULT, SWT.DEFAULT));
                    composite.layout();
                    _form.layout();
                }
            });
         
        scrolledComposite.setMinSize(composite.computeSize(SWT.DEFAULT, SWT.DEFAULT));
View Full Code Here

                    _form.layout();
                }
            });
         
        scrolledComposite.setMinSize(composite.computeSize(SWT.DEFAULT, SWT.DEFAULT));
        composite.layout();
    }
   
    /**
     * Adds a row for adding a binding for Headers Exchange. Used by the method, which creates the customized
     * layout and widgest for Header's exchange method createNewBinding.
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.