Package org.eclipse.swt.custom

Examples of org.eclipse.swt.custom.TableTree


                    if (item != null) {
            table.setSelection(new TableItem[] { item });
          }
                    selEvent.item = item;
                } else if (w instanceof TableTree) {
                    TableTree table = (TableTree) w;
                    TableTreeItem item = table.getItem(new Point(e.x, e.y));
                    if (item != null) {
            table.setSelection(new TableTreeItem[] { item });
          }
                    selEvent.item = item;
                } else {
                    return;
                }
View Full Code Here


   *            the parent control
   * @param style
   *            the SWT style bits
   */
  public TableTreeViewer(Composite parent, int style) {
    this(new TableTree(parent, style));
  }
View Full Code Here

   * @param style
   *          SWT.SINGLE SWT.MULTI SWT.CHECK SWT.FULL_SELECTION
   * @return
   */
  protected TableTree newTableTree(Composite parent, int style) {
    TableTree tt = new TableTree(parent, style);
    tt.setLayoutData(new GridData(GridData.FILL_BOTH));
    toolkit.adapt(tt, true, true);
    tt.addListener(SWT.Selection, this);
    tt.getTable().addListener(SWT.KeyUp, this); // for delete key
    tt.getTable().addListener(SWT.MouseDoubleClick, this); // for edit
    tt.addListener(SWT.Expand, this);
    tt.addListener(SWT.Collapse, this);
    // Make the TableTree's border visible since TableTree is NOT a widget supported
    // by FormToolkit.  Needed by RedHat Linux
    tt.setData(FormToolkit.KEY_DRAW_BORDER, FormToolkit.TREE_BORDER);
    return tt;
  }
View Full Code Here

        GridData data = new GridData(GridData.FILL_BOTH);
        label.setLayoutData(data);
    }

    private void createStyleView(Composite composite) {
        tree = new TableTree(composite, SWT.SINGLE | SWT.BORDER);

        // We need to explicitly set the bounds of the display area to that of
        // its parent, otherwise we get a stack overflow error when running on
        // windows. See vbm 2006051721 on mantis for more details.
        composite.setBounds(composite.getParent().getClientArea());
View Full Code Here

   * @param style
   *          SWT.SINGLE SWT.MULTI SWT.CHECK SWT.FULL_SELECTION
   * @return
   */
  protected TableTree newTableTree(Composite parent, int style) {
    TableTree tt = new TableTree(parent, style);
    tt.setLayoutData(new GridData(GridData.FILL_BOTH));
    toolkit.adapt(tt, true, true);
    tt.addListener(SWT.Selection, this);
    tt.getTable().addListener(SWT.KeyUp, this); // for delete key
    tt.getTable().addListener(SWT.MouseDoubleClick, this); // for edit
    tt.addListener(SWT.Expand, this);
    tt.addListener(SWT.Collapse, this);
    // Make the TableTree's border visible since TableTree is NOT a widget supported
    // by FormToolkit.  Needed by RedHat Linux
    tt.setData(FormToolkit.KEY_DRAW_BORDER, FormToolkit.TREE_BORDER);
    return tt;
  }
View Full Code Here

   * @param style
   *          SWT.SINGLE SWT.MULTI SWT.CHECK SWT.FULL_SELECTION
   * @return the TableTree
   */
  protected TableTree newTableTree(Composite parent, int style) {
    TableTree tt = new TableTree(parent, style);
    tt.setLayoutData(new GridData(GridData.FILL_BOTH));
    toolkit.adapt(tt, true, true);
    tt.addListener(SWT.Selection, this);
    tt.getTable().addListener(SWT.KeyUp, this); // for delete key
    tt.getTable().addListener(SWT.MouseDoubleClick, this); // for edit
    tt.addListener(SWT.Expand, this);
    tt.addListener(SWT.Collapse, this);
    // Make the TableTree's border visible since TableTree is NOT a widget supported
    // by FormToolkit.  Needed by RedHat Linux
    tt.setData(FormToolkit.KEY_DRAW_BORDER, FormToolkit.TREE_BORDER);
    return tt;
  }
View Full Code Here

   *            the parent control
   * @param style
   *            the SWT style bits
   */
  public TableTreeViewer(Composite parent, int style) {
    this(new TableTree(parent, style));
  }
View Full Code Here

                    if (item != null) {
            table.setSelection(new TableItem[] { item });
          }
                    selEvent.item = item;
                } else if (w instanceof TableTree) {
                    TableTree table = (TableTree) w;
                    TableTreeItem item = table.getItem(new Point(e.x, e.y));
                    if (item != null) {
            table.setSelection(new TableTreeItem[] { item });
          }
                    selEvent.item = item;
                } else {
                    return;
                }
View Full Code Here

   * @param style
   *          SWT.SINGLE SWT.MULTI SWT.CHECK SWT.FULL_SELECTION
   * @return
   */
  protected TableTree newTableTree(Composite parent, int style) {
    TableTree tt = new TableTree(parent, style);
    tt.setLayoutData(new GridData(GridData.FILL_BOTH));
    toolkit.adapt(tt, true, true);
    tt.addListener(SWT.Selection, this);
    tt.getTable().addListener(SWT.KeyUp, this); // for delete key
    tt.getTable().addListener(SWT.MouseDoubleClick, this); // for edit
    tt.addListener(SWT.Expand, this);
    tt.addListener(SWT.Collapse, this);
    return tt;
  }
View Full Code Here

    //3 columns, as first row will have 3 elements.
    layout.numColumns = 3;
    composite.setLayout(layout);

    //Main Table for Episode List
    listEpsTree = new TableTree(composite, SWT.FULL_SELECTION | SWT.BORDER);
    //listEps = new Table(composite,SWT.FULL_SELECTION | SWT.BORDER);
    GridData gridData = new GridData(GridData.FILL_BOTH);
    gridData.horizontalSpan = 3;
    listEpsTree.setLayoutData( gridData );
   
View Full Code Here

TOP

Related Classes of org.eclipse.swt.custom.TableTree

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.