01: /*
02: * $Id: MarkupInheritanceBaseBase_11.java 458984 2006-02-03 09:51:16Z jdonnerstag $
03: * $Revision: 458984 $
04: * $Date: 2006-02-03 10:51:16 +0100 (Fri, 03 Feb 2006) $
05: *
06: * ====================================================================
07: * Licensed under the Apache License, Version 2.0 (the "License");
08: * you may not use this file except in compliance with the License.
09: * You may obtain a copy of the License at
10: *
11: * http://www.apache.org/licenses/LICENSE-2.0
12: *
13: * Unless required by applicable law or agreed to in writing, software
14: * distributed under the License is distributed on an "AS IS" BASIS,
15: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16: * See the License for the specific language governing permissions and
17: * limitations under the License.
18: */
19: package wicket.markup;
20:
21: import wicket.AttributeModifier;
22: import wicket.markup.html.WebMarkupContainer;
23: import wicket.markup.html.WebPage;
24: import wicket.markup.html.basic.Label;
25: import wicket.model.Model;
26:
27: /**
28: */
29: public class MarkupInheritanceBaseBase_11 extends WebPage {
30: private static final long serialVersionUID = 1L;
31:
32: /**
33: * Construct.
34: *
35: */
36: public MarkupInheritanceBaseBase_11() {
37: WebMarkupContainer css = new WebMarkupContainer("css");
38: css.add(new AttributeModifier("src", true, new Model(
39: "myStyle.css")));
40: add(css);
41:
42: add(new Label("label1", "base label 1"));
43: add(new Label("label2", "base label 2"));
44: }
45: }
|