Package de.ambits.csvmaster.ui

Examples of de.ambits.csvmaster.ui.TableComposite


*/
public class CsvService implements ICsvService {
 
  @Override
  public void addColumn(String columnName, ExecutionEvent event) throws ExecutionException {
    TableComposite composite = getCurrentTableStyleComposite(event);
    CsvTable table = composite.getCsvTable();
   
    table.addNewColumn(columnName);
    composite.setDirty(true);
    composite.refresh(RefreshMode.ALL);
  }
View Full Code Here


  }
 
  @Override
  public void renameColumn(String columnName, ExecutionEvent event) throws ExecutionException {
    ColumnEvent trigger = (ColumnEvent)event.getTrigger();
    TableComposite composite = getCurrentTableStyleComposite(event);
    CsvTable table = composite.getCsvTable();
   
    table.renameColumn(trigger.getColumn(), columnName);
    composite.setDirty(true);
    composite.refresh(RefreshMode.ALL);
  }
View Full Code Here

    composite.refresh(RefreshMode.ALL);
  }

  @Override
  public void deleteColumn(Object[] columns, ExecutionEvent event) throws ExecutionException {
    TableComposite composite = getCurrentTableStyleComposite(event);
    CsvTable table = composite.getCsvTable();
   
        for(Object obj : columns) {
          ColumnHeader columnHeader = (ColumnHeader)obj;
          table.removeColumn(columnHeader);
        }
        composite.setDirty(true);
        composite.refresh(RefreshMode.ALL);
  }
View Full Code Here

//    composite.setDirty(true);
//  }
 
  @Override
  public List<ColumnHeader> getTableHeaders(ExecutionEvent event) throws ExecutionException {
    TableComposite composite = getCurrentTableStyleComposite(event);
    CsvTable table = composite.getCsvTable();
    return table.getHeader();
  }
View Full Code Here

TOP

Related Classes of de.ambits.csvmaster.ui.TableComposite

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.