API request: WebEngine settings

Peter Zhelezniakov peter.zhelezniakov at oracle.com
Fri May 18 01:34:40 PDT 2012


I've just realized that contextMenuEnabled should go to WebView rather than WebEngine. This is a visual property and makes no sense for a headless WebEngine. So let me change my request one more time:

package javafx.scene.web;

class WebEngine {
  /**
    * Specifies whether JavaScript execution is enabled.
    * 
    * @defaultValue true
    */
   private BooleanProperty javaScriptEnabled;
   public final void setJavaScriptEnabled(boolean value);
   public final boolean isJavaScriptEnabled();
   public final BooleanProperty javaScriptEnabledProperty();

   /**
    * Location of the user stylesheet as a string URL.
    * 
    * <p>This should be a local URL, i.e. either {@code "data:"}, {@code 'file:'}, or
    * {@code 'jar:'}. Remote URLs are not allowed for security reasons.
    * 
    * @defaultValue null
    */
   private StringProperty userStyleSheetLocation;
   public final void setUserStyleSheetLocation(String value);
   public final String getUserStyleSheetLocation();
   public final StringProperty userStyleSheetLocationProperty();
}

class WebView {
   /**
    * Specifies whether context menu is enabled.
    * 
    * @defaultValue true
    */
   private BooleanProperty contextMenuEnabled;
   public final void setContextMenuEnabled(boolean value);
   public final boolean isContextMenuEnabled();
   public final BooleanProperty contextMenuEnabledProperty();
}

Do you agree?

Thanks!
-- 
Peter              |  x33066  |  St Petersburg, Russia  |  timezone: GMT+04




More information about the openjfx-dev mailing list