001/* [{
002Copyright 2007, 2008 Nicolas Carranza <nicarran at gmail.com>
003
004This file is part of jpen.
005
006jpen is free software: you can redistribute it and/or modify
007it under the terms of the GNU Lesser General Public License as published by
008the Free Software Foundation, either version 3 of the License,
009or (at your option) any later version.
010
011jpen is distributed in the hope that it will be useful,
012but WITHOUT ANY WARRANTY; without even the implied warranty of
013MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
014GNU Lesser General Public License for more details.
015
016You should have received a copy of the GNU Lesser General Public License
017along with jpen.  If not, see <http://www.gnu.org/licenses/>.
018}] */
019package jpen;
020
021import java.util.Arrays;
022import java.util.Collections;
023import java.util.List;
024
025public class PScroll
026        extends TypedValuedClass<PScroll.Type, Integer>
027        implements java.io.Serializable {
028        public static final long serialVersionUID=1l;
029
030        public enum Type {
031                UP, DOWN, CUSTOM;
032                
033                public static final List<Type> ALL_VALUES=Collections.unmodifiableList(Arrays.asList(values()));
034                public static final List<Type> VALUES=TypedClass.createStandardTypes(ALL_VALUES);
035        }
036
037        public PScroll(int typeNumber, int value) {
038                super(typeNumber, value);
039        }
040
041        @Override
042        final List<Type> getAllTypes() {
043                return Type.ALL_VALUES;
044        }
045}