1 /*-------------------------------------------------------------------------- 2 * Copyright 2007 utgenome.org 3 * 4 * Licensed under the Apache 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.apache.org/licenses/LICENSE-2.0 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 //-------------------------------------- 17 // UTGB Common Project 18 // 19 // Value.java 20 // Since: 2007/04/03 21 // 22 // $Date$ 23 // $URL$ 24 // $Author$ 25 //-------------------------------------- 26 package org.utgenome.gwt.utgb.client.db; 27 28 import com.google.gwt.user.client.rpc.IsSerializable; 29 30 /** 31 * Add this Value class to the ValueDomain 32 * in order to set the value domain of a input form. 33 * @author leo 34 * 35 */ 36 public class Value implements IsSerializable 37 { 38 String label = null; 39 String value = null; 40 41 public Value() {} 42 public Value(String value) 43 { 44 this.label = value; 45 this.value = value; 46 } 47 public Value(String label, String value) 48 { 49 this.label = label; 50 this.value = value; 51 } 52 53 public String getLabel() { 54 return label; 55 } 56 57 public void setLabel(String label) { 58 this.label = label; 59 } 60 61 public String getValue() { 62 return value; 63 } 64 65 public void setValue(String value) { 66 this.value = value; 67 } 68 69 } 70 71 72 73