Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

Generated Object

javafx.scene.web.HTMLEditor

Attributes

This node takes the attributes from the javafx.scene.web.HTMLEditor class. see javafx.scene.web.HTMLEditor

Content

This node takes the common node content, effects, transforms, and input.

Usage

Creates a HTMLEditor JavaFX node.

Examples

Code Block
import groovyx.javafx.GroovyFX
import groovyx.javafx.SceneGraphBuilder


def url = "http://www.yahoo.com";
GroovyFX.start({
    def sg = new SceneGraphBuilder();

    def webEngine = sg.webEngine(location: url);
    def goAction = { webEngine.load(urlBox.getText()) };
    def stage = sg.stage(
        title: "HTML Editor (Groovy)",
        visible: true,
    ) {
        scene(fill: hsb(128, 0.5, 0.5, 0.5), width: 400, height:400 ) {
            borderPane() {
                html = htmlEditor()
                bottom(align: "center", margin: [10,0]) {
                    button(text: "Print HTML", onAction: { println html.htmlText})
                }
            }
        }
    }
});