Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.Table.addListener()


   */
  protected Table newTable(Composite parent, int style) {
    Table table = new Table(parent, style | SWT.BORDER);
    GridData gd = new GridData(GridData.FILL_BOTH);
    table.setLayoutData(gd);
    table.addListener(SWT.Selection, this);
    table.addListener(SWT.KeyUp, this); // delete key
    return table;
  }

  public int getHitColumn(TableItem item, Point p) {
View Full Code Here


  protected Table newTable(Composite parent, int style) {
    Table table = new Table(parent, style | SWT.BORDER);
    GridData gd = new GridData(GridData.FILL_BOTH);
    table.setLayoutData(gd);
    table.addListener(SWT.Selection, this);
    table.addListener(SWT.KeyUp, this); // delete key
    return table;
  }

  public int getHitColumn(TableItem item, Point p) {
    for (int i = item.getParent().getColumnCount() - 1; i >= 0; i--) {
View Full Code Here

   
    for (String hour : _listHours) {
      final Table table = new Table(tabFolder, SWT.FULL_SELECTION | SWT.SINGLE);
          table.setLinesVisible(true);
          table.setHeaderVisible(true);
          table.addListener(SWT.MouseDoubleClick, new Listener() {
        public void handleEvent(Event arg0) {
          String item = table.getSelection()[0].getText(0);
          String hourTab = tabFolder.getSelection()[0].getText().split(":00")[0];
          GDDate date = new GDDate(item);
          date.setHourOfDay(Integer.parseInt(hourTab));
View Full Code Here

          date.setHourOfDay(Integer.parseInt(hourTab));
         
          new RegisteredStudentsOnThatDayDialog(getShell(), getMySelf(), date).open();
        }
          });
          table.addListener(SWT.Resize, new Listener() {
                public void handleEvent(Event arg0) {
                    TableLayout layout = new TableLayout();
                    layout.addColumnData(new ColumnWeightData(30, 30, true));
                    layout.addColumnData(new ColumnWeightData(100, 70, true));
                    table.setLayout(layout);
View Full Code Here

        viewer.setInput(columns);

        Table table = viewer.getTable();
        table.setLayoutData(new GridData(GridData.FILL_HORIZONTAL | GridData.FILL_VERTICAL));
        table.addListener(SWT.Selection, getListener());

        table.setHeaderVisible(true);
        table.setLinesVisible(true);

        addRightPanel(composite);
View Full Code Here

  protected Table newTable(Composite parent, int style) {
    Table table = new Table(parent, style | SWT.BORDER);
    GridData gd = new GridData(GridData.FILL_BOTH);
    table.setLayoutData(gd);
    table.addListener(SWT.Selection, this);
    table.addListener(SWT.KeyUp, this);
    return table;
  }

  private void displayFilteredTypes(String aTypeName) {
View Full Code Here

  protected Table newTable(Composite parent, int style) {
    Table table = new Table(parent, style | SWT.BORDER);
    GridData gd = new GridData(GridData.FILL_BOTH);
    table.setLayoutData(gd);
    table.addListener(SWT.Selection, this);
    table.addListener(SWT.KeyUp, this);
    return table;
  }

  private void displayFilteredTypes(String aTypeName) {
    matchingTypesUI.setRedraw(false);
View Full Code Here

  private TableViewer createTableViewer(Composite parent) {
    final Composite tableComposite = new Composite(parent, SWT.NONE);
    final TableViewer tableViewer = new TableViewer(tableComposite, SWT.V_SCROLL | SWT.BORDER);
    final Table table = tableViewer.getTable();
    table.setHeaderVisible(false);
    table.addListener(SWT.MouseDown, new Listener() {
      @Override
      public void handleEvent(Event event) {
        handleTableMouseDown(event, tableViewer);
      }
    });
View Full Code Here

   */
  protected Table newTable(Composite parent, int style) {
    Table table = new Table(parent, style | SWT.BORDER);
    GridData gd = new GridData(GridData.FILL_BOTH);
    table.setLayoutData(gd);
    table.addListener(SWT.Selection, this);
    table.addListener(SWT.KeyUp, this); // delete key
    return table;
  }

  public int getHitColumn(TableItem item, Point p) {
View Full Code Here

  protected Table newTable(Composite parent, int style) {
    Table table = new Table(parent, style | SWT.BORDER);
    GridData gd = new GridData(GridData.FILL_BOTH);
    table.setLayoutData(gd);
    table.addListener(SWT.Selection, this);
    table.addListener(SWT.KeyUp, this); // delete key
    return table;
  }

  public int getHitColumn(TableItem item, Point p) {
    for (int i = item.getParent().getColumnCount() - 1; i >= 0; i--) {
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.