KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > gjt > jclasslib > browser > config > window > IndexHolder


1 /*
2     This library is free software; you can redistribute it and/or
3     modify it under the terms of the GNU General Public
4     License as published by the Free Software Foundation; either
5     version 2 of the license, or (at your option) any later version.
6 */

7
8 package org.gjt.jclasslib.browser.config.window;
9
10 /**
11     Browser path component for an index value.
12
13     @author <a HREF="mailto:jclasslib@ej-technologies.com">Ingo Kegel</a>
14     @version $Revision: 1.1 $ $Date: 2003/08/18 08:10:15 $
15 */

16 public class IndexHolder implements PathComponent {
17
18     private int index = -1;
19
20     /**
21      * Constructor.
22      * @param index the index.
23      */

24     public IndexHolder(int index) {
25         this.index = index;
26     }
27
28     /**
29      * Constructor.
30      */

31     public IndexHolder() {
32     }
33
34     /**
35      * Get the index.
36      * @return the index.
37      */

38     public int getIndex() {
39         return index;
40     }
41
42     /**
43      * Set the index.
44      * @param index the index.
45      */

46     public void setIndex(int index) {
47         this.index = index;
48     }
49
50 }
51
Popular Tags