KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > opensymphony > webwork > util > ListEntry


1 /*
2  * Copyright (c) 2002-2003 by OpenSymphony
3  * All rights reserved.
4  */

5 /*
6  * Created on 6/09/2003
7  *
8  */

9 package com.opensymphony.webwork.util;
10
11
12 /**
13  * @author CameronBraid
14  */

15 public class ListEntry {
16     //~ Instance fields ////////////////////////////////////////////////////////
17

18     final private Object JavaDoc key;
19     final private Object JavaDoc value;
20     final private boolean isSelected;
21
22     //~ Constructors ///////////////////////////////////////////////////////////
23

24     public ListEntry(Object JavaDoc key, Object JavaDoc value, boolean isSelected) {
25         this.key = key;
26         this.value = value;
27         this.isSelected = isSelected;
28     }
29
30     //~ Methods ////////////////////////////////////////////////////////////////
31

32     public boolean getIsSelected() {
33         return isSelected;
34     }
35
36     public Object JavaDoc getKey() {
37         return key;
38     }
39
40     public Object JavaDoc getValue() {
41         return value;
42     }
43 }
44
Popular Tags