Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.TreeColumn.pack()


        viewer.setContentProvider(new SummaryDataProvider());
        viewer.setLabelProvider(new SummaryLabelProvider());
        viewer.setInput(data);
        viewer.setColumnProperties(new String[]{"TITLE",VALUE})//$NON-NLS-1$
       
        infoColumn.pack();
        setCellEditor(viewer);
       
        return tree;
    }
View Full Code Here


        for (int i = 0; i < columnCount - 1; i++) {
            int minWidth = (int) settings.getColumnMin(i);
            int maxWidth = (int) (settings.getColumnMax(i) * tableWidth);
            TreeColumn column = treeTable.getColumn(i);
            if (mode2 == MODE_AUTO)
                column.pack(); // automatically resize the column
            // check the values
            if (column.getWidth() < minWidth) {
                // ensure the table isn't incredibly small
                if (!(columnCount * minWidth > tableWidth)) {
                    // column is too small, and the table is a reasonable size,
View Full Code Here

    TreeColumn type = new TreeColumn(discovered, SWT.LEFT);
    type.setText("Type");
    name.pack();
    jid.pack();
    category.pack();
    type.pack();
    name.setWidth(160);
    jid.setWidth(160);
    discovered.addMouseListener(new MouseAdapter() {
      @Override
      public void mouseDoubleClick(MouseEvent e) {
View Full Code Here

        TreeColumn titleColumn = new TreeColumn(treeTable, SWT.SINGLE);
        titleColumn.setWidth(300);
        titleColumn.setText("Title");
        treeTable.setSortColumn(titleColumn);
        treeTable.setSortDirection(SWT.UP);
        titleColumn.pack();
       
        TreeColumn publishColumn = new TreeColumn(treeTable, SWT.SINGLE);
        publishColumn.setWidth(300);
        publishColumn.setText("Published");
        treeTable.setSortColumn(publishColumn);
View Full Code Here

        TreeColumn publishColumn = new TreeColumn(treeTable, SWT.SINGLE);
        publishColumn.setWidth(300);
        publishColumn.setText("Published");
        treeTable.setSortColumn(publishColumn);
        treeTable.setSortDirection(SWT.UP);
        publishColumn.pack();
       
        getCommonViewer().setColumnProperties(new String[]{"title","publishDate" });
       
       
       
View Full Code Here

      if (i == 0) {
        tc.setWidth(200);
      }
      columns[i] = tc;
      if (i == 1 || i == 2) {
        tc.pack();
      }
    }

    aeConfigViewer = new TreeViewer(tree);
    DDTreeContentProvider contentProvider = new DDTreeContentProvider();
View Full Code Here

      int totStartWidth = 0;
      int[] startWidths = new int[columns.length];
      for (int i = 0; i < columns.length; i++) {
        TreeColumn column = columns[i];
        totStartWidth += startWidths[i] = column.getWidth();
        column.pack();
      }

      if (clientWidth <= totStartWidth) {
        return;
      }
View Full Code Here

          }
        }
      }
      column0.pack();
      column1.pack();
      column2.pack();
      return tree;
    }
    case CANVAS: {
      Canvas canvas = new Canvas(parent, SWT.BORDER);
      canvas.setData("STRINGS", new String[] { prefix + " Canvas widget" });
View Full Code Here

  void packColumns(Tree tree) {
    if (multipleColumns.getSelection()) {
      int columnCount = tree.getColumnCount();
      for (int i = 0; i < columnCount; i++) {
        TreeColumn treeColumn = tree.getColumn(i);
        treeColumn.pack();
      }
    }
  }

  Object[] parameterForType(String typeName, String value, Widget widget) {
View Full Code Here

          continue;
        filesViewer.setChecked(item, true);
      }
    }
    statCol.pack();
    resourceCol.pack();
    return filesSection;
  }

  private Composite createMessageAndPersonArea(Composite container) {
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.