01: /**
02: Licensed to the Apache Software Foundation (ASF) under one or more
03: contributor license agreements. See the NOTICE file distributed with
04: this work for additional information regarding copyright ownership.
05: The ASF licenses this file to You under the Apache License, Version 2.0
06: (the "License"); you may not use this file except in compliance with
07: the License. You may obtain a copy of the License at
08:
09: http://www.apache.org/licenses/LICENSE-2.0
10:
11: Unless required by applicable law or agreed to in writing, software
12: distributed under the License is distributed on an "AS IS" BASIS,
13: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: See the License for the specific language governing permissions and
15: limitations under the License.
16:
17: $Header:$
18: */package org.apache.beehive.netui.util.config.bean;
19:
20: /**
21: *
22: */
23: public class JspTagConfig {
24:
25: private static final DocType DEFAULT_DOC_TYPE = DocType.HTML4_LOOSE_QUIRKS;
26: private static final IdJavascript DEFAULT_ID_JAVASCRIPT = IdJavascript.DEFAULT;
27: private static final String DEFAULT_TREE_RENDERER_CLASS = "org.apache.beehive.netui.tags.tree.TreeRenderer";
28:
29: private DocType _docType;
30: private IdJavascript _idJavascript;
31: private String _treeImageLocation;
32: private String _treeRendererClass;
33:
34: public JspTagConfig() {
35: _docType = DEFAULT_DOC_TYPE;
36: _idJavascript = DEFAULT_ID_JAVASCRIPT;
37: _treeRendererClass = DEFAULT_TREE_RENDERER_CLASS;
38: }
39:
40: public JspTagConfig(DocType docType, IdJavascript idJavascript,
41: String treeImageLocation) {
42: this ();
43:
44: if (docType != null)
45: _docType = docType;
46:
47: if (idJavascript != null)
48: _idJavascript = idJavascript;
49:
50: _treeImageLocation = treeImageLocation;
51: }
52:
53: public JspTagConfig(DocType docType, IdJavascript idJavascript,
54: String treeImageLocation, String treeRendererClass) {
55: this (docType, idJavascript, treeImageLocation);
56:
57: if (treeRendererClass != null)
58: _treeRendererClass = treeRendererClass;
59: }
60:
61: public DocType getDocType() {
62: return _docType;
63: }
64:
65: public IdJavascript getIdJavascript() {
66: return _idJavascript;
67: }
68:
69: public String getTreeImageLocation() {
70: return _treeImageLocation;
71: }
72:
73: public String getTreeRendererClass() {
74: return _treeRendererClass;
75: }
76: }
|