001    package com.sptci.echo2.style;
002    
003    /**
004     * A default style class for buttons.  This style extends {@link General}
005     * and is configured to fit in a <code>Grid</code> layout.
006     *
007     * <p>Copyright 2006 Sans Pareil Technologies, Inc.</p>
008     * @author Rakesh Vidyadharan 2006-11-06
009     * @version $Id: DefaultButton.java 3098 2007-04-22 02:53:49Z rakesh $
010     */
011    public class DefaultButton extends Button
012    {
013      /**
014       * Initialise the style properties.  Over-ridden to set the layout
015       * data for the buton.
016       */
017      @Override
018      protected void init()
019      {
020        super.init();
021    
022        setProperty( nextapp.echo2.app.Button.PROPERTY_LAYOUT_DATA, getGridLayoutData() );
023      }
024    }