1/*2 * Copyright 2000-2001,2004 The Apache Software Foundation.3 * 4 * Licensed under the Apache 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 at7 * 8 * http://www.apache.org/licenses/LICENSE-2.09 * 10 * Unless required by applicable law or agreed to in writing, software11 * 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 and14 * limitations under the License.15 */1617packageorg.apache.jetspeed.modules.layouts;
1819// Turbine Modules20import org.apache.turbine.modules.Layout;
21import org.apache.turbine.modules.ScreenLoader;
22import org.apache.turbine.util.RunData;
23import org.apache.ecs.ConcreteElement;
24import org.apache.ecs.HtmlColor;
2526/***27*/28publicclassEmptyLayoutextends Layout
29 {
30/***31 */32publicvoid doBuild( RunData data ) throws Exception
33 {
3435// Now execute the Screen portion of the page36 ConcreteElement screen = ScreenLoader.getInstance().eval ( data, data.getScreen() );
37if (screen != null)
38 data.getPage().getBody().addElement( screen );
3940// The screen should have attempted to set a Title 41// for itself, otherwise, a default title is set42 data.getPage().getTitle()
43 .addElement( data.getTitle() );
44// The screen should have attempted to set a Body bgcolor 45// for itself, otherwise, a default body bgcolor is set46 data.getPage().getBody()
47 .setBgColor(HtmlColor.white);
4849 }
5051 }