当前位置: 首页>>代码示例>>Java>>正文


Java TerminalFacade.createGUIScreen方法代码示例

本文整理汇总了Java中com.googlecode.lanterna.TerminalFacade.createGUIScreen方法的典型用法代码示例。如果您正苦于以下问题:Java TerminalFacade.createGUIScreen方法的具体用法?Java TerminalFacade.createGUIScreen怎么用?Java TerminalFacade.createGUIScreen使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.googlecode.lanterna.TerminalFacade的用法示例。


在下文中一共展示了TerminalFacade.createGUIScreen方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: run

import com.googlecode.lanterna.TerminalFacade; //导入方法依赖的package包/类
@Override
public void run() {
	LOG.debug("Running LanternaRunner");
	guiScreen = TerminalFacade.createGUIScreen(terminal);
	guiScreen.getScreen().startScreen();

	Window mainWindow = createMainWindow();
	guiScreen.showWindow(mainWindow);
	guiScreen.getScreen().stopScreen();
	terminal.clearScreen();
	terminal.flush();
	session.close(false);
	LOG.debug("Finished LanternaRunner");
}
 
开发者ID:frincon,项目名称:openeos,代码行数:15,代码来源:LanternaRunner.java

示例2: main

import com.googlecode.lanterna.TerminalFacade; //导入方法依赖的package包/类
public static void main(String... args) throws URISyntaxException, IOException, InterruptedException
{
    CliConfig cliConfig = new Parser().parse(args);

    if (cliConfig == null)
    {
        return;
    }

    // Create components
    final HdfsScanner hdfsScanner = new HdfsScanner(cliConfig.getDir(), "hdfs");

    final GUIScreen guiScreen = TerminalFacade.createGUIScreen();
    final MainWindow mainWindow = new MainWindow(guiScreen);
    final HelpPopup helpPopup = new HelpPopup(guiScreen);
    final ScanningPopup scanningPopup = new ScanningPopup(guiScreen);

    final Controller controller = new Controller();

    // wire them
    mainWindow.setController(controller);

    scanningPopup.setController(controller);

    controller.setGuiScreen(guiScreen);
    controller.setMainWindow(mainWindow);
    controller.setHelpPopup(helpPopup);
    controller.setScanningPopup(scanningPopup);
    controller.setHdfsScanner(hdfsScanner);

    controller.startScan(cliConfig.getDir(), cliConfig.getFilter());
}
 
开发者ID:d0x,项目名称:nchadoop,代码行数:33,代码来源:Main.java

示例3: GuiConsoleType

import com.googlecode.lanterna.TerminalFacade; //导入方法依赖的package包/类
/**
     * Instantiates a new Gui console.
     */
    private GuiConsoleType() {

        // Connect to MBean Server
        JMXInitializer initializer = DefaultJMXInitializer.getInstance();
        initializer.connect();

        String os = System.getProperty("os.name").toLowerCase();
        // linux or unix
        UNIX = (os.contains("nix") || os.contains("nux"));
        // windows
        WINDOWS = os.contains("win");

        if (UNIX) {
            TERMINAL = TerminalFacade.createUnixTerminal(Charset.forName("UTF8"));
        } else {
            TERMINAL = TerminalFacade.createTerminal(Charset.forName("UTF8"));
        }
//        TERMINAL.enterPrivateMode();
        SCREEN = TerminalFacade.createScreen(TERMINAL);
        GUI_SCREEN = TerminalFacade.createGUIScreen(SCREEN);

        if (getGUI_SCREEN() == null) {
            System.err.println(GenericMBeanCliBootstrap.showWelcomeScreen());
            DefaultConsoleIO.getInstance().run();
            return;
        }
        GUI_SCREEN.setTheme(GenericMBeanCliGuiTheme.getInstance());
        SCREEN.startScreen();

        GUI_SCREEN.showWindow(PrimaryGuiWindow.getInstance(), GUIScreen.Position.FULL_SCREEN);

    }
 
开发者ID:sohailalam2,项目名称:GenericMBeanCLI,代码行数:36,代码来源:GuiConsoleType.java

示例4: GUIScreenProvider

import com.googlecode.lanterna.TerminalFacade; //导入方法依赖的package包/类
public GUIScreenProvider() {
    this.screen = TerminalFacade.createGUIScreen();
}
 
开发者ID:aalmiray,项目名称:griffon2,代码行数:4,代码来源:GUIScreenProvider.java

示例5: main

import com.googlecode.lanterna.TerminalFacade; //导入方法依赖的package包/类
public static void main(String[] args) {

		logger.info("Condi " + VERSION + " startup");

		GUIScreen screen = TerminalFacade.createGUIScreen();

		if (screen == null) {
			System.err.println("Couldn't allocate a terminal!");
			return;
		}

		screen.getScreen().startScreen();

		new CondiWindow(screen);

	}
 
开发者ID:swapii,项目名称:condi,代码行数:17,代码来源:Condi.java


注:本文中的com.googlecode.lanterna.TerminalFacade.createGUIScreen方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。