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.searchtable;
017
018 import java.util.HashMap;
019 import java.util.Map;
020
021 import org.kuali.student.common.dto.Idable;
022
023 import com.google.gwt.user.client.rpc.IsSerializable;
024
025 public class ResultRow implements IsSerializable, Idable{
026 private String id;
027 private Map<String, String> columnValues = new HashMap<String, String>();
028
029 @Override
030 public String getId() {
031 return id;
032 }
033
034 @Override
035 public void setId(String id) {
036 this.id = id;
037 }
038
039 public String getValue(String columnKey) {
040 return columnValues.get(columnKey);
041 }
042
043 public void setValue(String columnKey, String value) {
044 columnValues.put(columnKey, value);
045 }
046
047 public Map<String, String> getColumnValues() {
048 return columnValues;
049 }
050 }