KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > services > portal > model > PageReference


1 /***************************************************************************
2  * Copyright 2001-2003 The eXo Platform SARL All rights reserved. *
3  * Please look at license.txt in info directory for more license detail. *
4  **************************************************************************/

5 package org.exoplatform.services.portal.model;
6
7 /**
8  * @author Tuan Nguyen (tuan08@users.sourceforge.net)
9  * @since Aug 11, 2004
10  * @version $Id: PageReference.java,v 1.1 2004/08/12 01:48:49 tuan08 Exp $
11  */

12 public class PageReference {
13   private String JavaDoc type;
14   private boolean visible;
15   private String JavaDoc pageReference;
16
17   public PageReference() {
18     visible = true ;
19     type = "text/xhtml" ;
20   }
21   
22   public PageReference(PageReference pref) {
23     type = pref.getType() ;
24     visible = pref.isVisible() ;
25     pageReference = pref.getPageReference() ;
26   }
27   
28   public String JavaDoc getPageReference() {
29     return pageReference;
30   }
31
32   public void setPageReference(String JavaDoc pageReference) {
33     this.pageReference = pageReference;
34   }
35
36   public String JavaDoc getType() {
37     return type;
38   }
39
40   public void setType(String JavaDoc type) {
41     this.type = type;
42   }
43
44   public boolean isVisible() {
45     return visible;
46   }
47
48   public void setVisible(boolean visibility) {
49     this.visible = visibility;
50   }
51 }
Popular Tags