KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > web > jsf > navigation > PageFlowUtilities


1 /*
2  * PageFlowController.java
3  *
4  * Created on March 1, 2007, 1:12 PM
5  *
6  * To change this template, choose Tools | Template Manager
7  * and open the template in the editor.
8  */

9
10 package org.netbeans.modules.web.jsf.navigation;
11
12 import org.netbeans.modules.web.jsf.api.facesmodel.JSFConfigModel;
13 import org.openide.util.NbBundle;
14
15 /**
16  *
17  * @author joelle
18  */

19 public class PageFlowUtilities {
20     
21     private static final int SCOPE_FACESCONFIG = 1;
22     private static final int SCOPE_PROJECT = 2;
23     
24     public static final String JavaDoc LBL_SCOPE_FACESCONFIG = NbBundle.getMessage(PageFlowUtilities.class, "LBL_Scope_FaceConfig");
25     public static final String JavaDoc LBL_SCOPE_PROJECT = NbBundle.getMessage(PageFlowUtilities.class, "LBL_Scope_Project");
26    
27     private String JavaDoc currentScope;
28     
29     /** Creates a new instance of PageFlowController
30      * @param scene
31      */

32     private PageFlowUtilities( ) {
33         currentScope = LBL_SCOPE_FACESCONFIG;
34     }
35     
36     private static PageFlowUtilities instance;
37     private static JSFConfigModel configModel;
38     
39     // Accessor to get the instance. Singleton pattern
40
/**
41      *
42      * @return
43      */

44     public static PageFlowUtilities getInstance(){
45         if (instance == null){
46             instance = new PageFlowUtilities();
47         }
48         return instance;
49     }
50     
51     public String JavaDoc getCurrentScope() {
52         return currentScope;
53     }
54     
55     public void setCurrentScope(String JavaDoc currentScope) {
56         this.currentScope = currentScope;
57     }
58     
59
60 }
61
Popular Tags