Package realcix20.guis.models

Examples of realcix20.guis.models.IndexTableModel


            value = detailList.getValue();
        } else if (component instanceof XrCalculator) {
            XrCalculator xrCalculator = (XrCalculator)component;
            value = xrCalculator.getValue();
        } else if (component instanceof PasswordEdit) {
            PasswordEdit passwordEdit = (PasswordEdit)component;
            value = passwordEdit.getValue();
        }       
        return value;       
    }
View Full Code Here


                detailList = new DetailList(column);
                detailList.setEditabled(true);
                component = detailList;               
                break;                                                  
            case 4:               
                PasswordEdit passwordEdit = new PasswordEdit(column);
                component = passwordEdit;               
                break;               
            case 5:               
                JDatePicker datePicker = new JDatePicker();
                component = datePicker;               
View Full Code Here

            value = detailText.getValue();
        } else if (component instanceof DetailList) {//81
            DetailList detailList = (DetailList)component;
            value = detailList.getValue();
        } else if (component instanceof XrCalculator) {
            XrCalculator xrCalculator = (XrCalculator)component;
            value = xrCalculator.getValue();
        } else if (component instanceof PasswordEdit) {
            PasswordEdit passwordEdit = (PasswordEdit)component;
            value = passwordEdit.getValue();
        }       
        return value;       
View Full Code Here

                DetailList detailList = new DetailList(column);
                detailList.setEditabled(false);
                component = detailList;               
                break;               
            case 83:               
                XrCalculator xrCalculator = new XrCalculator(column);
                component = xrCalculator;               
                break;               
            case 82:               
                detailList = new DetailList(column);
                detailList.setEditabled(true);
View Full Code Here

           
            int[] rows = getContainer().getObjectTable().getSelectedRows();
       
            if (rows.length > 0) {                               
                Vector selectedRows = new Vector();
                IndexTableModel model = (IndexTableModel)getContainer().getObjectTable().getModel();
               
                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);
                }
               
View Full Code Here

           
            int[] rows = getContainer().getObjectTable().getSelectedRows();
       
            if (rows.length > 0) {                               
                Vector selectedRows = new Vector();
                IndexTableModel model = (IndexTableModel)getContainer().getObjectTable().getModel();
               
                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);
                }
               
View Full Code Here

       
        private void updatePreviewPane() {
           
            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();
View Full Code Here

               
        public void updateTable() {
           
                if (getCurrentObject() != null) {  
                    //setCurrentObject(ClassManager.createClass(getCurrentObject().getClsId()));
                    IndexTableModel tableModel = new IndexTableModel(getCurrentObject());       
                    objectTable.setModel(tableModel);
                    if (objectTable.getRowCount() > 0)
                        objectTable.removeRowSelectionInterval(0, objectTable.getRowCount() - 1);                                                           
                    objectTable.getColumnExt(objectTable.getColumnCount(true) - 1).setVisible(false);
                   
View Full Code Here

              
        //Used by some specify objects       
        public void updateTableWithoutCreateNewObject() {
               
                if (getCurrentObject() != null) {                      
                    IndexTableModel tableModel = new IndexTableModel(getCurrentObject());
                    objectTable.setModel(tableModel);
                    objectTable.getColumnExt(objectTable.getColumnCount(true) - 1).setVisible(false);
                } else {
                    getObjectTable().setModel(new DefaultTableModel());
                }
View Full Code Here

    private void initialNoBeControledComponents(Vector componentExts) {
       
        Iterator componentExtIter = componentExts.iterator();
        while (componentExtIter.hasNext()) {
           
            ComponentExt componentExt = (ComponentExt)componentExtIter.next();
            Column column = componentExt.getColumn();
            JComponent component = componentExt.getComponent();
           
            switch (column.getInputType()) {
               
                case 1:
                case 2:
View Full Code Here

TOP

Related Classes of realcix20.guis.models.IndexTableModel

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.