Package realcix20.classes.basic

Examples of realcix20.classes.basic.Row


                          value=value.toString().substring(0,value.toString().indexOf('-')).trim();
                        }
                        Cell cell = new Cell(tableName, columnName, value);                       
                        values.add(cell);
                    }
                    Row selectedRow = new Row(values, getCurrentObject().getRowType());
                    getCurrentObject().loadChilds(selectedRow);                   
                    ItemTableModel imodel = new ItemTableModel(getCurrentObject(), selectedRow);
                    objectChildTable.setHighlighters(new HighlighterPipeline(
                        new Highlighter[]{ AlternateRowHighlighter.genericGrey,
                                            new RolloverHighlighter(Color.BLACK, Color.WHITE)}));
View Full Code Here


            if ( (objectTable.getSelectedRow() != -1) && (objectTable.getRowCount() > objectTable.getSelectedRow()) ) {
                int selectedRowNumber = objectTable.convertRowIndexToModel(objectTable.getSelectedRow());
                IndexTableModel model = (IndexTableModel)objectTable.getModel();
                Vector dataVector = model.getDataVector();
                Vector rowDatas = (Vector)dataVector.get(selectedRowNumber);
                Row row = (Row)rowDatas.get(rowDatas.size() - 1);               
                Iterator columnIter = getCurrentObject().getColumns().iterator();               
                Vector cells = row.getNewCells();
                StringBuffer sb = new StringBuffer();
                while (columnIter.hasNext()) {
                    Column column = (Column)columnIter.next();
                    if (column.isHeadField()) {
                        sb.append(column.toString() + " --- ");
                        for (int k = 0; k < cells.size(); k++) {
                            Cell cell = (Cell)cells.get(k);
                            if ((cell.getColumnName().equals(column.getColumnName())) && (cell.getTableName().equals(column.getTableName()))) {
                                if (cell.getColumnValue() != null)
                                    sb.append(cell.getColumnValue());
                                sb.append("\n");
                                break;
                            }
                        }
                    }
                }
                sb.append("\n");
                boolean hasItemTableField = false;
                columnIter = getCurrentObject().getColumns().iterator();
                while (columnIter.hasNext()) {
                    Column column = (Column)columnIter.next();
                    if (column.isItemTableField()) {
                        hasItemTableField = true;
                        sb.append(column.toString() + "\t");
                    }
                }
                sb.append("\n");
                if (hasItemTableField) {
                    RowSet rowSet = row.getRowSet();
                    Iterator rowIter = rowSet.getRows().iterator();
                    while (rowIter.hasNext()) {
                        Row tempRow = (Row)rowIter.next();
                        Iterator cellIter = tempRow.getNewCells().iterator();
                        while (cellIter.hasNext()) {
                            Cell cell = (Cell)cellIter.next();
                            columnIter = getCurrentObject().getColumns().iterator();
                            while (columnIter.hasNext()) {
                                Column column = (Column)columnIter.next();
View Full Code Here

        Iterator rowDatasIter = datas.iterator();
        while (rowDatasIter.hasNext()) {
            Vector rowDatas = (Vector)rowDatasIter.next();
            Item cleared = (Item)rowDatas.get(0);
            if (cleared.getFactValue().equals("Close")) {
                Row regRow = (Row)rowDatas.get(rowDatas.size() - 1);
                int r = (Integer)ObjectUtil.findNewCell(regRow, "RI", "R").getColumnValue();
                int ri = (Integer)ObjectUtil.findNewCell(regRow, "RI", "RI").getColumnValue();
                dao.update(Resources.INSERT_RPN_SQL);
                dao.setInt(1, r);
                dao.setInt(2, ri);
View Full Code Here

                  searchField.addItem(new Item(column.getColumnName(),column.toString()));
            }
            names.add("row");
            Iterator rowIter = object.getRows().iterator();
            while (rowIter.hasNext()) {
                Row row = (Row)rowIter.next();               
                String ld = (String)ObjectUtil.findNewCell(row, "RI", "LD").getColumnValue();
                String lt = "";
                if (ld != null)
                    lt = LedgerClass.getLTByLD(ld);
                if ( (ld !=null) && ( (lt.equals("AP")) || (lt.equals("AR")) ) ) {                   
View Full Code Here

                BaseClass object = container.getCurrentObject();
                Column pkColumn = (Column)object.getPkColumns().get(0);
                Iterator rowsIter = object.getRows().iterator();
                while (rowsIter.hasNext()) {
                    Vector rowDatas = new Vector();
                    Row row = (Row)rowsIter.next();
                    String i18nID = ObjectUtil.findNewCell(row, pkColumn.getTableName(), pkColumn.getColumnName()).getColumnValue().toString();
                    if (!isI18NIDAdded(i18nID, dataValues)) {
                        rowDatas.add(i18nID);
                        rowDatas.add(TxtManager.getTxt("." + pkColumn.getColumnName() + "." + i18nID, refLangChooser.getSelectedLang()));
                        rowDatas.add(TxtManager.getTxt("." + pkColumn.getColumnName() + "." + i18nID, workLangChooser.getSelectedLang()));
View Full Code Here

                    String columnName = tm.getColumn(i).getColumnName();
                    Item item = (Item)tm.getValueAt(rowIndex, i);
                    Cell cell = new Cell(tableName, columnName, item.getFactValue());
                    values.add(cell);
                }
                Row selectedRow = new Row(values, container.getCurrentObject().getRowType());
                selectedRows.add(selectedRow);
      }
          getContainer().setEnabled(false);
          CopyToAnotherMonthDialog ctamd = new CopyToAnotherMonthDialog(getContainer(), getContainer().getCurrentObject(), selectedRows);
        }                                                      
View Full Code Here

       
            RegClass regObject = (RegClass)getContainer().getCurrentObject();
           
            Iterator rowIter = regObject.getRows().iterator();
            while (rowIter.hasNext()) {  
                Row row = (Row)rowIter.next();
                if (!regObject.isApOrAr(row)) {
                    row.setDelete(true);
                }
            }                       
                       
            Vector rows_Clone = (Vector)regObject.getRows().clone();
            int num = 0;
            for (int i = 0; i < rows_Clone.size(); i++) {
                Row row = (Row)rows_Clone.get(i);
                if (row.isDelete()) {
                    regObject.getRows().remove(i - num);
                    num++;
                }                   
            }
       
View Full Code Here

       
            RegClass regObject = (RegClass)getContainer().getCurrentObject();
           
            Iterator rowIter = regObject.getRows().iterator();
            while (rowIter.hasNext()) {  
                Row row = (Row)rowIter.next();
                if (!regObject.isCleared(row)) {
                    row.setDelete(true);
                }
            }
           
            Vector rows_Clone = (Vector)regObject.getRows().clone();
            int num = 0;
            for (int i = 0; i < rows_Clone.size(); i++) {
                Row row = (Row)rows_Clone.get(i);
                if (row.isDelete()) {
                    regObject.getRows().remove(i - num);
                    num++;
                }                   
            }
       
View Full Code Here

       
            RegClass regObject = (RegClass)getContainer().getCurrentObject();
           
            Iterator rowIter = regObject.getRows().iterator();
            while (rowIter.hasNext()) {  
                Row row = (Row)rowIter.next();
                if (regObject.isCleared(row)) {
                    row.setDelete(true);
                }
            }
           
            Vector rows_Clone = (Vector)regObject.getRows().clone();
            int num = 0;
            for (int i = 0; i < rows_Clone.size(); i++) {
                Row row = (Row)rows_Clone.get(i);
                if (row.isDelete()) {
                    regObject.getRows().remove(i - num);
                    num++;
                }                   
            }
       
View Full Code Here

               
                for (int i = 0; i < rows.length; i++) {
                    int selectedRowNumber = getContainer().getObjectTable().convertRowIndexToModel(rows[i]);
                    Vector dataVector = model.getDataVector();
                    Vector rowDatas = (Vector)dataVector.get(selectedRowNumber);
                    Row row = (Row)rowDatas.get(rowDatas.size() - 1);         
                    selectedRows.add(row);
                }
               
                RegClass regObject = (RegClass)getContainer().getCurrentObject();           
                result = regObject.setCleared(selectedRows);
View Full Code Here

TOP

Related Classes of realcix20.classes.basic.Row

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.