Package realcix20.guis.components

Examples of realcix20.guis.components.XTable$ImageRenderer


            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

    public void mousePressed(MouseEvent e) {                   
       
            JXTable objectTable = getContainer().getObjectTable();
            JXTable layoutTable = getContainer().getLayoutTable();
            JXTable objectLayoutTable = getContainer().getObjectLayoutTable();
            XTable objectViewTable = container.getObjectViewTable();
            JTree tree = getContainer().getTree();
       
            if ( (e.getSource().equals(objectTable)) && (e.getButton() == e.BUTTON3) ) {
                //if (objectTable.getSelectedRows().length > 0)
                    //objectTable.removeRowSelectionInterval(0, objectTable.getRowCount() - 1);
                if ( (objectTable.getRowCount() > 0) && (objectTable.rowAtPoint(e.getPoint()) != -1) )
                    objectTable.addRowSelectionInterval(objectTable.rowAtPoint(e.getPoint()), objectTable.rowAtPoint(e.getPoint()));
            } else if ( (e.getSource().equals(tree)) && (e.getButton() == e.BUTTON3) ) {                     
                tree.setSelectionRow(tree.getRowForLocation(e.getPoint().x, e.getPoint().y));
                getContainer().updateTreePopupMenu();
            } else if ( (e.getSource().equals(layoutTable)) && (e.getButton() == e.BUTTON3) ) {
                if ( (layoutTable.getRowCount() > 0) && (layoutTable.rowAtPoint(e.getPoint()) != -1) ) {
                    if (layoutTable.getSelectedRows().length > 0)
                        layoutTable.removeRowSelectionInterval(0, layoutTable.getRowCount() - 1);
                    layoutTable.addRowSelectionInterval(layoutTable.rowAtPoint(e.getPoint()), layoutTable.rowAtPoint(e.getPoint()));
                }
            } else if ( (e.getSource().equals(objectLayoutTable)) && (e.getButton() == e.BUTTON3) ) {
                if ( (objectLayoutTable.getRowCount() > 0) && (objectLayoutTable.rowAtPoint(e.getPoint()) != -1) ) {
                    if (objectLayoutTable.getSelectedRows().length > 0)
                        objectLayoutTable.removeRowSelectionInterval(0, objectLayoutTable.getRowCount() - 1);
                    objectLayoutTable.addRowSelectionInterval(objectLayoutTable.rowAtPoint(e.getPoint()), objectLayoutTable.rowAtPoint(e.getPoint()));
                }
            } else if (e.getSource().equals(objectViewTable) && (e.getButton() == e.BUTTON3)) {
                CacheTableModel model = (CacheTableModel)objectViewTable.getTable().getModel();
                if ( (!model.isNoRow()) && (objectViewTable.getTable().rowAtPoint(e.getPoint()) != -1) )
                    objectViewTable.getTable().addRowSelectionInterval(objectViewTable.getTable().rowAtPoint(e.getPoint()),
                            objectViewTable.getTable().rowAtPoint(e.getPoint()));
            }
       
    }
View Full Code Here

                && (clsId != 170)
                && (clsId != 190)
                && (clsId != 539)
                && (clsId != 230)
                && (clsId != 270) ) {
            XTable objectViewTable = container.getObjectViewTable();
            CacheTableModel model = (CacheTableModel)objectViewTable.getTable().getModel();
            int selectedRowNumber = objectViewTable.getTable().getSelectedRow();
           
            //fix give all selections to Reg delete
            int[] selectedRowNumbers = objectViewTable.getTable().getSelectedRows();           

           
            if ( (selectedRowNumber != -1) && (!model.isNoRow()) ) {
                Vector values = new Vector();
                for (int i = 1; i < model.getColumnCount(); i++) {
View Full Code Here

        // add CSQL
        report_basic_sql=CSQLUtil.add(report_basic_sql, csql);  
            }
           
            if(reportViewTable==null){
              reportViewTable = new XTable(currentObject, report_basic_sql,layoutId);
            }else{
              reportViewTable.setReport_basic_sql(layoutId,report_basic_sql);
            }                      
            reportViewTable.setContainer(this);               
            reportViewTable.getTable().setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
View Full Code Here

        }
       
        public void updateObjectViewTable() {
            currentObject = ClassManager.createClass(currentObject.getClsId());
            if (objectViewTable == null) {
                objectViewTable = new XTable(currentObject);
                objectViewTable.setContainer(this);
                objectChildTable = new JXTable();
            }
            objectViewTable.enableReportOpt(false);
            objectViewTable.getTable().setComponentPopupMenu(objectTablePopupMenu);
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

    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

       
        Column column = null;
       
        Iterator componentExtIter = componentExts.iterator();
        while (componentExtIter.hasNext()) {
            ComponentExt componentExt = (ComponentExt)componentExtIter.next();
            Column tempColumn = componentExt.getColumn();
            if ( (tempColumn.getTableName().equals(tableName)) && (tempColumn.getColumnName().equals(columnName)) ) {
                column = tempColumn;
                break;
            }
        }
View Full Code Here

TOP

Related Classes of realcix20.guis.components.XTable$ImageRenderer

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.