Package net.rim.device.api.system

Examples of net.rim.device.api.system.KeyListener


        }

        if( _keyMonitor == null ) {
           
            //Anonymous implementation of the net.rim.device.api.system.KeyListener interface
            _keyMonitor = new KeyListener() {
               
                /**
                * @see net.rim.device.api.system.KeyListener#keyDown(int, int)
                */
                public boolean keyDown( int keycode, int time ) {
View Full Code Here


            _keyType = keyType;
        }

        boolean fireEvent() {
            boolean result = false;
            KeyListener kl = null;
            for( Enumeration e = _keyListeners.elements(); e.hasMoreElements(); ) {
                kl = (KeyListener) e.nextElement();

                switch( _keyType ) {
                    case KEY_DOWN:
                        result = result || kl.keyDown( _keyCode, _time );
                        break;
                    case KEY_REPEAT:
                        result = result || kl.keyRepeat( _keyCode, _time );
                        break;
                    case KEY_STATUS:
                        result = result || kl.keyStatus( _keyCode, _time );
                        break;
                    case KEY_UP:
                        result = result || kl.keyUp( _keyCode, _time );
                        break;
                    case KEY_CHAR:
                        result = result || kl.keyChar( _keyChar, _status, _time );
                        break;
                }
            }
            return result;
        }
View Full Code Here

TOP

Related Classes of net.rim.device.api.system.KeyListener

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.