Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.List


        label1.setLayoutData(gridData1); // Generated
        label51 = new Label(group, SWT.NONE);
        label51.setLayoutData(new GridData(GridData.BEGINNING, GridData.BEGINNING, false, false));
        label51.setVisible(false); // Generated
        label51.setText("Parameter:"); // Generated
        fileList = new List(group, SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL);
        fileList.setLayoutData(gridData2); // Generated
        fileList.addSelectionListener(new org.eclipse.swt.events.SelectionAdapter() {
            public void widgetSelected(org.eclipse.swt.events.SelectionEvent e) {
                boolean selection = fileList.getSelectionIndex() >= 0;
                if (selection)
View Full Code Here


    recentWorkspacesGroup.setText(IDEWorkbenchMessages.RecentWorkspacesPreferencePage_RecentWorkspacesList_label);
    final GridLayout gridLayout_1 = new GridLayout();
    gridLayout_1.numColumns = 2;
    recentWorkspacesGroup.setLayout(gridLayout_1);
   
    workspacesList = new List(recentWorkspacesGroup, SWT.BORDER | SWT.MULTI);
    final GridData gd_workspacesList = new GridData(SWT.FILL, SWT.FILL, true, true);
    workspacesList.setLayoutData(gd_workspacesList);
   
    removeButton = new Button(recentWorkspacesGroup, SWT.NONE);
    final GridData gd_removeButton = new GridData(SWT.CENTER, SWT.TOP, false, false);
View Full Code Here

        lbDevice = new Label(preference, SWT.READ_ONLY);
        lbDevice.setText("Device: ");
        RowData rowd = new RowData();
        rowd.height = 45;
        rowd.width = 130;
        device = new List(preference, SWT.SINGLE | SWT.V_SCROLL);
        device.setLayoutData(rowd);
        visualizing = new List(preference, SWT.SINGLE);
        visualizing.setItems(new String[] {"Read", "Write"});
        visualizing.setSelection(0);
        lastVis = "Read";
        Label lbmin = new Label(preference,SWT.NONE);
        lbmin.setText("Min Blockno.");
View Full Code Here

        lbDevice = new Label(preference, SWT.READ_ONLY);
        lbDevice.setText("Device: ");
        RowData rowd = new RowData();
        rowd.height = 45;
        rowd.width = 130;
        device = new List(preference, SWT.READ_ONLY | SWT.V_SCROLL);
        device.setLayoutData(rowd);
        lbType = new Label(preference, SWT.SHADOW_IN);
        lbType.setText("Type: ");
        typ = new List(preference, SWT.READ_ONLY);
        typ.setItems(new String[] {"Linear", "Logarithmic"});
        typ.setSelection(0);
        lbAggregation = new Label(preference, SWT.SHADOW_IN);
        lbAggregation.setText("Values are :");
        cumulative = new List(preference, SWT.READ_ONLY);
        cumulative.setItems(new String[] {"accumulated", "not accumulated"});
        cumulative.setSelection(1);
        lbAccessType = new Label(preference, SWT.READ_ONLY);
        lbAccessType.setText("Visualizing: ");
        visualizing = new List(preference, SWT.READ_ONLY);
        visualizing.setItems(new String[] {"Read" , "Write"});
        visualizing.setSelection(0);
        c = new Canvas(topshell, SWT.DOUBLE_BUFFERED | SWT.BORDER);
        c.setLayoutData(new RowData(topshell.getClientArea().width,
                topshell.getClientArea().height - 75));
View Full Code Here

        lbDevice = new Label(preference, SWT.READ_ONLY);
        lbDevice.setText("Device: ");
        RowData rowd = new RowData();
        rowd.height = 45;
        rowd.width = 130;
        device = new List(preference, SWT.SINGLE | SWT.V_SCROLL);
        device.setLayoutData(rowd);
        visualizing = new List(preference, SWT.SINGLE);
        visualizing.setItems(new String[] {"Read", "Write"});
        visualizing.setSelection(0);
        lastVis = "Read";
        Label lbmin = new Label(preference,SWT.NONE);
        lbmin.setText("Min Blockno.");
View Full Code Here

        lbDevice = new Label(preference, SWT.READ_ONLY);
        lbDevice.setText("Device: ");
        RowData rowd = new RowData();
        rowd.height = 45;
        rowd.width = 130;
        device = new List(preference, SWT.READ_ONLY | SWT.V_SCROLL);
        device.setLayoutData(rowd);
        lbType = new Label(preference, SWT.SHADOW_IN);
        lbType.setText("Type: ");
        typ = new List(preference, SWT.READ_ONLY);
        typ.setItems(new String[] {"Linear", "Logarithmic"});
        typ.setSelection(0);
        lbAggregation = new Label(preference, SWT.SHADOW_IN);
        lbAggregation.setText("Values are :");
        cumulative = new List(preference, SWT.READ_ONLY);
        cumulative.setItems(new String[] {"accumulated", "not accumulated"});
        cumulative.setSelection(1);
        lbAccessType = new Label(preference, SWT.READ_ONLY);
        lbAccessType.setText("Visualizing: ");
        visualizing = new List(preference, SWT.READ_ONLY);
        visualizing.setItems(new String[] {"Read" , "Write"});
        visualizing.setSelection(0);
        c = new Canvas(topshell, SWT.DOUBLE_BUFFERED | SWT.BORDER);
        c.setLayoutData(new RowData(topshell.getClientArea().width,
                topshell.getClientArea().height - 75));
View Full Code Here

    layout.marginWidth= 0;
    editorComposite.setLayout(layout);
    GridData gd= new GridData(GridData.FILL_BOTH);
    editorComposite.setLayoutData(gd);

    fSyntaxColorList= new List(editorComposite, SWT.SINGLE | SWT.V_SCROLL | SWT.BORDER);
    gd= new GridData(GridData.FILL_BOTH);
    gd.heightHint= convertHeightInCharsToPixels(5);
    fSyntaxColorList.setLayoutData(gd);

    Composite stylesComposite= new Composite(editorComposite, SWT.NONE);
View Full Code Here

    editorComposite.setLayout(layout);
    gd= new GridData(GridData.HORIZONTAL_ALIGN_FILL | GridData.FILL_VERTICAL);
    gd.horizontalSpan= 2;
    editorComposite.setLayoutData(gd);

    fAppearanceColorList= new List(editorComposite, SWT.SINGLE | SWT.V_SCROLL | SWT.BORDER);
    gd= new GridData(GridData.VERTICAL_ALIGN_BEGINNING | GridData.FILL_HORIZONTAL);
    gd.heightHint= convertHeightInCharsToPixels(8);
    fAppearanceColorList.setLayoutData(gd);

    Composite stylesComposite= new Composite(editorComposite, SWT.NONE);
View Full Code Here

  public List getListControl(Composite parent)
  {
    if (list == null)
    {
      list =
        new List(
          parent,
          SWT.BORDER | SWT.SINGLE | SWT.V_SCROLL | SWT.H_SCROLL);
      list.setFont(parent.getFont());
      list.addSelectionListener(getSelectionListener());
      list.addDisposeListener(new DisposeListener()
View Full Code Here

    Widgets.onList( null );
  }

  @Test
  public void testOnListDoesNotCache() {
    List widget = mock( List.class );

    ListDecorator decorator1 = Widgets.onList( widget );
    ListDecorator decorator2 = Widgets.onList( widget );

    assertNotSame( decorator1, decorator2 );
View Full Code Here

TOP

Related Classes of org.eclipse.swt.widgets.List

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.