001    package com.sptci.rwt.webui.style;
002    
003    import com.sptci.echo2.Dimensions;
004    import com.sptci.echo2.style.TextComponent;
005    import com.sptci.rwt.webui.ExecutorView;
006    
007    /**
008     * The default style to use for {@link nextapp.echo2.app.text.TextComponent}
009     * used to input SQL statements.
010     *
011     * <p>&copy; Copyright 2007 <a href='http://sptci.com/' target='_new'>Sans Pareil Technologies, Inc.</a></p>
012     * @author Rakesh Vidyadharan 2007-10-10
013     * @version $Id: Query.java 4123 2008-05-25 21:49:01Z rakesh $
014     */
015    public class Query extends TextComponent
016    {
017      /** Over-ridden to change dimensions. */
018      @Override
019      protected void init()
020      {
021        super.init();
022        setProperty( nextapp.echo2.app.text.TextComponent.PROPERTY_WIDTH,
023            Dimensions.getExtent( ExecutorView.class, "query.width" ) );
024      }
025    }