package com.amos.project4.views;

import com.amos.project4.models.AbstractViewModel;

public class SearchParameters extends AbstractViewModel {

	public SearchParameters() {
		super();
	}
	public SearchParameters(int search_cat, String search_text) {
		super();
		this.search_cat = search_cat;
		this.search_text = search_text;
	}
	private int search_cat = 1;
	private String search_text ;
	
	public int getSearch_cat() {
		return search_cat;
	}
	public void setSearchParameters(int search_cat,String search_text) {
		this.search_cat = search_cat;
		this.search_text = search_text;
		this.firePropertyChange("NEW SEARCH", this, this);
	}
	public String getSearch_text() {
		if(search_text == null || search_text.equalsIgnoreCase("")){
			return "%";
		}
		return search_text;
	}
}

@@ -1,8 +1,764 @@
+/*%0A * %0A * This file is part of the software project %22Social Media and Datev%22.%0A *%0A * This program is free software: you can redistribute it and/or modify%0A * it under the terms of the GNU Affero General Public License as%0A * published by the Free Software Foundation, either version 3 of the%0A * License, or (at your option) any later version.%0A *%0A * This program is distributed in the hope that it will be useful,%0A * but WITHOUT ANY WARRANTY; without even the implied warranty of%0A * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the%0A * GNU Affero General Public License for more details.%0A *%0A * You should have received a copy of the GNU Affero General Public%0A * License along with this program. If not, see%0A * %3Chttp://www.gnu.org/licenses/%3E.%0A */%0A %0A
 package 

Update SearchParameters.java