Package org.jnode.system.event

Examples of org.jnode.system.event.FocusEvent


     *
     * @param console
     */
    public synchronized void focus(Console console) {
        if (this.current != null && this.current != console) {
            this.current.focusLost(new FocusEvent(FocusEvent.FOCUS_LOST));
        }
        this.current = console;
        if (this.current != null) {
            current.focusGained(new FocusEvent(FocusEvent.FOCUS_GAINED));
        }
    }
View Full Code Here


        log.debug("unregisterConsole(" + console.getConsoleName() + ')');
        if (contextConsole.get() == console) {
            contextConsole.set(null);
        }
        if (current == console) {
            console.focusLost(new FocusEvent(FocusEvent.FOCUS_LOST));
        }

        consoles.remove(console.getConsoleName());
        if (currentStack != null && !currentStack.empty() && currentStack.peek() == console) {
            currentStack.pop();
View Full Code Here

    public void registerConsole(Console console) {
        consoles.put(console.getConsoleName(), console);
        if (current == null) {
            current = console;
            current.focusGained(new FocusEvent(FocusEvent.FOCUS_GAINED));
        }
        if (contextConsole.get() == null) {
            contextConsole.set(console);
        }
    }
View Full Code Here

TOP

Related Classes of org.jnode.system.event.FocusEvent

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.