KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > methodhead > shim > Link


1 /*
2  * Copyright (C) 2006 Methodhead Software LLC. All rights reserved.
3  *
4  * This file is part of TransferCM.
5  *
6  * TransferCM is free software; you can redistribute it and/or modify it under the
7  * terms of the GNU General Public License as published by the Free Software
8  * Foundation; either version 2 of the License, or (at your option) any later
9  * version.
10  *
11  * TransferCM is distributed in the hope that it will be useful, but WITHOUT ANY
12  * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
13  * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14  * details.
15  *
16  * You should have received a copy of the GNU General Public License along with
17  * TransferCM; if not, write to the Free Software Foundation, Inc., 51 Franklin St,
18  * Fifth Floor, Boston, MA 02110-1301 USA
19  */

20
21 package com.methodhead.shim;
22
23 import javax.swing.tree.DefaultMutableTreeNode JavaDoc;
24
25 /**
26  * A link in the site map.
27  */

28 public class Link
29 extends
30   DefaultMutableTreeNode JavaDoc {
31
32   // constructors /////////////////////////////////////////////////////////////
33

34   // constants ////////////////////////////////////////////////////////////////
35

36   // classes //////////////////////////////////////////////////////////////////
37

38   // methods //////////////////////////////////////////////////////////////////
39

40   // properties ///////////////////////////////////////////////////////////////
41

42   public String JavaDoc getTitle() {
43     return title_;
44   }
45
46   public void setTitle(
47     String JavaDoc title ) {
48     title_ = title;
49   }
50
51   public int getPageId() {
52     return pageId_;
53   }
54
55   public void setPageId(
56     int pageId ) {
57     pageId_ = pageId;
58   }
59
60   public String JavaDoc getAlias() {
61     return alias_;
62   }
63
64   public void setAlias(
65     String JavaDoc alias ) {
66     alias_ = alias;
67   }
68
69   public boolean getHidden() {
70     return hidden_;
71   }
72
73   public void setHidden(
74     boolean hidden ) {
75     hidden_ = hidden;
76   }
77
78   // attributes ///////////////////////////////////////////////////////////////
79

80   private String JavaDoc title_ = "";
81   private int pageId_ = 0;
82   private String JavaDoc alias_ = "";
83   private boolean hidden_ = false;
84 }
85
Popular Tags