Navigation

    Windy Community

    • Register
    • Login
    • Search
    • Unread
    • Categories
    • Groups
    • Go to windy.com

    how to I do excuited function in javascript to java

    Windy API v4
    1
    2
    87
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      Paidi Ramesh last edited by

        mapTypeGroup.selectedToggleProperty().addListener(new ChangeListener() {
              @Override
              public void changed(ObservableValue observableValue, Toggle toggle, Toggle toggle1) {
                  if (cond.isSelected()) {
                  	
                      webEngine.executeScript("setRainWindy()");
                      System.out.println("Im passing command");
                  } 
              }
          });
      P 1 Reply Last reply Reply Quote 0
      • P
        Paidi Ramesh @Paidi Ramesh last edited by

        @Paidi-Ramesh said in how to I do excuited function in javascript to java:

        JAVA code:
        
          mapTypeGroup.selectedToggleProperty().addListener(new ChangeListener() {
                @Override
                public void changed(ObservableValue observableValue, Toggle toggle, Toggle toggle1) {
                    if (cond.isSelected()) {
                    	
                        webEngine.executeScript("setRainWindy()");
                        System.out.println("Im passing command");
                    } 
                }
            });
        

        JAVASCRIPT:

            function setRainWindy(){
        		  /* In this place, I'm only calling rain parameters  */  	
        		    }
        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Windyty, S.E. - all rights reserved. Powered by excellent NodeBB
        NodeBB & contributors, OSM & contributors, HERE maps
        Terms and Conditions     Privacy Policy