001 package com.sptci.echo2;
002
003 import nextapp.echo2.app.Row;
004
005 /**
006 * A standard view component that displays the SPT logo and a configurable
007 * title label. You should specifiy the text for the label by setting the
008 * <code>styleName</code> for based on {@link #LABEL_STYLE} in your
009 * stylesheet instance. Following the usual practice, localised string
010 * properties must be configured for both <code>label</code> and
011 * <code>tooltip</code> for {@link #LABEL_STYLE}.
012 *
013 * <p>Copyright 2007 Sans Pareil Technologies, Inc.</p>
014 * @see Logo
015 * @author Rakesh Vidyadharan 2007-04-25
016 * @version $Id: Header.java 3271 2007-05-15 02:07:06Z rakesh $
017 */
018 public class Header extends Row
019 {
020 /**
021 * The name of the style that is assigned to the label displayed in the
022 * header.
023 */
024 public static final String LABEL_STYLE =
025 Header.class.getName() + ".heading";
026
027 /**
028 * Create a new instance of the component.
029 *
030 * @see Logo
031 * @see Utilities#createLabel( String, String, String )
032 */
033 public Header()
034 {
035 super();
036 add( new Logo() );
037 add( Utilities.createLabel( getClass().getName(), "heading", LABEL_STYLE ) );
038 }
039 }