Please check this and hope there will not be any problem now

public void connection(final *StateMachine sm* ){

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")
   sm.back();
  }
};
}

On Monday, August 29, 2016 at 8:17:37 AM UTC+5:45, Peter Carlson wrote:
>
> 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/d3ada50f-839c-441a-a5f3-d65de2a181dc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to