Package org.jnode.driver

Examples of org.jnode.driver.DeviceManager.addListener()


        private Collection<PointerListener> listenerList = new HashSet<PointerListener>();

        PointerAPIHandler() {
            try {
                DeviceManager dm = DeviceUtils.getDeviceManager();
                dm.addListener(this);
                for (Device device : dm.getDevicesByAPI(PointerAPI.class)) {
                    try {
                        pointerList.add(device.getAPI(PointerAPI.class));
                    } catch (ApiNotFoundException anfe) {
                        //ignore
View Full Code Here


        private KeyboardInterpreter interpreter;

        KeyboardAPIHandler() {
            try {
                DeviceManager dm = DeviceUtils.getDeviceManager();
                dm.addListener(this);
                for (Device device : dm.getDevicesByAPI(KeyboardAPI.class)) {
                    try {
                        keyboardList.add(device.getAPI(KeyboardAPI.class));
                    } catch (ApiNotFoundException anfe) {
                        //ignore
View Full Code Here

     * @see org.jnode.plugin.Plugin#startPlugin()
     */
    protected void startPlugin() throws PluginException {
        try {
            final DeviceManager dm = DeviceUtils.getDeviceManager();
            dm.addListener(this);
            final Collection<Device> devs = new ArrayList<Device>(dm.getDevices());
            for (Device dev : devs) {
                addListeners(dev);
            }
        } catch (NameNotFoundException ex) {
View Full Code Here

            this.api.addKeyboardListener(this);
        } else {
            DeviceManager dm = null;
            try {
                dm = InitialNaming.lookup(DeviceManager.NAME);
                dm.addListener(this);
            } catch (NameNotFoundException ex) {
                BootLogInstance.get().error("DeviceManager not found", ex);
            }
            this.devMan = dm;
        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.