001    /*
002     * Apache License
003     * Version 2.0, January 2004
004     * http://www.apache.org/licenses/
005     *
006     * Copyright 2008 by chenillekit.org
007     *
008     * Licensed under the Apache License, Version 2.0 (the "License");
009     * you may not use this file except in compliance with the License.
010     * You may obtain a copy of the License at
011     *
012     * http://www.apache.org/licenses/LICENSE-2.0
013     */
014    
015    package org.chenillekit.tapestry.core.internal;
016    
017    /**
018     * @version $Id: PagerPosition.java 361 2008-11-25 13:05:14Z homburgs $
019     */
020    public enum PagerPosition
021    {
022        /**
023         * Position the pager above the paged content.
024         */
025        TOP(true, false),
026    
027        /**
028         * Position the pager below the paged content (this is the default).
029         */
030        BOTTOM(false, true),
031    
032        /**
033         * Show the pager above and below the paged content.
034         */
035        BOTH(true, true),
036    
037        /**
038         * Don't show a pager (the application will need to supply its own
039         * navigation mechanism).
040         */
041        NONE(false, false);
042    
043        private final boolean _matchTop;
044    
045        private final boolean _matchBottom;
046    
047        private PagerPosition(boolean matchTop, boolean matchBottom)
048        {
049            _matchTop = matchTop;
050            _matchBottom = matchBottom;
051        }
052    
053        public boolean isMatchBottom()
054        {
055            return _matchBottom;
056        }
057    
058        public boolean isMatchTop()
059        {
060            return _matchTop;
061        }
062    }