001 /**
002 * Copyright 2010 The Kuali Foundation Licensed under the
003 * Educational Community License, Version 2.0 (the "License"); you may
004 * not use this file except in compliance with the License. You may
005 * obtain a copy of the License at
006 *
007 * http://www.osedu.org/licenses/ECL-2.0
008 *
009 * Unless required by applicable law or agreed to in writing,
010 * software distributed under the License is distributed on an "AS IS"
011 * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
012 * or implied. See the License for the specific language governing
013 * permissions and limitations under the License.
014 */
015
016 package org.kuali.student.common.ui.client.widgets.search;
017
018 import org.kuali.student.common.ui.client.widgets.searchtable.ResultRow;
019
020 public class SelectedResults {
021 private String displayKey;
022 private String returnKey;
023 private ResultRow resultRow;
024
025 public SelectedResults(String resultReturnKey, String resultDisplayKey) {
026 displayKey = resultReturnKey;
027 returnKey = resultDisplayKey;
028 }
029
030 public SelectedResults(String resultReturnKey, String resultDisplayKey, ResultRow row) {
031 displayKey = resultReturnKey;
032 returnKey = resultDisplayKey;
033 this.resultRow = row;
034 }
035
036 public String getDisplayKey() {
037 return displayKey;
038 }
039
040 public String getReturnKey() {
041 return returnKey;
042 }
043
044 public void setResultRow(ResultRow resultRow) {
045 this.resultRow = resultRow;
046 }
047
048 public ResultRow getResultRow() {
049 return resultRow;
050 }
051 }