Package net.sourceforge.squirrel_sql.fw.datasetviewer

Examples of net.sourceforge.squirrel_sql.fw.datasetviewer.ColumnDisplayDefinition


public class DataTypeShortTest extends AbstractDataTypeComponentTest {


  @Before
  public void setUp() throws Exception {
    ColumnDisplayDefinition mockColumnDisplayDefinition = getMockColumnDisplayDefinition();
    mockHelper.replayAll();
    classUnderTest = new DataTypeShort(null, mockColumnDisplayDefinition);
    mockHelper.resetAll();
    super.setUp();
   
View Full Code Here


         return new jxl.write.Label(colIdx, curRow, getDataXLSAsString(cellObj));
      }


      WritableCell ret;
      ColumnDisplayDefinition colDef = col.getColumnDisplayDefinition();
      int colType = colDef.getSqlType();
      switch (colType)
      {
         case Types.BIT:
         case Types.BOOLEAN:
            ret = new jxl.write.Boolean(colIdx, curRow, (Boolean) cellObj);
View Full Code Here

         StringBuffer buf = new StringBuffer();
         for (int colIdx = 0; colIdx < nbrSelCols; ++colIdx)
         {
            TableColumn col = _table.getColumnModel().getColumn(selCols[colIdx]);

            ColumnDisplayDefinition colDef = null;
            if(col instanceof ExtTableColumn)
            {
               colDef = ((ExtTableColumn) col).getColumnDisplayDefinition();
            }
View Full Code Here

    final int columnCount = getColumnCount();
    ColumnDisplayDefinition[] columnDefs =
      new ColumnDisplayDefinition[columnCount];
    for (int i = 0; i < columnCount; ++i)
    {
      columnDefs[i] = new ColumnDisplayDefinition(200, s_hdgs[i]);
    }
    return columnDefs;
  }
View Full Code Here

            for (int colIdx = 0; colIdx < nbrSelCols; ++colIdx)
            {

               TableColumn col = _table.getColumnModel().getColumn(selCols[colIdx]);

               ColumnDisplayDefinition colDef = null;
               if(col instanceof ExtTableColumn)
               {
                  colDef = ((ExtTableColumn) col).getColumnDisplayDefinition();
               }
               else
               {
                  continue;
               }



               if (firstCol)
               {
                  firstCol = false;
               }
               else
               {
                  buf.append(",");
               }

               final Object cellObj = _table.getValueAt(selRows[rowIdx], selCols[colIdx]);
               buf.append(colDef.getColumnName()).append(getData(colDef, cellObj, StatType.UPDATE));
            }

            buf.append(" WHERE\n");
         }
         final StringSelection ss = new StringSelection(buf.toString());
View Full Code Here

            for (int colIdx = 0; colIdx < nbrSelCols; ++colIdx)
            {

               TableColumn col = _table.getColumnModel().getColumn(selCols[colIdx]);

               ColumnDisplayDefinition colDef = null;
               if(col instanceof ExtTableColumn)
               {
                  colDef = ((ExtTableColumn) col).getColumnDisplayDefinition();
               }
               else
               {
                  continue;
               }

               if (firstCol)
               {
                  firstCol = false;
                  colNames.append("INSERT INTO PressCtrlH (");
                  vals.append("(");
               }
               else
               {
                  colNames.append(",");
                  vals.append(",");
               }

               Object cellObj = _table.getValueAt(selRows[rowIdx], selCols[colIdx]);

               colNames.append(colDef.getColumnName());
               vals.append(getData(colDef, cellObj, StatType.IN));
            }

            colNames.append(")");
            vals.append(")");
View Full Code Here

    final int columnCount = getColumnCount();
    ColumnDisplayDefinition[] columnDefs =
      new ColumnDisplayDefinition[columnCount];
    for (int i = 0; i < columnCount; ++i)
    {
      columnDefs[i] = new ColumnDisplayDefinition(200, s_hdgs[i]);
    }
    return columnDefs;
  }
View Full Code Here

    final int columnCount = getColumnCount();
    ColumnDisplayDefinition[] columnDefs =
      new ColumnDisplayDefinition[columnCount];
    for (int i = 0; i < columnCount; ++i)
    {
      columnDefs[i] = new ColumnDisplayDefinition(100, s_hdgs[i]);
    }
    return columnDefs;
  }
View Full Code Here

      ArrayList<ColumnDisplayDefinition> columnDisplayDefinitions = new ArrayList<ColumnDisplayDefinition>();

      for (PropertyInfo propertyInfo : singleType.getMappedClassInfo().getAttributes())
      {
         String propertyName = propertyInfo.getHibernatePropertyInfo().getPropertyName();
         columnDisplayDefinitions.add(new ColumnDisplayDefinition(DISPLAY_WIDTH, propertyName));
      }

      _columnDisplayDefinitions = columnDisplayDefinitions.toArray(new ColumnDisplayDefinition[columnDisplayDefinitions.size()]);
   }
View Full Code Here

      }


      _columnDisplayDefinitions = new ColumnDisplayDefinition[]
      {
         new ColumnDisplayDefinition(DISPLAY_WIDTH, s_stringMgr.getString("graph.ConstraintDataSet.LocalColumn", fkTableName)),
         new ColumnDisplayDefinition(DISPLAY_WIDTH, s_stringMgr.getString("graph.ConstraintDataSet.ReferencingColumn", pkTableName)),
      };
   }
View Full Code Here

TOP

Related Classes of net.sourceforge.squirrel_sql.fw.datasetviewer.ColumnDisplayDefinition

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.