1 /** 2 * Copyright 2005-2016 The Kuali Foundation 3 * 4 * Licensed under the Educational Community License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.opensource.org/licenses/ecl2.php 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 package org.kuali.rice.krad.uif.util; 17 18 /** 19 * An object that represents a simple suggestion with a label, value, and href. For use with simple LocationSuggest 20 * widget result methods. This class is also available for extension. 21 */ 22 public class SimpleLocationSuggestObject extends SimpleSuggestObject{ 23 private String href; 24 25 /** 26 * Create SimpleLocationSuggestObject 27 * 28 * @param label the label to show for the suggestion 29 * @param value the value to insert when the label is selected 30 * @param href the href(url) to navigate to 31 */ 32 public SimpleLocationSuggestObject(String label, String value, String href) { 33 super(label, value); 34 this.href = href; 35 } 36 37 /** 38 * The href to navigate to for this suggestion 39 * 40 * @return the href(url) 41 */ 42 public String getHref() { 43 return href; 44 } 45 46 /** 47 * Set the href 48 * 49 * @param href 50 */ 51 public void setHref(String href) { 52 this.href = href; 53 } 54 }