001    package com.sptci.rwt.webui.style;
002    
003    import nextapp.echo2.app.Alignment;
004    import nextapp.echo2.app.Label;
005    import nextapp.echo2.app.layout.GridLayoutData;
006    
007    import com.sptci.echo2.style.BoldLabel;
008    
009    /**
010     * The style class for {@link nextapp.echo2.app.Label} components that are
011     * used to display title labels for meta data fields.
012     *
013     * <p>Copyright 2007 <a href='http://sptci.com/' target='_new'>Sans Pareil Technologies, Inc.</a></p>
014     * @author Rakesh Vidyadharan 2007-10-07
015     * @version $Id: GridTitleLabel.java 4123 2008-05-25 21:49:01Z rakesh $
016     */
017    public class GridTitleLabel extends BoldLabel
018    {
019      /**
020       * Initialise the style properties.
021       */
022      @Override
023      protected void init()
024      {
025        super.init();
026        
027        GridLayoutData layoutData = new GridLayoutData();
028        layoutData.setAlignment( Alignment.ALIGN_RIGHT );
029        setProperty( Label.PROPERTY_LAYOUT_DATA, layoutData );
030      }
031    }