Java CLI UI设计:框架或库? [英] Java CLI UI-design: frameworks or libraries?

查看:181
本文介绍了Java CLI UI设计:框架或库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在开发一个仅需要命令行界面的小型实用程序,我开始想知道Java是否提供了任何标准的创建CLI的方式,类似于Swing和类似于GUI的方式。我对命令行参数和解析不感兴趣,而是使用者与程序一起使用基于命令的交互。这是针对GUI简单地不必要的情况,或者不是使用程序的选项。

I'm currently working on a small utility program that only requires a command line interface, and I started wondering if Java provided any standard way of creating the CLI, in a similar way that Swing and the likes exist for GUIs. I'm not really interested in command line parameters and parsing of them, but rather the command based interaction the user has with the program to use it. This is for the situations where GUI simply is unnecessary or not an option for using the program.

Googling该主题几乎只会导致关于如何使用BufferedReader和喜欢与用户进行基本的互动,针对人们学习Java的基础知识和编写简单的UI,要求名称和打印Hello World!等等。

Googling the subject pretty much only results in tutorials on how to use BufferedReader and the likes to do rudimentary interaction with the user, aimed at people learning the basics of Java and writing simple UI that asks for name and prints "Hello World!" etc..

任何图书馆都专注于为快速实施更复杂的CLI界面提供一个良好的框架,或者这是真正的东西,每个人都以特别的方式实现为自己的公用事业?

Are the any libraries that are focused on providing a good framework for quickly implementing a more complex CLI UI or is this really something that everyone implements in ad hoc manner for their own utilities?

也许有人知道在不是一切都是图形的时候创建的实现模式?这也将是有用的资源。

Maybe someone knows of patterns for the implementation that were created back in time when not everything was graphical? That would also be useful resource.

推荐答案

也许CLI工具包...

Perhaps CLI Toolkit...

http://alexis.royer.free.fr/CLI/

这篇关于Java CLI UI设计:框架或库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆