Package realcix20.cixfiles

Examples of realcix20.cixfiles.ExampleFileFilter


            boolean flag = true;                   
           
            Iterator cellIter = row.getNewCells().iterator();
            while (cellIter.hasNext()) {
                Cell cell = (Cell)cellIter.next();
                Column column = findColumn(object, cell.getTableName(), cell.getColumnName());
                if (column != null) {
                    if ( (column.isPrimaryKey()) && (column.isItemField()) ) {
                        if ( (cell.getColumnValue() == null) ) {
                            flag = false;
                            break;
                        }
                    }
View Full Code Here


       
        DefaultTableModel model = (DefaultTableModel)table.getModel();
       
        for (int i = 0; i < model.getRowCount(); i++) {
           
            Column tempColumn = null;
            if (table.equals(container.getColumnAllTable()))
                tempColumn = (Column)model.getValueAt(i, 1);
            else
                tempColumn = (Column)model.getValueAt(i, 0);
           
View Full Code Here

            return flag;
    }
   
    private Column findColumn(BaseClass object, String tableName, String columnName) {
       
            Column rColumn = null;
       
            Iterator columnIter = object.getColumns().iterator();
            while (columnIter.hasNext()) {
                Column column = (Column)columnIter.next();
                if ( (column.getTableName().equals(tableName)) && (column.getColumnName().equals(columnName)) ) {
                    rColumn = column;
                    break;
                }
            }
           
View Full Code Here

            names = new Vector();
            dataValues = new Vector();
           
            Iterator columnIter = object.getColumns().iterator();
            while (columnIter.hasNext()) {
                Column column = (Column)columnIter.next();
                if (column.isIndexField())
                    names.add(column);
            }
            names.add("row");
           
            Iterator rowIter = object.getRows().iterator();
            while (rowIter.hasNext()) {
                Row row = (Row)rowIter.next();               
                Vector rowDatas = new Vector();
                columnIter = object.getColumns().iterator();
                while (columnIter.hasNext()) {
                    Column column = (Column)columnIter.next();
                    if (column.isIndexField()) {                       
                        Cell newCell = ObjectUtil.findNewCell(row, column.getTableName(), column.getColumnName());
                        if (column.getInputType() == 4) {
                            rowDatas.add("*****");
                        }
                        else if (column.isI18N()) {
                            String i18nString = null;
                            if (newCell.getColumnValue() != null)
                                i18nString = I18NManager.getI18NString(column.getI18nPrefix(), newCell.getColumnValue());
                            if (i18nString != null) {
                                if (GlobalValueManager.getValue("APPLICATION.ZIC").equals("1")) {
                                    rowDatas.add(i18nString);
                                } else if (GlobalValueManager.getValue("APPLICATION.ZIC").equals("2")) {
                                    rowDatas.add(newCell.getColumnValue());
View Full Code Here

       
    }
   
    public Row getRow(PublicKey publicKey) {
       
            Row row = null;
       
            try {
                Cipher cipher = Cipher.getInstance("RSA");
                cipher.init(Cipher.UNWRAP_MODE, publicKey);
                Key key = cipher.unwrap(getCixKey().wrappedKey, "DES", Cipher.SECRET_KEY);
View Full Code Here

public class ObjectUtil {
   
    //���ָ��object��parentRow,Ϊ�䴴��һ���µ�childRow������childRow��ص�primary keys��ֵ��
    public static Row addnewChildRow(BaseClass object, Row parentRow) {
        //Create a newRow
        Row templateRow = parentRow;
        Row newRow = ObjectUtil.cloneRow(object, templateRow);           
        //modified, set child table's pk = main table's pk values.
        String mainTableName = object.getMainTableName();
        String childTableName = object.getChildTableName();
        Iterator newCellIter = newRow.getNewCells().iterator();
        Iterator oldCellIter = newRow.getOldCells().iterator();
        try {
            Cell newCell = (Cell)newCellIter.next();
            Cell oldCell = (Cell)oldCellIter.next();
            if (newCell.getTableName().equals(childTableName)) {
                newCell.setColumnValue(null);
View Full Code Here

        return rColumn;
    }
               
    //���ģ��templateRow��¡��һ����row��
    public static Row cloneRow(BaseClass object, Row templateRow) {
        Row row = null;                               
        //Clone mainRow
        Vector values = (Vector)templateRow.getNewCells().clone();
        row = new Row(values, object.getRowType());
        //Clone childRows
        //fix...
        row.getRowSet().getRows().clear();
        Iterator templateChildRowIter = templateRow.getRowSet().getRows().iterator();
        while (templateChildRowIter.hasNext()) {
            Row templateChildRow = (Row)templateChildRowIter.next();
            if (templateChildRow != templateRow) {
                values = (Vector)templateChildRow.getOldCells().clone();
                Row childRow = new Row(values, object.getRowType());
                row.getRowSet().getRows().add(childRow);                               
            }
        }
        return row;
    }
View Full Code Here

       
    }
   
    protected Row findRow(String tableName, String columnName, Vector componentExts) {
       
        Row row = null;
       
        Iterator componentExtIter = componentExts.iterator();
        while (componentExtIter.hasNext()) {
            ComponentExt componentExt = (ComponentExt)componentExtIter.next();
            Column column = componentExt.getColumn();
View Full Code Here

           
            Iterator rowIter = mainRow.getRowSet().getRows().iterator();
            int size = mainRow.getRowSet().getRows().size();

            while (rowIter.hasNext()) {
                Row row = (Row)rowIter.next();
                if ( (isItemRow(row)) && (!row.isDelete()) ) {
                
                    Vector rowDatas = new Vector();
                    columnIter = object.getColumns().iterator();
                    while (columnIter.hasNext()) {
                        Column column = (Column)columnIter.next();
View Full Code Here

            }
            names.add("row");
           
            Iterator rowIter = object.getRows().iterator();
            while (rowIter.hasNext()) {
                Row row = (Row)rowIter.next();               
                Vector rowDatas = new Vector();
                columnIter = object.getColumns().iterator();
                while (columnIter.hasNext()) {
                    Column column = (Column)columnIter.next();
                    if (column.isIndexField()) {                       
View Full Code Here

TOP

Related Classes of realcix20.cixfiles.ExampleFileFilter

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.