Package org.eclipse.swt.layout

Examples of org.eclipse.swt.layout.GridLayout


    Composite cSection = new Composite(parent, SWT.NULL);

    gridData = new GridData(GridData.VERTICAL_ALIGN_FILL | GridData.HORIZONTAL_ALIGN_FILL);
    cSection.setLayoutData(gridData);
    GridLayout advanced_layout = new GridLayout();
    advanced_layout.numColumns = 2;
    cSection.setLayout(advanced_layout);

    int userMode = COConfigurationManager.getIntParameter("User Mode");
    if (userMode < REQUIRED_MODE) {
View Full Code Here


    }

    final Shell shell = ShellFactory.createShell(parent, SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL);
    Messages.setLanguageText(shell,"ConfigView.section.ipfilter.editFilter");
    Utils.setShellIcon(shell);
    GridLayout layout = new GridLayout();
    layout.numColumns = 2;
    shell.setLayout(layout);

    Label label = new Label(shell, SWT.NULL);
    Messages.setLanguageText(label, "ConfigView.section.ipfilter.description");
View Full Code Here

  private void createWindow() {
    this.display = Display.getCurrent();
    this.shell = org.gudy.azureus2.ui.swt.components.shell.ShellFactory.createShell(SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL);
    Messages.setLanguageText(this.shell,"wizard.webseedseditor.edit.title");
    Utils.setShellIcon(shell);
    GridLayout layout = new GridLayout();
    layout.numColumns = 3;
    shell.setLayout(layout);
   
    GridData gridData;
   
    if ( !anonymous ){
     
      Label labelName = new Label(shell,SWT.NULL);
      Messages.setLanguageText(labelName,"wizard.multitracker.edit.name");
     
      textName = new Text(shell,SWT.BORDER);
      textName.setText(currentName);
      gridData = new GridData(GridData.FILL_HORIZONTAL);
      gridData.horizontalSpan = 2;
      textName.setLayoutData(gridData);
      textName.addModifyListener(new ModifyListener() {
        public void modifyText(ModifyEvent arg0) {
          currentName = textName.getText();
          computeSaveEnable();
        }
      });  
    }
       
    treeGroups = new Tree(shell,SWT.BORDER);
    gridData = new GridData(GridData.FILL_BOTH);
    gridData.horizontalSpan = 3;
    gridData.heightHint = 150;
    treeGroups.setLayoutData(gridData);
   
    treeGroups.addMouseListener(
        new MouseAdapter()
        {
          public void
          mouseDoubleClick(
            MouseEvent arg0 )
          {
            if(treeGroups.getSelectionCount() == 1) {
              TreeItem treeItem = treeGroups.getSelection()[0];
              String type = (String) treeItem.getData("type");
              if(type.equals("tracker")) {
                editTreeItem(treeItem);
              }
            }
          }
        });
       
    Label labelSeparator = new Label(shell,SWT.SEPARATOR | SWT.HORIZONTAL);
    gridData = new GridData(GridData.FILL_HORIZONTAL);
    gridData.horizontalSpan = 3;
    labelSeparator.setLayoutData(gridData);
   
      // button row
   
    Label label = new Label(shell,SWT.NULL);
    gridData = new GridData(GridData.FILL_HORIZONTAL );
    label.setLayoutData(gridData);
   
    Composite cButtons = new Composite(shell, SWT.NULL);
    gridData = new GridData(GridData.FILL_HORIZONTAL);
    gridData.horizontalSpan = 3;
    cButtons.setLayoutData(gridData);
    GridLayout layoutButtons = new GridLayout();
    layoutButtons.numColumns = 3;
    cButtons.setLayout(layoutButtons);
    label = new Label(cButtons,SWT.NULL);
    gridData = new GridData(GridData.FILL_HORIZONTAL );
    label.setLayoutData(gridData);
View Full Code Here

  public TwistieLabel(Composite parent, int style) {
    super(parent, SWT.NONE);
    setBackgroundMode(SWT.INHERIT_FORCE);
    this.style = style;

    GridLayout gLayout = new GridLayout();
    gLayout.marginHeight = 0;
    gLayout.marginWidth = 0;
    gLayout.verticalSpacing = 0;
    gLayout.horizontalSpacing = 0;
    setLayout(gLayout);
View Full Code Here

  }


  public Composite configSectionCreate(final Composite parent) {
    Label label;
    GridLayout layout;
    GridData gridData;
    Composite cSection = new Composite(parent, SWT.NULL);
    cSection.setLayoutData(new GridData(GridData.FILL_BOTH));
    layout = new GridLayout();
    layout.numColumns = 1;
    cSection.setLayout(layout);

    Composite cArea = new Composite(cSection, SWT.NULL);
    layout = new GridLayout();
    layout.marginHeight = 0;
    layout.marginWidth = 0;
    layout.numColumns = 2;
    cArea.setLayout(layout);
    cArea.setLayoutData(new GridData());

    label = new Label(cArea, SWT.NULL);
    Messages.setLanguageText(label, "ConfigView.section.color");
    ColorParameter colorScheme = new ColorParameter(cArea, "Color Scheme", 0,
        128, 255);
    gridData = new GridData();
    gridData.widthHint = 50;
    colorScheme.setLayoutData(gridData);

    Group cColorOverride = new Group(cArea, SWT.NULL);
    Messages.setLanguageText(cColorOverride,
        "ConfigView.section.style.colorOverrides");
    layout = new GridLayout();
    layout.numColumns = 3;
    cColorOverride.setLayout(layout);
    gridData = new GridData(GridData.HORIZONTAL_ALIGN_FILL);
    gridData.horizontalSpan = 2;
    cColorOverride.setLayoutData(gridData);
View Full Code Here

  private void createShell(Shell parentShell) {
     
    shell = ShellFactory.createShell(display,SWT.APPLICATION_MODAL | SWT.BORDER | SWT.TITLE | SWT.CLOSE);
    Utils.setShellIcon(shell);
   
    GridLayout layout = new GridLayout();   
    layout.numColumns = 2;
    shell.setLayout(layout);
    GridData data;
   
    label = new Label(shell,SWT.WRAP);
View Full Code Here

    shell = ShellFactory.createMainShell(shellStyle);
    shell.setText(MessageText.getString("progress.window.title"));

    Utils.setShellIcon(shell);

    GridLayout gLayout = new GridLayout();
    gLayout.marginHeight = 0;
    gLayout.marginWidth = 0;
    shell.setLayout(gLayout);

    /*
     * Using ScrolledComposite with only vertical scroll
     */
    scrollable = new ScrolledComposite(shell, SWT.V_SCROLL);
    scrollable.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));

    /*
     * Main content composite where panels will be created
     */
    scrollChild = new Composite(scrollable, SWT.NONE);

    GridLayout gLayoutChild = new GridLayout();
    gLayoutChild.marginHeight = 0;
    gLayoutChild.marginWidth = 0;
    gLayoutChild.verticalSpacing = 0;
    scrollChild.setLayout(gLayoutChild);
    scrollable.setContent(scrollChild);
View Full Code Here

   * Creates a the toolbar at the bottom of the window
   */
  private void createToolbar() {
    Composite toolbarPanel = new Composite(shell, SWT.NONE);
    toolbarPanel.setLayoutData(new GridData(SWT.FILL, SWT.FILL, false, false));
    GridLayout gLayout = new GridLayout(3, false);
    gLayout.marginWidth = 25;
    gLayout.marginTop = 0;
    gLayout.marginBottom = 0;
    toolbarPanel.setLayout(gLayout);

View Full Code Here

  private void createEmptyPanel() {
    Composite emptyPanel = new Composite(scrollChild, SWT.BORDER);
    GridData gData = new GridData(SWT.FILL, SWT.FILL, true, true);
    gData.heightHint = 100;
    emptyPanel.setLayoutData(gData);
    emptyPanel.setLayout(new GridLayout());
    Label nothingToDisplay = new Label(emptyPanel, SWT.NONE);
    nothingToDisplay.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
    nothingToDisplay.setText(MessageText.getString("Progress.reporting.no.reports.to.display"));

    /*
 
View Full Code Here

    shell.setText( MessageText.getString( "props.window.title", new String[]{ object_name }));
   
    Utils.setShellIcon(shell);
   
      GridLayout layout = new GridLayout();
      layout.numColumns = 3;
      shell.setLayout(layout);

      final ScrolledComposite scrollable = new ScrolledComposite(shell, SWT.V_SCROLL | SWT.H_SCROLL );
      GridData gridData = new GridData(SWT.FILL, SWT.FILL, true, true);
      gridData.horizontalSpan = 3;
     
    scrollable.setLayoutData( gridData );

    /*
     * Main content composite where panels will be created
     */
    final Composite main = new Composite(scrollable, SWT.NONE);

    layout = new GridLayout();
    layout.marginHeight = 0;
    layout.marginWidth = 0;
    //layout.verticalSpacing = 0;
    layout.numColumns = 2;
    main.setLayout(layout);
View Full Code Here

TOP

Related Classes of org.eclipse.swt.layout.GridLayout

Copyright © 2018 www.massapicom. 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.