Examples of OprationObj


Examples of org.apache.idaeplugin.bean.OprationObj

                Method[] methods =  serCla.getDeclaredMethods();
                opeartions = new HashMap();
                if(methods.length >0){
                    for (int i = 0; i < methods.length; i++) {
                        Method method = methods[i];
                        OprationObj Operationobj = new OprationObj(method.getName(),
                                method.getReturnType().toString(),
                                new Integer(method.getParameterTypes().length),new Boolean(true));
                        opeartions.put(method.getName() ,Operationobj);
                    }
                }

                ArchiveTableModel myModel = new ArchiveTableModel(opeartions);
                JTable table = new JTable(myModel);
                tablelbl = new JLabel("Select Operation you want to publish ") ;
                add(tablelbl);
                tablelbl.setBounds(insets.left + 10, insets.top + 45, 400, 24);

                sp =new JScrollPane(table);
                add(sp);
                sp.setAutoscrolls(true);
                sp.setBounds(insets.left + 10, insets.top + 75, 550, 100);
                txtServiceName.setText("MyService" + count);
                butDone.setVisible(true);
                lblServiceNam.setVisible(true);
                txtServiceName.setVisible(true);
            catch (ClassNotFoundException e1) {
                e1.printStackTrace();
            }
            parent.reShow();

        } else if(obj == butDone){

            ArrayList ops = new ArrayList();
            Iterator opitr = opeartions.values().iterator();
            while (opitr.hasNext()) {
                OprationObj oprationObj = (OprationObj) opitr.next();
                if(oprationObj.getSelect().booleanValue()){
                    ops.add(oprationObj.getOpName());
                }
            }

            ServiceObj service= new ServiceObj(txtServiceName.getText(),fileName,ops);
            servicelsit.add(service);
View Full Code Here

Examples of org.apache.idaeplugin.bean.OprationObj

        int size = dataobjetc.size();
        datvalue = new Object[size][4];
        Iterator itr =  dataobjetc.values().iterator();
        int count =0;
        while (itr.hasNext()) {
            OprationObj oprationObj = (OprationObj) itr.next();
            datvalue[count][0]=oprationObj.getOpName();
            datvalue[count][1]=oprationObj.getReturnVale();
            datvalue[count][2]=oprationObj.getParamters();
            datvalue[count][3]=oprationObj.getSelect();
            count ++;
        }
        this.datobjs = dataobjetc;
    }
View Full Code Here

Examples of org.apache.idaeplugin.bean.OprationObj

    public boolean isCellEditable(int row, int col) {
        return col >= 3;
    }
    public void setValueAt(Object value, int row, int col) {
        OprationObj obj = (OprationObj)datobjs.get(getValueAt(row,0));
        if(col == 3){
            obj.setSelect((Boolean)value);
        }

        if (datvalue[0][col] instanceof Integer) {
            try {
                datvalue[row][col] = new Integer((String)value);
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.