001    package com.sptci.rwt.webui.style;
002    
003    import nextapp.echo2.app.HttpImageReference;
004    import nextapp.echo2.app.ImageReference;
005    
006    import com.sptci.echo2.style.Label;
007    import com.sptci.echo2.style.Extent;
008    
009    /**
010     * The {@link nextapp.echo2.app.Style} for the primary {@link
011     * nextapp.echo2.app.Label} component used to anchor the
012     * {@link echopointng.PopUp} component used to trigger a
013     * save query action.
014     *
015     * <p>&copy; Copyright 2007 <a href='http://sptci.com/' target='_new'>Sans Pareil Technologies, Inc.</a></p>
016     * @author Rakesh Vidyadharan 2007-10-12
017     * @version $Id: SaveLabel.java 4123 2008-05-25 21:49:01Z rakesh $
018     */
019    public class SaveLabel extends Label
020    {
021      /** The image to use as the icon for this label. */
022      private static final ImageReference ICON = new HttpImageReference(
023          "icons/save.png", Extent.getInstance( 20 ), Extent.getInstance( 20 ) );
024    
025      /** Over-ridden to add icon information. */
026      @Override
027      protected void init()
028      {
029        super.init();
030        
031        setProperty( nextapp.echo2.app.Label.PROPERTY_ICON, ICON );
032        setProperty( nextapp.echo2.app.Label.PROPERTY_ICON_TEXT_MARGIN,
033            Extent.getInstance( 5 ) );
034      }
035    }