Windy Community
    • Unread
    • Categories
    • Groups
    • Go to windy.com
    • Register
    • Login

    how to I do excuited function in javascript to java

    Scheduled Pinned Locked Moved Windy API v4
    2 Posts 2 Posters 669 Views 1 Watching
    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 Offline
      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 Offline
        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
        Windy Community  |  Powered by excellent NodeBB
        Terms of Use     Privacy Policy     Windy.com