You are looking at docs for JDK/JavaFX version 8, but using a version 7 implementation. There are many changes and enhancements in 8.
You can download a "developer preview" of JDK 8 (includes JavaFX 8) from the Oracle web site. We're only a month a way from full release of Java 8 and I've found the preview to be solid and totally useful for some months now. If you use NetBeans you may also want to download the NetBeans 8 Beta.