001    package com.sptci.rwt.webui.style;
002    
003    import nextapp.echo2.app.SplitPane;
004    
005    import com.sptci.echo2.Dimensions;
006    import com.sptci.echo2.style.Background;
007    import com.sptci.echo2.style.Extent;
008    import com.sptci.echo2.style.General;
009    
010    import com.sptci.rwt.webui.MainView;
011    
012    /**
013     * The {@link nextapp.echo2.app.Style} for the primary {@link
014     * nextapp.echo2.app.SplitPane} used to layout the application {@link
015     * nextapp.echo2.app.ContentPane}.
016     *
017     * <p>&copy; Copyright 2007 <a href='http://sptci.com/' target='_new'>Sans Pareil Technologies, Inc.</a></p>
018     * @author Rakesh Vidyadharan 2007-09-30
019     * @version $Id: MainSplitPane.java 4123 2008-05-25 21:49:01Z rakesh $
020     */
021    public class MainSplitPane extends General
022    {
023      /**
024       * Initialise the style properties.
025       */
026      @Override
027      protected void init()
028      {
029        super.init();
030        setProperty( SplitPane.PROPERTY_BACKGROUND, Background.getInstance() );
031        setProperty( SplitPane.PROPERTY_SEPARATOR_POSITION,
032            Dimensions.getExtent( MainView.class, "mainSplitPane.height" ) );
033        setProperty( SplitPane.PROPERTY_SEPARATOR_WIDTH,
034            Extent.getInstance( 1, Extent.PX ) );
035      }
036    }