Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
HeaderNavigation |
|
| 1.0;1 |
1 | /* | |
2 | * Copyright 2006-2008 The Kuali Foundation | |
3 | * | |
4 | * Licensed under the Educational Community License, Version 2.0 (the "License"); | |
5 | * you may not use this file except in compliance with the License. | |
6 | * You may obtain a copy of the License at | |
7 | * | |
8 | * http://www.opensource.org/licenses/ecl2.php | |
9 | * | |
10 | * Unless required by applicable law or agreed to in writing, software | |
11 | * distributed under the License is distributed on an "AS IS" BASIS, | |
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
13 | * See the License for the specific language governing permissions and | |
14 | * limitations under the License. | |
15 | */ | |
16 | package org.kuali.rice.kns.datadictionary; | |
17 | ||
18 | import java.io.Serializable; | |
19 | ||
20 | /** | |
21 | The headerNavigation element defines a set of additional | |
22 | tabs which will appear on the document. | |
23 | * | |
24 | * The headerNavigationTab defines an additional tab which | |
25 | will appear on the document. | |
26 | ||
27 | */ | |
28 | public class HeaderNavigation extends DataDictionaryDefinitionBase implements Serializable { | |
29 | private static final long serialVersionUID = 4317341111287854436L; | |
30 | ||
31 | protected String headerTabMethodToCall; | |
32 | protected String headerTabNavigateTo; | |
33 | protected String headerTabDisplayName; | |
34 | protected HelpDefinition helpDefinition; | |
35 | 0 | protected boolean disabled = false; |
36 | ||
37 | 0 | public HeaderNavigation() {} |
38 | ||
39 | 0 | public HeaderNavigation(String headerTabNavigateTo, String headerTabDisplayName) { |
40 | 0 | this.headerTabNavigateTo = headerTabNavigateTo; |
41 | 0 | this.headerTabDisplayName = headerTabDisplayName; |
42 | 0 | } |
43 | ||
44 | /** | |
45 | * Gets the navigationKey attribute. | |
46 | * | |
47 | * @return Returns the navigationKey. | |
48 | */ | |
49 | public String getHeaderTabMethodToCall() { | |
50 | 0 | return headerTabMethodToCall; |
51 | } | |
52 | ||
53 | /** | |
54 | * Sets the navigationKey attribute value. | |
55 | * | |
56 | * @param navigationKey The navigationKey to set. | |
57 | */ | |
58 | public void setHeaderTabMethodToCall(String navigationKey) { | |
59 | 0 | this.headerTabMethodToCall = navigationKey; |
60 | 0 | } |
61 | ||
62 | /** | |
63 | * Gets the navigationStyle attribute. | |
64 | * | |
65 | * @return Returns the navigationStyle. | |
66 | */ | |
67 | public String getHeaderTabDisplayName() { | |
68 | 0 | return headerTabDisplayName; |
69 | } | |
70 | ||
71 | /** | |
72 | * The displayName element is the name of the additional tab. | |
73 | */ | |
74 | public void setHeaderTabDisplayName(String headerTabDisplayName) { | |
75 | 0 | this.headerTabDisplayName = headerTabDisplayName; |
76 | 0 | } |
77 | ||
78 | /** | |
79 | * Gets the suffix attribute. | |
80 | * | |
81 | * @return Returns the suffix. | |
82 | */ | |
83 | public String getHeaderTabNavigateTo() { | |
84 | 0 | return headerTabNavigateTo; |
85 | } | |
86 | ||
87 | public HelpDefinition getHelpDefinition() { | |
88 | 0 | return helpDefinition; |
89 | } | |
90 | ||
91 | /** | |
92 | * The pageHelp element provides the keys to | |
93 | obtain a help description from the database. | |
94 | ||
95 | On document JSP pages, a help icon may be rendered. If this tag is specified, then | |
96 | the filename of this page will be located in the value of the parameter specified by the namespace, detail type, and name. | |
97 | ||
98 | The value of the parameter is relative to the value of the "externalizable.help.url" property in KualiConfigurationService (see KualiHelpAction). | |
99 | parameterNamespace: namespace of the parameter that has the path to the help page | |
100 | parameterName: name of the parameter that has the path to the help page | |
101 | parameterDetailType: detail type of the parameter that has the path to the help page | |
102 | */ | |
103 | public void setHelpDefinition(HelpDefinition helpDefinition) { | |
104 | 0 | this.helpDefinition = helpDefinition; |
105 | 0 | } |
106 | ||
107 | /** | |
108 | * The navigateTo element is the forward name in the struts-config file. | |
109 | */ | |
110 | public void setHeaderTabNavigateTo(String suffix) { | |
111 | 0 | this.headerTabNavigateTo = suffix; |
112 | 0 | } |
113 | ||
114 | public boolean isDisabled() { | |
115 | 0 | return disabled; |
116 | } | |
117 | ||
118 | public void setDisabled(boolean disabled) { | |
119 | 0 | this.disabled = disabled; |
120 | 0 | } |
121 | ||
122 | /** | |
123 | * @see org.kuali.rice.kns.datadictionary.DataDictionaryDefinition#completeValidation(java.lang.Class, java.lang.Class) | |
124 | */ | |
125 | public void completeValidation(Class rootBusinessObjectClass, Class otherBusinessObjectClass) { | |
126 | // No real validation to be done here other than perhaps checking to be | |
127 | // sure that the security workgroup is a valid workgroup. | |
128 | 0 | } |
129 | } |