KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sslexplorer > core > DefaultPanel


1 /*
2  * SSL-Explorer
3  *
4  * Copyright (C) 2003-2006 3SP LTD. All Rights Reserved
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License
8  * as published by the Free Software Foundation; either version 2 of
9  * the License, or (at your option) any later version.
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public
16  * License along with this program; if not, write to the Free Software
17  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18  */

19             
20 package com.sslexplorer.core;
21
22 import javax.servlet.http.HttpServletRequest JavaDoc;
23 import javax.servlet.http.HttpServletResponse JavaDoc;
24
25
26 /**
27  * Default implementation of an {@link com.sslexplorer.core.AbstractPanel}
28  * that is always 'available'.
29  *
30  * @author Brett Smith <a HREF="mailto: brett@3sp.com">&lt;brett@3sp.com&gt;</a>
31  */

32 public class DefaultPanel extends AbstractPanel {
33     
34     /**
35      * Main layout
36      */

37     public final static String JavaDoc MAIN_LAYOUT = "main";
38     
39     /**
40      * Popup layout
41      */

42     public final static String JavaDoc POPUP_LAYOUT = "popup";
43
44     /**
45      * Constructor.
46      *
47      * @param id panel id
48      * @param placement placement
49      * @param weight weight
50      * @param includePath include path
51      * @param includeAttribute include attribute
52      */

53     public DefaultPanel(String JavaDoc id, int placement, int weight, String JavaDoc includePath, String JavaDoc includeAttribute) {
54         this(id, placement, weight, includePath, includeAttribute, "navigation");
55     }
56     /**
57      * Constructor.
58      *
59      * @param id panel id
60      * @param placement placement
61      * @param weight weight
62      * @param includePath include path
63      * @param includeAttribute include attribute
64      * @param bundle bundle
65      */

66     public DefaultPanel(String JavaDoc id, int placement, int weight, String JavaDoc includePath, String JavaDoc includeAttribute, String JavaDoc bundle) {
67         super(id, placement, weight, includePath, includeAttribute, bundle, true, true, false, false);
68     }
69
70     /**
71      * Constructor.
72      *
73      * @param id panel id
74      * @param placement placement
75      * @param weight weight
76      * @param includePath include path
77      * @param includeAttribute include attribute
78      * @param bundle bundle
79      * @param closeable closeable
80      */

81     public DefaultPanel(String JavaDoc id, int placement, int weight, String JavaDoc includePath, String JavaDoc includeAttribute, String JavaDoc bundle, boolean closeable) {
82         super(id, placement, weight, includePath, includeAttribute, bundle, true, closeable, false, false);
83     }
84
85     /**
86      * Constructor.
87      *
88      * @param id panel id
89      * @param placement placement
90      * @param weight weight
91      * @param includePath include path
92      * @param includeAttribute include attribute
93      * @param bundle bundle
94      * @param minimizable minimizable
95      * @param closeable closeable
96      * @param dragable dragable
97      * @param droppable droppable
98      */

99     public DefaultPanel(String JavaDoc id, int placement, int weight, String JavaDoc includePath, String JavaDoc includeAttribute, String JavaDoc bundle, boolean minimizable, boolean closeable, boolean dragable, boolean droppable) {
100         super(id, placement, weight, includePath, includeAttribute, bundle, minimizable, closeable, dragable, droppable);
101     }
102
103     /* (non-Javadoc)
104      * @see com.sslexplorer.core.Panel#isAvailable(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
105      */

106     public boolean isAvailable(HttpServletRequest JavaDoc request, HttpServletResponse JavaDoc response, String JavaDoc layout) {
107         return true;
108     }
109
110 }
111
Popular Tags