View Javadoc
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  	private	boolean			flipFlop = false;
23  	private	boolean			showInactive = false;
24  	private	Set				newSet = new Set();
25  	private	List<Set>		setsToDelete;
26  	private	String			setNameToDelete;
27  	private	Set				editSet = null;
28  	
29  	public SetManForm() {
30  	}
31  
32  	public	BSAccountUserWebSession	getUserWebSession() { return(userWebSession); }
33  	public	void		setUserWebSession(BSAccountUserWebSession us) { userWebSession = us; }
34  
35  	public	List<Set>		getSets() { return(sets); }
36  	
37  	public	void		setSets(List<Set> s) {
38  		this.sets = s;
39  		this.setsToDelete = s;
40  	}
41  
42  	public	int			getSetsCount() { return(sets.size()); }
43  	public	boolean		getFlipFlop() { flipFlop = !flipFlop; return(flipFlop); }
44  	
45  	public	Set			getNewSet() { return(newSet); }
46  	public	void		setNewSet(Set s) { newSet = s; }
47  
48  	/**
49  	 * @return the editSet
50  	 */
51  	public Set getEditSet() {
52  		return editSet;
53  	}
54  
55  	/**
56  	 * @param editSet the editSet to set
57  	 */
58  	public void setEditSet(Set editSet) {
59  		this.editSet = editSet;
60  	}
61  
62  	public	List<Set>	getSetsToDelete() { return(setsToDelete); }
63  
64  	public	String		getSetNameToDelete() { return(setNameToDelete); }
65  	public	void		setSetNameToDelete(String s) { setNameToDelete = s; }
66  
67  	/**
68  	 * @return the showInactive
69  	 */
70  	public boolean isShowInactive() { return showInactive; }
71  
72  	/**
73  	 * @param showInactive the showInactive to set
74  	 */
75  	public void setShowInactive(boolean showInactive) { this.showInactive = showInactive; }
76  
77  	
78  }