1.1 --- a/minesweeper/src/main/java/org/apidesign/demo/minesweeper/MinesModel.java Mon Feb 10 16:50:08 2014 +0100
1.2 +++ b/minesweeper/src/main/java/org/apidesign/demo/minesweeper/MinesModel.java Tue Mar 04 09:24:17 2014 +0100
1.3 @@ -39,7 +39,7 @@
1.4 @Property(name = "state", type = MinesModel.GameState.class),
1.5 @Property(name = "rows", type = Row.class, array = true),
1.6 })
1.7 -final class MinesModel {
1.8 +public final class MinesModel {
1.9 enum GameState {
1.10 IN_PROGRESS, WON, LOST;
1.11 }
1.12 @@ -274,4 +274,12 @@
1.13 }
1.14 }
1.15 }
1.16 +
1.17 + /**
1.18 + * Called when page is ready
1.19 + */
1.20 + public static void main(String... args) throws Exception {
1.21 + Mines m = new Mines();
1.22 + m.applyBindings();
1.23 + }
1.24 }