Examples of TableColumn


Examples of org.eclipse.swt.widgets.TableColumn

        tblLayoutData.minimumHeight = 200;
        _tblRemoteActions.setLayoutData(tblLayoutData);     
        registerField("remoteActions", _tblRemoteActions);
       
        int tableWidth = 450;         
        _actionModuleColumn = new TableColumn(_tblRemoteActions, SWT.NONE)
        _actionModuleColumn.setText("Action module");
        _actionModuleColumn.setWidth((int)(tableWidth * 0.3));
       
        _minAccessLevelColumn = new TableColumn(_tblRemoteActions, SWT.NONE);
        _minAccessLevelColumn.setText("Minimum access level");
        _minAccessLevelColumn.setWidth((int)(tableWidth * 0.3));         

        _callersColumn = new TableColumn(_tblRemoteActions, SWT.NONE);
      _callersColumn.setText("Callers (comma separated)");
      _callersColumn.setWidth((int)(tableWidth * 0.3));
       
        _remoteActionsModel = new RemoteActionsModel(_model.getRemoteActions());
        _remoteActionsModel.addListener(new BeanListTableModelListener() {
View Full Code Here

Examples of org.eclipse.swt.widgets.TableColumn

        tblLayoutData.minimumHeight = 200;
        _tblJobDefinitions.setLayoutData(tblLayoutData);     
        registerField("jobDefinitions", _tblJobDefinitions);
       
        int tableWidth = 700;         
        _jobNameColumn = new TableColumn(_tblJobDefinitions, SWT.NONE)
        _jobNameColumn.setText("Name");
        _jobNameColumn.setWidth((int)(tableWidth * 0.2));
       
        _jobTypeColumn = new TableColumn(_tblJobDefinitions, SWT.NONE);
        _jobTypeColumn.setText("Type");
        _jobTypeColumn.setWidth((int)(tableWidth * 0.2));         

        _jobResourceColumn = new TableColumn(_tblJobDefinitions, SWT.NONE);
      _jobResourceColumn.setText("Resource");
      _jobResourceColumn.setWidth((int)(tableWidth * 0.2));
     
        _jobDescriptionColumn = new TableColumn(_tblJobDefinitions, SWT.NONE);
        _jobDescriptionColumn.setText("Description");
        _jobDescriptionColumn.setWidth((int)(tableWidth * 0.2));
       
        _jobScheduleColumn = new TableColumn(_tblJobDefinitions, SWT.NONE);
        _jobScheduleColumn.setText("CRON schedule");
        _jobScheduleColumn.setWidth((int)(tableWidth * 0.2));
       
       
        _jobDefinitionsModel = new JobDefinitionsModel(_model.getJobDefinitions());
View Full Code Here

Examples of org.eclipse.swt.widgets.TableColumn

    int[] aligns = { SWT.LEFT };

    for (int i = 0; i < headers.length; i++){

      TableColumn tc = new TableColumn(buddy_table, aligns[i]);
       
      tc.setWidth(sizes[i]);

      Messages.setLanguageText(tc, headers[i]);
   

      buddy_table.setHeaderVisible(true);
View Full Code Here

Examples of org.eclipse.swt.widgets.TableColumn

    listPanel.setLayout(new FillLayout());
   
    subscriptionsList = new Table(listPanel,SWT.V_SCROLL | SWT.SINGLE | SWT.FULL_SELECTION | SWT.VIRTUAL);
    subscriptionsList.setHeaderVisible(true);
   
    TableColumn name = new TableColumn(subscriptionsList,SWT.NONE);
    name.setText(MessageText.getString("subscriptions.listwindow.name"));
    name.setWidth(310);
    name.setResizable(false);
   
    TableColumn popularity = new TableColumn(subscriptionsList,SWT.NONE);
    popularity.setText(MessageText.getString("subscriptions.listwindow.popularity"));
    popularity.setWidth(70);
    popularity.setResizable(false);
   
    subscriptionsList.addListener(SWT.SetData, new Listener() {
      public void handleEvent(Event e) {
        TableItem item = (TableItem) e.item;
        int index = subscriptionsList.indexOf(item);
        if(index >= 0 && index < subscriptionItems.length) {
          SubscriptionItemModel subscriptionItem = subscriptionItems[index];
          item.setText(0,subscriptionItem.name);
          item.setText(1,subscriptionItem.popularityDisplay);
        }
      }
    });
   
    subscriptionsList.setSortColumn(popularity);
    subscriptionsList.setSortDirection(SWT.DOWN);
   
    subscriptionsList.addListener(SWT.Selection, new Listener() {
      public void handleEvent(Event arg0) {
        action.setEnabled(subscriptionsList.getSelectionIndex() != -1);
      }
    });
   
    Listener sortListener = new Listener() {
      public void handleEvent(Event e) {
        // determine new sort column and direction
        TableColumn sortColumn = subscriptionsList.getSortColumn();
        TableColumn currentColumn = (TableColumn) e.widget;
        int dir = subscriptionsList.getSortDirection();
        if (sortColumn == currentColumn) {
          dir = dir == SWT.UP ? SWT.DOWN : SWT.UP;
        } else {
          subscriptionsList.setSortColumn(currentColumn);
View Full Code Here

Examples of org.eclipse.swt.widgets.TableColumn

    gActivity.setLayout(new GridLayout());
   
    activityTable = new Table(gActivity,SWT.VIRTUAL | SWT.BORDER | SWT.FULL_SELECTION | SWT.SINGLE);
    activityTable.setLayoutData(new GridData(GridData.FILL_BOTH));
   
    final TableColumn colStatus =  new TableColumn(activityTable,SWT.LEFT);
    Messages.setLanguageText(colStatus,"DHTView.activity.status");
    colStatus.setWidth(80);
   
    final TableColumn colType =  new TableColumn(activityTable,SWT.LEFT);
    Messages.setLanguageText(colType,"DHTView.activity.type");
    colType.setWidth(80);
   
    final TableColumn colName =  new TableColumn(activityTable,SWT.LEFT);
    Messages.setLanguageText(colName,"DHTView.activity.target");
    colName.setWidth(80);
   
    final TableColumn colDetails =  new TableColumn(activityTable,SWT.LEFT);
    Messages.setLanguageText(colDetails,"DHTView.activity.details");
    colDetails.setWidth(300);
    colDetails.setResizable(false);
   
   
    activityTable.setHeaderVisible(true);
    Listener computeLastRowWidthListener = new Listener() {
      // inUse flag to prevent a SWT stack overflow.  For some reason
      // the setWidth call was triggering a resize.
      boolean inUse = false;
      public void handleEvent(Event event) {
        if (inUse) {
          return;
        }

        inUse = true;
         try {
          if(activityTable == null || activityTable.isDisposed()) return;
          int totalWidth = activityTable.getClientArea().width;
          int remainingWidth = totalWidth
                                 - colStatus.getWidth()
                                 - colType.getWidth()
                                 - colName.getWidth();
          if(remainingWidth > 0)
            colDetails.setWidth(remainingWidth);

         } finally {
          inUse = false;
        }
      }
View Full Code Here

Examples of org.foray.fotree.fo.obj.TableColumn

                    + " must be child of fo:table-row, fo:table-body, " +
                            "fo:table-header, or fo:table-footer.");
            return null;
        }
        case TABLE_COLUMN: {
            return new TableColumn(parent, propertyList);
        }
        case TABLE_FOOTER: {
            final Table table = parentTable(enumeration, parent, locator);
            return new TableFooter(table, propertyList);
        }
View Full Code Here

Examples of org.gudy.azureus2.plugins.ui.tables.TableColumn

            && (!(currentContent[0] instanceof ISelectedVuzeFileContent))
            && currentContent[0].getDownloadManager() == null
            && (currentContent[0].getHash() != null || currentContent[0].getDownloadInfo() != null));
 
      if (tv != null) {
        TableColumn tc = tv.getTableColumn(RankItem.COLUMN_ID);
        if (tc != null && !tc.isVisible()) {
          mapNewToolbarStates.put("up", false);
          mapNewToolbarStates.put("down", false);
        }
      }
     
View Full Code Here

Examples of org.gudy.azureus2.plugins.ui.tables.TableColumn

  }

  private static boolean areNoneVisible(Map mapTCs) {
    boolean noneVisible = true;
    for (Iterator iter = mapTCs.values().iterator(); iter.hasNext();) {
      TableColumn tc = (TableColumn) iter.next();
      if (tc.isVisible()) {
        noneVisible = false;
        break;
      }
    }
    return noneVisible;
View Full Code Here

Examples of org.gudy.azureus2.plugins.ui.tables.TableColumn

        
         break;
      }
      case UIManagerEvent.ET_ADD_TABLE_COLUMN:{
       
        TableColumn  _col = (TableColumn)data;
       
        if ( _col instanceof TableColumnImpl ){
         
          TableColumnManager.getInstance().addColumns(new TableColumnCore[] {  (TableColumnCore) _col });
         
          TableStructureEventDispatcher tsed = TableStructureEventDispatcher.getInstance(_col.getTableID());
         
          tsed.tableStructureChanged(true, _col.getForDataSourceType());
         
        }else{
         
          throw(new UIRuntimeException("TableManager.addColumn(..) can only add columns created by createColumn(..)"));
        }
View Full Code Here

Examples of org.gudy.azureus2.plugins.ui.tables.TableColumn

   * @since 3.1.1.1
   */
  private static boolean areNoneVisible(Map mapTCs) {
    boolean noneVisible = true;
    for (Iterator iter = mapTCs.values().iterator(); iter.hasNext();) {
      TableColumn tc = (TableColumn) iter.next();
      if (tc.isVisible()) {
        noneVisible = false;
        break;
      }
    }
    return noneVisible;
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.