001 /*
002 * This file is part of the Echo Point Project. This project is a
003 * collection of Components that have extended the Echo Web Application
004 * Framework Version 3.
005 *
006 * Version: MPL 1.1
007 *
008 * The contents of this file are subject to the Mozilla Public License Version
009 * 1.1 (the "License"); you may not use this file except in compliance with
010 * the License. You may obtain a copy of the License at
011 * http://www.mozilla.org/MPL/
012 *
013 * Software distributed under the License is distributed on an "AS IS" basis,
014 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
015 * for the specific language governing rights and limitations under the
016 * License.
017 */
018 package echopoint;
019
020 import nextapp.echo.app.ImageReference;
021 import nextapp.echo.app.Component;
022
023 /**
024 * This component sets the background attribute for the body tag.
025 * This is needed in some cases when you want a background image to cover the whole page, whatever you put into it.
026 * @author MikaelS 2009-04-28
027 * @version $Id$
028 */
029 public class ApplicationBackground extends Component {
030 /** The image reference for the component. This property may be styled. */
031 public static final String PROPERTY_IMAGE = "url";
032
033 public ApplicationBackground(ImageReference image) {
034 setImage(image);
035 }
036
037 public ImageReference getImage() {
038 return (ImageReference) get( PROPERTY_IMAGE );
039 }
040
041 public void setImage(ImageReference image) {
042
043 set( PROPERTY_IMAGE, image );
044 }
045 }