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: package org.apache.wicket.markup;
18:
19: /**
20: * To be implemented by Components which walks up the component tree until a
21: * Page or Panel and tries to find a component with a matching wicket id if the
22: * component itself does not contain it.
23: * <p>
24: * Note: MarkupContainer.isTransparent() in combination with ParentResolver
25: * tries to resolve the wicket id with the parent only and shall be used to
26: * implement transparent containers.
27: *
28: * @see org.apache.wicket.markup.resolver.ScopedComponentResolver
29: * @see org.apache.wicket.MarkupContainer#isTransparentResolver()
30: * @see org.apache.wicket.markup.resolver.ParentResolver
31: *
32: * @author Christian Essl
33: * @author Juergen Donnerstag
34: */
35: public interface IScopedComponent {
36: /**
37: * @return true, if component shall try its parents to resolve the component
38: * if the component itself does not contain it.
39: */
40: boolean isRenderableInSubContainers();
41: }
|