Examples of ColumnInfo


Examples of com.google.gdt.eclipse.designer.gwtext.model.layout.table.ColumnInfo

      // set text
      m_feedback.setText("column: " + index);
    }
    // prepare command
    {
      ColumnInfo column = (ColumnInfo) headerEditPart.getDimension();
      final int sourceIndex = column.getIndex();
      if (index == sourceIndex || index == sourceIndex + 1) {
        m_moveCommand = Command.EMPTY;
      } else {
        m_moveCommand = new EditCommand(m_layout) {
          @Override
View Full Code Here

Examples of com.google.gdt.eclipse.designer.gxt.model.layout.table.ColumnInfo

      // set text
      m_feedback.setText("column: " + index);
    }
    // prepare command
    {
      ColumnInfo column = (ColumnInfo) headerEditPart.getDimension();
      final int sourceIndex = column.getIndex();
      if (index == sourceIndex || index == sourceIndex + 1) {
        m_moveCommand = Command.EMPTY;
      } else {
        m_moveCommand = new EditCommand(m_layout) {
          @Override
View Full Code Here

Examples of com.google.gdt.eclipse.designer.gxt.model.widgets.PortalInfo.ColumnInfo

  ////////////////////////////////////////////////////////////////////////////
  @Override
  protected void decorateChild(EditPart child) {
    Object model = child.getModel();
    if (model instanceof ColumnInfo) {
      ColumnInfo column = (ColumnInfo) model;
      child.installEditPolicy(
          EditPolicy.SELECTION_ROLE,
          new PortalColumnSelectionEditPolicy(column));
    }
  }
View Full Code Here

Examples of com.google.gdt.eclipse.designer.model.widgets.cell.ColumnInfo

    assertNoErrors(m_lastParseInfo);
    CellTableInfo cellTable = getJavaInfoByName("cellTable");
    // 1 column initially
    assertThat(cellTable.getColumns()).hasSize(1);
    // add new Column
    ColumnInfo newColumn = createJavaInfo("com.google.gwt.user.cellview.client.Column");
    flowContainer_CREATE(cellTable, newColumn, null);
    assertThat(cellTable.getColumns()).hasSize(2);
    assertNoErrors(m_lastParseInfo);
    assertEditor(
        "public class Test extends FlowPanel {",
View Full Code Here

Examples of com.google.gdt.eclipse.designer.model.widgets.panels.grid.ColumnInfo

    }
    // column is not empty
    {
      List<ColumnInfo> columns = panel.getColumns();
      assertThat(columns).hasSize(1);
      ColumnInfo column = columns.get(0);
      assertFalse(column.isEmpty());
    }
    // row is not empty
    {
      List<RowInfo> rows = panel.getRows();
      assertThat(rows).hasSize(1);
View Full Code Here

Examples of com.greentea.relaxation.jnmf.util.data.ColumnInfo

      int outputsCount = data.getOutputsCount();
      int[] intersectionSteps = rocResult.getIntersectionSteps();

      Metadata metadata = data.getMetadata();
      ColumnInfo outputColumn = metadata.resolveColumns(VariableType.OUT).get(0);

      int i = 0;
      for (String categoryValue : outputColumn.getValuesOfCategory())
      {
         int intersectionStep = intersectionSteps[i];

         classesReportModel.addRow(new Object[]{categoryValue, rocResult.getTp()[i][intersectionStep],
                 rocResult.getTn()[i][intersectionStep], rocResult.getFp()[i][intersectionStep],
View Full Code Here

Examples of com.impetus.kundera.configure.schema.ColumnInfo

            if (!targetTableInfos.isEmpty() && targetTableInfos.contains(targetTableInfo))
            {
                int idx = targetTableInfos.indexOf(targetTableInfo);
                targetTableInfo = targetTableInfos.get(idx);
                ColumnInfo columnInfoOfJoinColumn = getJoinColumn(targetTableInfo, joinColumn, m.getIdAttribute()
                        .getBindableJavaType());
                if (!targetTableInfo.getColumnMetadatas().contains(columnInfoOfJoinColumn))
                {
                    targetTableInfo.addColumnInfo(columnInfoOfJoinColumn);
                }
            }
            else
            {
                ColumnInfo columnInfoOfJoinColumn = getJoinColumn(targetTableInfo, joinColumn, m.getIdAttribute()
                        .getBindableJavaType());
                if (!targetTableInfo.getColumnMetadatas().contains(columnInfoOfJoinColumn))
                {
                    targetTableInfo.addColumnInfo(columnInfoOfJoinColumn);
                }
View Full Code Here

Examples of com.intellij.util.ui.ColumnInfo

    {
      @Override
      public TableCellRenderer getCellRenderer(int row, int column)
      {
        // Hum, why getCustomizedRenderer is not automatically called by TableView ?
        ColumnInfo columnInfo = getListTableModel().getColumnInfos()[convertColumnIndexToModel(column)];
        return columnInfo.getCustomizedRenderer(getListTableModel().getItems().get(row),
          super.getCellRenderer(row, column));
      }
    };
  }
View Full Code Here

Examples of com.lingbobu.flashdb.common.ColumnInfo

      int dataType = sqlType2DataType(columnSqlType);
      if (dataType == DataTypes.TYPE_OBJECT)
        throw new RuntimeException("Unsupport sql type "+columnSqlType+" for column '"+columnName+"'");

      columnIndexs.put(columnName, lcolumnInfos.size());
      lcolumnInfos.add(new ColumnInfo(columnName, dataType, isNullable));
    }
   
    ResultSet rstPrimaryKeys = dbMetaData.getPrimaryKeys(null, null, tableName);
    List<String> keyColumns = new ArrayList<String>();
    while (rstPrimaryKeys.next()) {
      String columnName = rstPrimaryKeys.getString("COLUMN_NAME");
      keyColumns.add(columnName);
    }
   
    if (nAutoIncrement >= 0) {
      if (keyColumns.size() != 1)
        throw new RuntimeException("AutoIncrement but no PrimaryKey");
      if (! keyColumns.get(0).equals(lcolumnInfos.get(nAutoIncrement).getName()))
        throw new RuntimeException("AutoIncrement only support on column of PrimaryKey");
    }
   
    // 将主键字段移到最前面
    ColumnInfo[] columnInfos = lcolumnInfos.toArray(new ColumnInfo[lcolumnInfos.size()]);
    for (int i=0; i < keyColumns.size(); i++) {
      String columnName = keyColumns.get(i);
      Integer columnIndex = columnIndexs.get(columnName);
      if (columnIndex == null)
        throw new RuntimeException("Unkown column '"+columnName+"' of PrimaryKey");
      int n = columnIndex.intValue();
      if (n == i) continue;
      else if (n < i)
        throw new RuntimeException("Error order of column '"+columnName+"' for PrimaryKey");
     
      ColumnInfo tmp = columnInfos[i];
      columnInfos[i] = columnInfos[n];
      columnInfos[n] = tmp;
      columnIndexs.put(columnInfos[i].getName(), i);
      columnIndexs.put(columnInfos[n].getName(), n);
    }
View Full Code Here

Examples of com.salesforce.phoenix.util.ColumnInfo

                Integer sqlType = allColumnsInfoMap.get(rowkey);
                if (sqlType == null) {
                    throw new SQLExceptionInfo.Builder(SQLExceptionCode.PRIMARY_KEY_MISSING)
                         .setColumnName(rowkey).setTableName(fullTableName).build().buildException();
                }
                columnMetadata[position] = new ColumnInfo(rowkey, sqlType);
                position++;
            }
           
            this.upsertStatement = QueryUtil.constructUpsertStatement(columnMetadata, fullTableName, columnMetadata.length);
            logger.info(" the upsert statement is {} " ,this.upsertStatement);
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.