mirror of https://github.com/zlatinb/muwire
switch to Groovy syntax
parent
790253c868
commit
4c9d3dc5f3
|
@ -1,31 +1,14 @@
|
||||||
import griffon.util.AbstractMapResourceBundle;
|
|
||||||
|
|
||||||
import javax.annotation.Nonnull;
|
application {
|
||||||
import java.util.Map;
|
title = 'MuWire'
|
||||||
|
startupGroups = ['EventList']
|
||||||
|
autoShutdown = true
|
||||||
|
}
|
||||||
|
|
||||||
import static griffon.util.CollectionUtils.map;
|
mvcGroups {
|
||||||
import static java.util.Collections.singletonList;
|
'EventList' {
|
||||||
|
model = 'com.muwire.gui.EventListModel'
|
||||||
public class Config extends AbstractMapResourceBundle {
|
view = 'com.muwire.gui.EventListView'
|
||||||
@Override
|
controller = 'com.muwire.gui.EventListController'
|
||||||
protected void initialize(@Nonnull Map<String, Object> entries) {
|
|
||||||
map(entries)
|
|
||||||
.e("application", map()
|
|
||||||
.e("title", "MuWire")
|
|
||||||
.e("startupGroups", singletonList("container"))
|
|
||||||
.e("autoShutdown", true)
|
|
||||||
)
|
|
||||||
.e("mvcGroups", map()
|
|
||||||
.e("container", map()
|
|
||||||
.e("model", "com.muwire.gui.EventListModel")
|
|
||||||
.e("view", "com.muwire.gui.EventListView")
|
|
||||||
.e("controller", "com.muwire.gui.EventListController")
|
|
||||||
)
|
|
||||||
.e("editor", map()
|
|
||||||
.e("model", "com.muwire.gui.EventListModel")
|
|
||||||
.e("view", "com.muwire.gui.EventListView")
|
|
||||||
.e("controller", "com.muwire.gui.EventListController")
|
|
||||||
)
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue