Package sg.edu.nus.iss.se07.main

Examples of sg.edu.nus.iss.se07.main.AppController.addCategory()


                        Logger.getLogger(TestCategory.class.getName()).log(Level.SEVERE,ex.getMessage(), ex);
                }

                Category dataObject4 = new Category("DIA", "Diary");
                try {
                        dataObjectManager.addCategory(dataObject4);
                } catch (AppException ex) {
                        Logger.getLogger(TestCategory.class.getName()).log(Level.SEVERE,ex.getMessage(), ex);
                }

                //try to creat duplicate category followed by valid category
View Full Code Here


                }

                //try to creat duplicate category followed by valid category
                Category dataObject5 = new Category("CLO", "Clothing");
                try {
                        dataObjectManager.addCategory(dataObject5);
                } catch (AppException ex) {
                        Logger.getLogger(TestCategory.class.getName()).log(Level.SEVERE,ex.getMessage(), ex);
                }

                Category dataObject6 = new Category("TEST", "Testing");
View Full Code Here

                        Logger.getLogger(TestCategory.class.getName()).log(Level.SEVERE,ex.getMessage(), ex);
                }

                Category dataObject6 = new Category("TEST", "Testing");
                try {
                        dataObjectManager.addCategory(dataObject6);
                } catch (AppException ex) {
                        Logger.getLogger(TestCategory.class.getName()).log(Level.SEVERE,ex.getMessage(), ex);
                }

                dataObjectManager = null;
View Full Code Here

                Category dataObject = new Category(id, name);
                CategoryManager dataObjectManager = new CategoryManager();

                try {
                        success = dataObjectManager.addCategory(dataObject);
                } catch (AppException ex) {
                        Logger.getLogger(AppController.class.getName()).log(Level.SEVERE, ex.getMessage(), ex);
                        throw ex;
                }
View Full Code Here

                String name = txtCategoryName.getText().trim();


                if (id.length() != 0 && name.length() != 0) {
                        try {
                                if (appController.addCategory(id, name) == true) {
                                        success = true;
                                        title = "Successfully Added Category";
                                        Message = "New Category is added Successfully.";
                                        mainForm.setLblTitle("");
                                } else {
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.