001    package echopoint.able;
002    /* 
003     * This file is part of the Echo Point Project.  This project is a collection
004     * of Components that have extended the Echo Web Application Framework.
005     *
006     * Version: MPL 1.1/GPL 2.0/LGPL 2.1
007     *
008     * The contents of this file are subject to the Mozilla Public License Version
009     * 1.1 (the "License"); you may not use this file except in compliance with
010     * the License. You may obtain a copy of the License at
011     * http://www.mozilla.org/MPL/
012     *
013     * Software distributed under the License is distributed on an "AS IS" basis,
014     * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
015     * for the specific language governing rights and limitations under the
016     * License.
017     *
018     * Alternatively, the contents of this file may be used under the terms of
019     * either the GNU General Public License Version 2 or later (the "GPL"), or
020     * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
021     * in which case the provisions of the GPL or the LGPL are applicable instead
022     * of those above. If you wish to allow use of your version of this file only
023     * under the terms of either the GPL or the LGPL, and not to allow others to
024     * use your version of this file under the terms of the MPL, indicate your
025     * decision by deleting the provisions above and replace them with the notice
026     * and other provisions required by the GPL or the LGPL. If you do not delete
027     * the provisions above, a recipient may use your version of this file under
028     * the terms of any one of the MPL, the GPL or the LGPL.
029     */
030    import nextapp.echo.app.Extent;
031    
032    /**
033     * A <code>Heightable</code> is a component that can have a a fixed height 
034     * in some specified units.  These dimensions
035     * are acheived done via setting Extents.
036     * <p>  
037     * If the Extent properties, are set to either Integer.MAX_VALUE 
038     * or Integer.MIN_VALUE, then it will not be taken into effect 
039     * when rendering the component.  Also if they are null, then
040     * then it will not be taken into effect when rendering the component  
041     * <p>
042     */
043    public interface Heightable extends Delegateable {
044    
045            public static final String PROPERTY_HEIGHT = "height";
046    
047            
048        /**
049         * Retutns the height extent of the <code>Heightable</code>.
050         * 
051         * @return the height extent of the <code>Heightable</code>.
052         */
053        public Extent getHeight();
054        
055            /**
056             * Sets the height extent of the <code>Heightable</code>.
057             * 
058             * @param newValue - the new height extent of the <code>Heightable</code>
059             */
060            public void setHeight(Extent newValue);
061    }