Scaladin -


Apache
跨平台
Scala

软件简介

Scaladin 是 Vaadin 提供的
Scala 语言的封装版本。Scaladin为所有的 UI 组件提供了全新构造器,例如:

val panel = new Panel(caption = "Caption", width = 200 px, height = 300 px)

示例代码:

val layout = new VerticalLayout(width = 100 pct, height = 100 pct) {
  add(new Label(content = "Persons", style = Reindeer.LABEL_H1))
  add(new Table(width = 100 pct, height = 100 pct), ratio = 1)
  add(new HorizontalLayout(spacing = true) {
    add(new Button("Edit selected", _ => editClicked()))
    add(new Button("Add new", _ => addNewClicked()))
  })
}
getMainWindow.setContent(layout)

更多关于 Scaladin 的特性请看:https://github.com/henrikerola/scaladin/wiki/Features