Package org.spw.controller

Examples of org.spw.controller.OptionValueController


     * load an option table
     * option = name of the option
     * noneInserted = add the "None" option first
     */
    private Option[] loadOptions(String option, boolean noneInserted) {
        OptionValueController ctrl = new OptionValueController();
        List<OptionValue> list = ctrl.getOptionValueByName(option);
       
        int idx = list.size();
        if (noneInserted) idx++; //+1 if the "none" must be inserted
        Option[] options = new Option[idx];
        if (noneInserted){
View Full Code Here


    }
   
    public String buttonDelete_action() {
        RowKey rk = tableRowGroup1.getRowKey();
        if (rk != null) {
            OptionValueController  ctrl = new OptionValueController();
            OptionValue optionValue = (OptionValue)list.getObject(rk);
            ctrl.delete(optionValue);
        }
        list.refreshList((String) optionName.getSelected());

        return null;
    }
View Full Code Here

        return (RequestBean1)getBean("RequestBean1");
    }

    public String buttonAdd_action() {
        // Persist the new object
        OptionValueController ctrl = new OptionValueController();
        OptionValue object = getSessionBean1().getOptionValue();
        ctrl.create(object);
       
        return "success";
    }
View Full Code Here

        return (RequestBean1)getBean("RequestBean1");
    }

    public String buttonChange_action() {
        // Persist the new object
        OptionValueController ctrl = new OptionValueController();
        OptionValue object = getSessionBean1().getOptionValue();
        ctrl.update(object);
       
        return "success";
    }
View Full Code Here

        setList(aList);       
    }
   
    public void refreshList(String option) {
        aList.clear();
        OptionValueController ctrl = new OptionValueController();
        aList.addAll(ctrl.getOptionValueByName(option));
    }
View Full Code Here

    }
   
    public String buttonDelete_action() {
        RowKey rk = tableRowGroup1.getRowKey();
        if (rk != null) {
            OptionValueController  ctrl = new OptionValueController();
            OptionValue optionValue = (OptionValue)list.getObject(rk);
            ctrl.delete(optionValue);
        }
        list.refreshList((String) optionName.getSelected());

        return null;
    }
View Full Code Here

        return (RequestBean1)getBean("RequestBean1");
    }

    public String buttonAdd_action() {
        // Persist the new object
        OptionValueController ctrl = new OptionValueController();
        OptionValue object = getSessionBean1().getOptionValue();
        ctrl.create(object);
       
        return "success";
    }
View Full Code Here

        return (RequestBean1)getBean("RequestBean1");
    }

    public String buttonChange_action() {
        // Persist the new object
        OptionValueController ctrl = new OptionValueController();
        OptionValue object = getSessionBean1().getOptionValue();
        ctrl.update(object);
       
        return "success";
    }
View Full Code Here

        setList(aList);       
    }
   
    public void refreshList(String option) {
        aList.clear();
        OptionValueController ctrl = new OptionValueController();
        aList.addAll(ctrl.getOptionValueByName(option));
    }
View Full Code Here

TOP

Related Classes of org.spw.controller.OptionValueController

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.