Package com.aelitis.azureus.ui.common.table

Examples of com.aelitis.azureus.ui.common.table.TableColumnCore


   */
  public void removeColumns(TableColumnCore[] itemsToRemove) {
    try {
      items_mon.enter();
      for (int i = 0; i < itemsToRemove.length; i++) {
        TableColumnCore item = itemsToRemove[i];
        String name = item.getName();
        String sTableID = item.getTableID();
        Map mTypes = (Map) items.get(sTableID);
        if (mTypes != null) {
          if ( mTypes.remove(name) != null ){
          }
        }
View Full Code Here


        String columnID = (String) iter.next();
        if (!mTypes.containsKey(columnID)) {
          try {
            TableColumnCreationListener l = mapColumnIDsToListener.get(forDataSourceType
                + "." + columnID);
            TableColumnCore tc = null;
            if (l instanceof TableColumnCoreCreationListener) {
              tc = ((TableColumnCoreCreationListener) l).createTableColumnCore(
                  forDataSourceType, tableID, columnID);
            }
            if (tc == null) {
              tc = new TableColumnImpl(tableID, columnID);
              tc.addDataSourceType(forDataSourceType);
            }

            if (l != null) {
              l.tableColumnCreated(tc);
            }
View Full Code Here

 
  public void setAutoHideOrder(String sTableID, String[] autoHideOrderColumnIDs) {
    ArrayList autoHideOrderList = new ArrayList(autoHideOrderColumnIDs.length);
    for (int i = 0; i < autoHideOrderColumnIDs.length; i++) {
      String sColumnID = autoHideOrderColumnIDs[i];
      TableColumnCore column = getTableColumnCore(sTableID, sColumnID);
      if (column != null) {
        autoHideOrderList.add(column);
      }
    }
   
View Full Code Here

        writer.indent();
         writer.println(sTableID + ": " + mTypes.size() + " columns:");
        
         writer.indent();
         for (Iterator iter2 = mTypes.values().iterator(); iter2.hasNext();) {
           TableColumnCore tc = (TableColumnCore)iter2.next();
           tc.generateDiagnostics(writer);
         }
        writer.exdent();

        writer.exdent();
      }
View Full Code Here

  }

  public TableColumnInfo getColumnInfo(Class forDataSourceType, String forTableID,
      String columnID) {

    TableColumnCore column = getTableColumnCore(forTableID, columnID);
   
    return column == null ? null : getColumnInfo(column);
  }
View Full Code Here

       
        String[] tables = tcManager.getTableIDs();
       
        for ( String tid: tables ){
         
          TableColumnCore col = tcManager.getTableColumnCore( tid, columnName );
         
          if ( col != null ){
         
            col.remove();
          }
        }
       
        break;
      }
View Full Code Here

  // @see org.gudy.azureus2.plugins.ui.tables.TableCellAddedListener#cellAdded(org.gudy.azureus2.plugins.ui.tables.TableCell)
  public void cellAdded(final TableCell cell) {
    Utils.execSWTThread(new AERunnable() {
      public void runSupport() {
        TableColumnCore column = (TableColumnCore) cell.getDataSource();
        TableViewColumnSetup tv = (TableViewColumnSetup) ((TableCellCore) cell).getTableRowCore().getView();
        TableRowCore sampleRow = (TableRowCore) tv.getSampleRow();

        cell.addListeners(new Cell(cell, column, tv, sampleRow));
      }
View Full Code Here

   * @param mapTCs
   * @param defaultVisibleOrder
   */
  private static void setVisibility(Map mapTCs, String[] defaultVisibleOrder) {
    for (Iterator iter = mapTCs.values().iterator(); iter.hasNext();) {
      TableColumnCore tc = (TableColumnCore) iter.next();
      Long force_visible = (Long)tc.getUserData( TableColumn.UD_FORCE_VISIBLE );
      if ( force_visible == null || force_visible==0 ){
     
        tc.setVisible(false);
      }
    }

    for (int i = 0; i < defaultVisibleOrder.length; i++) {
      String id = defaultVisibleOrder[i];
      TableColumnCore tc = (TableColumnCore) mapTCs.get(id);
      if (tc != null) {
        tc.setVisible(true);
        tc.setPositionNoShift(i);
      }
    }
  }
View Full Code Here

        try {
          Constructor constructor = info.cla.getDeclaredConstructor(new Class[] {
            String.class
          });
          TableColumnCore column = (TableColumnCore) constructor.newInstance(new Object[] {
            tableID
          });
          return column;
        } catch (Exception e) {
          Debug.out(e);
View Full Code Here

TOP

Related Classes of com.aelitis.azureus.ui.common.table.TableColumnCore

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.