01: /*
02: * Copyright 2004, 2005, 2006 Odysseus Software GmbH
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
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 de.odysseus.calyxo.panels.conf;
17:
18: import java.util.Locale;
19:
20: /**
21: * Panel configuration element.
22: *
23: * @author Christoph Beck
24: */
25: public interface PanelConfig extends NamespaceConfig {
26: /**
27: * Get panel name
28: */
29: public String getName();
30:
31: /**
32: * Find panel template path for specified locale
33: */
34: public String findTemplate(Locale locale);
35:
36: /**
37: * Find {@link ParamConfig} element by name and locale
38: */
39: public ParamConfig findParamConfig(String name, Locale locale);
40:
41: /**
42: * Find {@link PanelConfig} element by name and locale
43: */
44: public PanelConfig findPanelConfig(String name, Locale locale);
45:
46: /**
47: * Find {@link ListConfig} elements by name and locale
48: */
49: public ListConfig findListConfig(String name, Locale locale);
50:
51: }
|