ConnectionRequest does not have a constructor with StateMachine

ConnectionRequest r = new ConnectionRequest(StateMachine sm )

^^^ StateMachine cannot be resolved to a variable. 


There are no available imports for StateMachine.


On 08/28/2016 06:39 PM, shyam tha wrote:
Hi 
Hope the following code will help you so please check it
ConnectionRequest
 r = new ConnectionRequest(StateMachine sm ) {
  
protected void readResponse(InputStream input) throws IOException {
     
String sError = "This would be set by server";
  
}
  
protected void postResponse() {
     
if (!sError.equals("error")
      sm.back();

  
}
};

On Monday, August 29, 2016 at 5:33:23 AM UTC+5:45, [email protected] wrote:
Is there a way to programatically go back?  Before in the old state machine there was back().  Now with the newest framework, I cant find back().  I'm not using the new GUI builder, I am coding all by hand

ConnectionRequest r = new ConnectionRequest() {
 
protected void readResponse(InputStream input) throws IOException {
     
String sError = "This would be set by server";
 
}
 
protected void postResponse() {
     
if (!sError.equals("error")
       goBack
();
 
}
};



--
You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/9d5789c3-8cc6-0dd2-e87b-d819b40aaf0d%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to