001    package com.sptci.echo2.style;
002    
003    import nextapp.echo2.app.Alignment;
004    import nextapp.echo2.app.layout.GridLayoutData;
005    
006    /**
007     * The default style class for label containers.  This style is configured
008     * to render within a grid layout container.
009     *
010     * <p>Copyright 2006 Sans Pareil Technologies, Inc.</p>
011     * @author Rakesh Vidyadharan 2006-11-06
012     * @version $Id: DefaultLabel.java 3098 2007-04-22 02:53:49Z rakesh $
013     */
014    public class DefaultLabel extends Label
015    {
016      /**
017       * Initialise the style properties.  Over-ridden to set layout data for
018       * placement within grid containers.
019       */
020      @Override
021      protected void init()
022      {
023        super.init();
024    
025        GridLayoutData layoutData = getGridLayoutData();
026        layoutData.setAlignment( new Alignment( Alignment.CENTER, Alignment.LEFT ) );
027    
028        setProperty( nextapp.echo2.app.Label.PROPERTY_LAYOUT_DATA, layoutData );
029      }
030    }