Coverage Report - com.buckosoft.PicMan.web.SetManForm
 
Classes in this File Line Coverage Branch Coverage Complexity
SetManForm
0%
0/24
0%
0/2
1
 
 1  
 /******************************************************************************
 2  
  * SetManForm.java - A bean to wrap SetMan in a form friendly package
 3  
  * 
 4  
  * PicMan - The BuckoSoft Picture Manager in Java
 5  
  * Copyright(c) 2005 - Dick Balaska
 6  
  * 
 7  
  */
 8  
 package com.buckosoft.PicMan.web;
 9  
 
 10  
 import java.util.List;
 11  
 
 12  
 import com.buckosoft.BSAccount.web.BSAccountUserWebSession;
 13  
 import com.buckosoft.PicMan.domain.Set;
 14  
 
 15  
 /** A bean to wrap SetMan in a form friendly package
 16  
  * @author Dick Balaska
 17  
  */
 18  
 public class SetManForm {
 19  
 
 20  
         private List<Set>                sets;
 21  
         private        BSAccountUserWebSession        userWebSession;
 22  0
         private        boolean                        flipFlop = false;
 23  0
         private        boolean                        showInactive = false;
 24  0
         private        Set                                newSet = new Set();
 25  
         private        List<Set>                setsToDelete;
 26  
         private        String                        setNameToDelete;
 27  0
         private        Set                                editSet = null;
 28  
         
 29  0
         public SetManForm() {
 30  0
         }
 31  
 
 32  0
         public        BSAccountUserWebSession        getUserWebSession() { return(userWebSession); }
 33  0
         public        void                setUserWebSession(BSAccountUserWebSession us) { userWebSession = us; }
 34  
 
 35  0
         public        List<Set>                getSets() { return(sets); }
 36  
         
 37  
         public        void                setSets(List<Set> s) {
 38  0
                 this.sets = s;
 39  0
                 this.setsToDelete = s;
 40  0
         }
 41  
 
 42  0
         public        int                        getSetsCount() { return(sets.size()); }
 43  0
         public        boolean                getFlipFlop() { flipFlop = !flipFlop; return(flipFlop); }
 44  
         
 45  0
         public        Set                        getNewSet() { return(newSet); }
 46  0
         public        void                setNewSet(Set s) { newSet = s; }
 47  
 
 48  
         /**
 49  
          * @return the editSet
 50  
          */
 51  
         public Set getEditSet() {
 52  0
                 return editSet;
 53  
         }
 54  
 
 55  
         /**
 56  
          * @param editSet the editSet to set
 57  
          */
 58  
         public void setEditSet(Set editSet) {
 59  0
                 this.editSet = editSet;
 60  0
         }
 61  
 
 62  0
         public        List<Set>        getSetsToDelete() { return(setsToDelete); }
 63  
 
 64  0
         public        String                getSetNameToDelete() { return(setNameToDelete); }
 65  0
         public        void                setSetNameToDelete(String s) { setNameToDelete = s; }
 66  
 
 67  
         /**
 68  
          * @return the showInactive
 69  
          */
 70  0
         public boolean isShowInactive() { return showInactive; }
 71  
 
 72  
         /**
 73  
          * @param showInactive the showInactive to set
 74  
          */
 75  0
         public void setShowInactive(boolean showInactive) { this.showInactive = showInactive; }
 76  
 
 77  
         
 78  
 }