All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jclarion.clarion.KeyedClarionEvent Maven / Gradle / Ivy

/**
 * Copyright 2010, by Andrew Barnham
 *
 * The contents of this file are subject to
 * GNU Lesser General Public License (LGPL), v.3
 * http://www.gnu.org/licenses/lgpl.txt
 * 
 * Software distributed under the License is distributed on an "AS IS" basis,
 * WITHOUT WARRANTY OF ANY KIND, either express or implied.
 */
package org.jclarion.clarion;

import org.jclarion.clarion.control.AbstractControl;

public class KeyedClarionEvent extends ClarionEvent 
{

    private int keyCode;
    private int keyChar;
    private int keyState;

    public KeyedClarionEvent(int event,AbstractControl field, boolean window,
            int keyCode,int keyChar,int keyState) 
    {
        super(event, field, window);
        this.keyCode=keyCode;
        this.keyChar=keyChar;
        this.keyState=keyState;
    }

    public int getKeyCode() {
        return keyCode;
    }

    public int getKeyChar() {
        return keyChar;
    }

    public int getKeyState() {
        return keyState;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy