Examples of Column


Examples of org.zkoss.zul.Column

            row.appendChild(new Label(df.format(b.getDate())));
          }
        }
       
        private String getGroupHead(Row row, SampleBean bean, int index) {
          Column column =
            (Column) row.getGrid().getColumns().getChildren().get(index);
          String field =  //print: category
            ((FieldComparator) column.getSortAscending()).getRawOrderBy();
          try {
            return Fields.get(bean, field).toString();
          } catch (NoSuchMethodException ex) {
            throw UiException.Aide.wrap(ex);
          }
View Full Code Here

Examples of org.zkoss.zul.api.Column

    public abstract Component cellFor(Row row);

    @Override
    public Column toColumn() {
        Column column = new org.zkoss.zul.Column();
        column.setLabel(_(columnName));
        column.setSclass(columnName.toLowerCase());
        if (width != null) {
            column.setWidth(width);
        }
        return column;
    }
View Full Code Here

Examples of prefuse.data.column.Column

    protected void filterColumns() {
        if ( m_parent == null ) return;
       
        for ( int i=0; i<m_pnames.size(); ++i ) {
            String name = (String)m_pnames.get(i);
            Column col = m_parent.getColumn(i);
            boolean contained = m_names.contains(name);
            if ( !m_colFilter.include(col, name) || contained ) {
                m_pnames.remove(i--);
                if ( !contained ) {
                    ((ColumnEntry)m_entries.get(name)).dispose();
                    m_entries.remove(name);
                }
               
                // fire notification
                fireTableEvent(m_rows.getMinimumRow(),
                               m_rows.getMaximumRow(),
                               i, EventConstants.DELETE);
            }
        }
       
        m_pnames.clear();

        Iterator pcols = m_parent.getColumnNames();
        for ( int i=0, j=m_columns.size(); pcols.hasNext(); ++i ) {
            String name = (String)pcols.next();
            Column col  = m_parent.getColumn(i);
           
            if ( m_colFilter.include(col, name) && !m_names.contains(name) ) {
                m_pnames.add(name);
                ColumnEntry entry = (ColumnEntry)m_entries.get(name);
                if ( entry == null ) {
View Full Code Here

Examples of railo.runtime.sql.exp.Column

    do {
      raw.removeSpace();
      //print.out(raw.getCurrent());
      exp=expression(raw);
      if(!(exp instanceof Column)) throw new SQLParserException("invalid order by part of query");
      Column col=(Column) exp;
     
      raw.removeSpace();
      if(raw.forwardIfCurrent("desc")) col.setDirectionBackward(true);
      if(raw.forwardIfCurrent("asc"))  col.setDirectionBackward(false);
      selects.addOrderByExpression(col);
      raw.removeSpace();
    }
    while(raw.forwardIfCurrent(','));
    raw.removeSpace();
View Full Code Here

Examples of realcix20.classes.basic.Column

        } catch (Exception e) {
            e.printStackTrace();
        }
        Iterator pkColumnIter = object.getPkColumns().iterator();
        while (pkColumnIter.hasNext()) {
            Column pkColumn = (Column)pkColumnIter.next();
            if (pkColumn.getTableName().equals(mainTableName)) {
                Cell childPkOldCell = ObjectUtil.findOldCell(newRow, childTableName, pkColumn.getColumnName());

                //found
                if (childPkOldCell != null) {
                    Cell childPkNewCell = ObjectUtil.findNewCell(newRow, childTableName, pkColumn.getColumnName());
                    Cell mainPkNewCell = ObjectUtil.findNewCell(newRow, mainTableName, pkColumn.getColumnName());
                    childPkOldCell.setColumnValue(mainPkNewCell.getColumnValue());
                    childPkNewCell.setColumnValue(mainPkNewCell.getColumnValue());
                }
            }
        }
View Full Code Here

Examples of simplesheet.model.column.Column

        cells = new TableCell[rows][cols];
        span = new int[rows][cols][2];

        this.cols = new Column[cols];
        for(int i=0; i<cols; i++) {
            this.cols[i] = new Column(i);
        }
        this.rows = new Row[rows];
        for(int i=0; i<rows; i++) {
            this.rows[i] = new Row(i);
        }
View Full Code Here

Examples of src.Column

public class ColumnTest
{
  @Test
  public void emptyColumnShouldPrintEmptyState()
  {
    Column column = new Column(0);
    assertEquals("0: ", column.printState());
  }
View Full Code Here

Examples of vanilla.java.perfeg.mmap.api.Column

        file.deleteOnExit();
    }

    private void computeMidPriceBP(Table table) {
        Row row = table.createRow();
        Column bidPrice = table.acquireColumn("bidPrice");
        Column askPrice = table.acquireColumn("askPrice");
        Column midBP = table.acquireColumn("midBP");
        long lastMp = (row.get(bidPrice) + row.get(askPrice)) / 2;
        while (row.nextRecord()) {
            long mp = (row.get(bidPrice) + row.get(askPrice)) / 2;
            long mpbp = 10000 * (mp - lastMp) / lastMp;
            row.set(midBP, mpbp);
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.