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/c23a7d01-fe87-4621-becb-67c2f905436e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to