staunch
BlogJava
首页
新随笔
联系
聚合
管理
随笔-0 评论-0 文章-9 trackbacks-0
Millstone 是一种开发java web 程序用户界面库
Millstone 是一种开发java web 程序用户界面库,它提供一套能够适应不同终端和界面主题的客户端独立的组件模型。
使用Millstone的组件模型开发程序非常类似传统的客户端程序开发。它有一套应用程序生命周期和扩展的事件模型。
millstone 是重服务器端的web frame。虽然与现在的RIA的潮流不相符,但是缺是绝对MVC的。millstone和我前两年用的cocoon一样,对程序员的抽象能力要求较高,易学习但是不方便使用,灵活性不够,所有需要的功能必须进行抽象然后分离,在MVC的每个部分都必须做处理。但是我在实际项目中使用后,感到很不错。
1
2
package org.millstone.examples;
3
4
import org.millstone.
base
.ui.
*
;
5
6
/**/
/*
* The classic "hello, world!" example for the MillStone framework. The
7
* class simply implements the abstract
8
* {@link org.millstone.base.Application#init() init()} method
9
* in which it creates a Window and adds a Label to it.
10
*
11
* @author IT Mill Ltd.
12
* @see org.millstone.base.Application
13
* @see org.millstone.base.ui.Window
14
* @see org.millstone.base.ui.Label
15
*/
16
public
class
HelloWorld extends org.millstone.
base
.Application
{
17
18
/**/
/*
* The initialization method that is the only requirement for
19
* inheriting the org.millstone.base.service.Application class. It will
20
* be automatically called by the framework when a user accesses the
21
* application.
22
*/
23
public
void
init()
{
24
25
/**/
/*
26
* - Create new window for the application
27
* - Give the window a visible title
28
* - Set the window to be the main window of the application
29
*/
30
Window main
=
new
Window(
"
Hello window
"
);
31
setMainWindow(main);
32
33
/**/
/*
34
* - Create a label with the classic text
35
* - Add the label to the main window
36
*/
37
main.addComponent(
new
Label(
"
Hello World!
"
));
38
39
/**/
/*
40
* And that's it! The framework will display the main window and its
41
* contents when the application is accessed with the terminal.
42
*/
43
}
44
}
45
46
/**/
/*
This Millstone sample code is public domain. *
47
* For more information see www.millstone.org.
*/
48
49
50
posted on 2005-07-30 15:26
staunch
阅读(325)
评论(0)
编辑
收藏
新用户注册
刷新评论列表
只有注册用户
登录
后才能发表评论。
网站导航:
博客园
IT新闻
Chat2DB
C++博客
博问
管理
<
2025年7月
>
日
一
二
三
四
五
六
29
30
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
1
2
3
4
5
6
7
8
9
留言簿
给我留言
查看公开留言
查看私人留言
文章档案
2005年9月 (1)
2005年8月 (7)
2005年7月 (1)
搜索
最新评论