001/**
002 * Get more info at : www.jrebirth.org .
003 * Copyright JRebirth.org © 2011-2016
004 * Contact : sebastien.bordes@jrebirth.org
005 *
006 * Licensed under the Apache License, Version 2.0 (the "License");
007 * you may not use this file except in compliance with the License.
008 * You may obtain a copy of the License at
009 *
010 *     http://www.apache.org/licenses/LICENSE-2.0
011 *
012 * Unless required by applicable law or agreed to in writing, software
013 * distributed under the License is distributed on an "AS IS" BASIS,
014 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
015 * See the License for the specific language governing permissions and
016 * limitations under the License.
017 */
018package org.jrebirth.af.api.ui.annotation.type;
019
020import javafx.event.EventType;
021import javafx.scene.input.ScrollEvent;
022
023/**
024 * The Scroll event type.<br />
025 * The scroll type will be appended to method name to use.
026 */
027public enum Scroll implements EnumEventType {
028
029    /** Any Scroll Event. */
030    Any(ScrollEvent.ANY),
031
032    /** Scroll started event. */
033    Started(ScrollEvent.SCROLL_STARTED),
034
035    /** Scroll event. */
036    Rotate(ScrollEvent.SCROLL),
037
038    /** Scroll finished event. */
039    Finished(ScrollEvent.SCROLL_FINISHED);
040
041    /** The JavaFX internal api name. */
042    private EventType<?> eventType;
043
044    /**
045     * Default constructor used to link the apiName.
046     *
047     * @param eventType the javafx event type
048     */
049    private Scroll(final EventType<?> eventType) {
050        this.eventType = eventType;
051    }
052
053    /**
054     * {@inheritDoc}
055     */
056    @Override
057    public EventType<?> eventType() {
058        return this.eventType;
059    }
060
061}