I think I didn't modify anything in internal cn1 logic. All my code in StateMachine class. The application is partly handcoded. I have sort of templates in GUI which I fill with components in code.
I didn't touch StateMachineBase class and have an empty constructor in StateMachine.
public StateMachine(String resFile) {
super(resFile);
// do not modify, write code in initVars and initialize class members
// there,
// the constructor might be invoked too late due to race conditions that
// might occur
}
And in MyApplication class I have this code
public class MyApplication {
private Form current;
public void init(Object context) {
}
public void start() {
if(current != null){
current.show();
return;
}
new StateMachine("/theme");
}
public void stop() {
current = Display.getInstance().getCurrent();
}
public void destroy() {
}
}
четверг, 31 октября 2013 г., 9:36:55 UTC+4 пользователь Shai Almog написал: