24 lines
490 B
Haxe
Executable File
24 lines
490 B
Haxe
Executable File
package;
|
|
|
|
import haxework.gui.ViewBuilder;
|
|
import haxework.gui.VGroupView;
|
|
import haxework.gui.ButtonView;
|
|
import haxework.gui.Root;
|
|
|
|
@:template("form.json")
|
|
class FormView extends VGroupView implements ViewBuilder {}
|
|
|
|
class ViewExample {
|
|
|
|
public static function main() {
|
|
new ViewExample();
|
|
}
|
|
|
|
public function new() {
|
|
new Root(new FormView({listener:this}));
|
|
}
|
|
|
|
public function onPress(view:ButtonView):Void {
|
|
trace("onPress: " + view.id);
|
|
}
|
|
} |