Package org.eclipse.swt.custom

Examples of org.eclipse.swt.custom.TableEditor


   */
  TableViewerEditor(TableViewer viewer, SWTFocusCellManager focusCellManager,
      ColumnViewerEditorActivationStrategy editorActivationStrategy,
      int feature) {
    super(viewer, editorActivationStrategy, feature);
    tableEditor = new TableEditor(viewer.getTable());
    this.focusCellManager = focusCellManager;
  }
View Full Code Here


   * @see org.eclipse.e4.xwt.metadata.IProperty#setValue(java.lang.Object, java.lang.Object)
   */
  public void setValue(Object target, Object value) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException, SecurityException, NoSuchFieldException {

    Boolean isDynamic = (Boolean) value;
    TableEditor tableEditor = (TableEditor) target;
    final Control control = tableEditor.getEditor();
    Table tableParent = null;
    Composite parent = control.getParent();
    if (parent instanceof Table) {
      tableParent = (Table) parent;
    } else if (tableEditor.getItem() != null) {
      tableParent = tableEditor.getItem().getParent();
    }
    if (tableParent == null) {
      return;
    }
    final Table table = tableParent;
View Full Code Here

        continue;
      }
      int column = table.indexOf(tableColumn);
      Element editor = (Element) data;
      try {
        TableEditor tableEditor = (TableEditor) doCreate(table, editor,
            null, EMPTY_MAP);
        if (tableEditor != null) {
          tableEditor.setColumn(column);
          tableEditor.setItem(tableItem);
        }
      } catch (Exception e) {
        continue;
      }
    }
View Full Code Here

      if (content == null) {
        instance = metaclass.newInstance(new Object[] { swtObject });
        invokeCreatededAction(element, instance);
        if (instance instanceof TableEditor) {
          // TODO should be moved into IMetaclass
          TableEditor tableEditor = (TableEditor) instance;
          if (swtObject instanceof TableItem) {
            TableItem item = (TableItem) swtObject;
            tableEditor.setItem(item);
            for (DocumentObject doc : element.getChildren()) {
              Control control = (Control) doCreate(
                  ((TableItem) swtObject).getParent(),
                  (Element) doc, null, EMPTY_MAP);
              tableEditor.setEditor(control);
              int column = getColumnValue(element);
              TableEditorHelper.initEditor(item, control, column);
            }
          }
        }
View Full Code Here

        // create dn link control
        dnLink = new Hyperlink( viewer.getTable(), SWT.NONE );
        dnLink.setLayoutData( new GridData( SWT.BOTTOM, SWT.LEFT, true, true ) );
        dnLink.setText( "" );
        dnLink.setMenu( viewer.getTable().getMenu() );
        tableEditor = new TableEditor( viewer.getTable() );
        tableEditor.horizontalAlignment = SWT.LEFT;
        tableEditor.verticalAlignment = SWT.BOTTOM;
        tableEditor.grabHorizontal = true;
        tableEditor.grabVertical = true;
View Full Code Here

  void createChildWidgets() {
    /* Add common controls */
    super.createChildWidgets();

    /* Add TableEditors */
    comboEditor = new TableEditor(table);
    table.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(SelectionEvent e) {
        resetEditors();
        index = table.getSelectionIndex();
        if (index == -1)
View Full Code Here

  void createChildWidgets() {
    /* Add common controls */
    super.createChildWidgets();

    /* Add TableEditors */
    comboEditor = new TableEditor(table);
    widthEditor = new TableEditor(table);
    heightEditor = new TableEditor(table);
    table.addMouseListener(new MouseAdapter() {
      public void mouseDown(MouseEvent e) {
        resetEditors();
        index = table.getSelectionIndex();
        Point pt = new Point(e.x, e.y);
View Full Code Here

    table.getColumn(RIGHT_COL).setWidth(100);
    table.getColumn(TOP_COL).setWidth(100);
    table.getColumn(BOTTOM_COL).setWidth(100);

    /* Add TableEditors */
    comboEditor = new TableEditor(table);
    widthEditor = new TableEditor(table);
    heightEditor = new TableEditor(table);
    leftEditor = new TableEditor(table);
    rightEditor = new TableEditor(table);
    topEditor = new TableEditor(table);
    bottomEditor = new TableEditor(table);
    table.addMouseListener(new MouseAdapter() {
      public void mouseDown(MouseEvent e) {
        resetEditors();
        index = table.getSelectionIndex();
        Point pt = new Point(e.x, e.y);
View Full Code Here

    /* Add common controls */
    super.createChildWidgets();

    /* Add TableEditors */
    comboEditor = new TableEditor(table);
    widthEditor = new TableEditor(table);
    heightEditor = new TableEditor(table);
    vAlignEditor = new TableEditor(table);
    hAlignEditor = new TableEditor(table);
    hIndentEditor = new TableEditor(table);
    hSpanEditor = new TableEditor(table);
    vSpanEditor = new TableEditor(table);
    hGrabEditor = new TableEditor(table);
    vGrabEditor = new TableEditor(table);
    table.addMouseListener(new MouseAdapter() {
      public void mouseDown(MouseEvent e) {
        resetEditors();
        index = table.getSelectionIndex();
        Point pt = new Point(e.x, e.y);
View Full Code Here

        gridData.widthHint = 200;
        gridData.minimumWidth = 200;
        aliasesTable.setLayoutData( gridData );

        // Aliases Table Editor
        tableEditor = new TableEditor( aliasesTable );
        tableEditor.horizontalAlignment = SWT.LEFT;
        tableEditor.grabHorizontal = true;
        tableEditor.minimumWidth = 200;

        // Add Button
View Full Code Here

TOP

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

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.