Package org.jnode.driver.textscreen

Examples of org.jnode.driver.textscreen.TextScreenManager


    /**
     * @see org.jnode.driver.console.ConsoleManager#createConsole(String, int)
     */
    public TextScreenConsole createConsole(String name, int options) {
        if ((options & CreateOptions.TEXT) != 0) {
            final TextScreenManager tsm = getTextScreenManager();
            final TextScreenConsole console;
            if (name == null) {
                name = autoName();
            }
            if ((options & CreateOptions.SCROLLABLE) != 0) {
                final ScrollableTextScreen screen;
                screen = tsm.getSystemScreen().createCompatibleScrollableBufferScreen(SCROLLABLE_HEIGHT);
                console = new ScrollableTextScreenConsole(this, name, screen, options);
            } else {
                final TextScreen screen;
                screen = tsm.getSystemScreen().createCompatibleBufferScreen();
                console = new TextScreenConsole(this, name, screen, options);
            }
            console.setIn(getReader(options, console));
            if ((options & CreateOptions.STACKED) != 0) {
                stackConsole(console);
View Full Code Here


        }
        return in;
    }
   
    protected TextScreenManager getTextScreenManager() {
        TextScreenManager tsm;
        try {
            tsm = InitialNaming.lookup(TextScreenManager.NAME);
        } catch (NameNotFoundException ex) {
            throw new IllegalArgumentException("TextScreenManager not found");
        }
View Full Code Here

TOP

Related Classes of org.jnode.driver.textscreen.TextScreenManager

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.