« Putting My CTO Hat On - Our Company's Plans for Using JavaFX Script | Main | Setting the Stage to Develop Larger JavaFX Script Apps »

November 01, 2007

JavaFX Puzzler - First Correct Answer Gets Free JavaFX Script eBook

In previous posts, I've been teaching lots of JavaFX Script concepts.  In this post, I'd like to have some fun by giving you a JavaFX Script related "puzzler" that is related to the content of this blog so far. The first person to post a comment with the correct answer will be given a free JavaFX Script: Dynamic Java Scripting for Rich Internet/Client-side Applications eBook (PDF download).  When submitting your answer, be sure to put your email address in the  "Email Address: (Not displayed with comment.)" text field on the comment form so that Apress knows how to contact you with the download information.  Your email will not be displayed on the blog, or given to anyone else other than Apress (and only used for the purpose of contacting you with instructions).

By the way, I've added an email subscription feature to this blog (over on the right panel) so you can be notified via email as soon as these "JavaFX Puzzler" contests are posted.

Anyway, here's the puzzler:  In one of the posts, I referred to the link that provides "web pages of documentation on the JavaFX Script UI classes".  In another post, I used the Text object to draw a message on a Canvas.  Please look at the documentation on the JavaFX Script UI classes and tell me what all of the public attributes of the Text class are.


Good luck!

Jim Weaver

JavaFX Script: Dynamic Java Scripting for Rich Internet/Client-side Applications

TrackBack

TrackBack URL for this entry:
http://www.typepad.com/t/trackback/2709996/22951882

Listed below are links to weblogs that reference JavaFX Puzzler - First Correct Answer Gets Free JavaFX Script eBook:

Comments

Looks like we have two winners, as the first entry was correct, but the second entry took into account inheritance, which causes the public attributes from the inherited classes to be part of the Text class. Congratulations to both John and codecraig!

Thanks,
Jim Weaver

Maybe the first 3 can get the book..:)?

public alignment: Alignment

public content: String

public editable: Boolean
.
public font: Font

public x: Number

public y: Number

DO you want all of the ones just defined in Text, or all the public attributes it will have (also from inheritance)?

Here is the complete list...

from javafx.ui.canvas.Transformable
public transform : Transform

from javafx.ui.canvas.Node
public canAcceptDrop: function(javafx.ui.canvas.CanvasDropEvent):Boolean?
public clip: Clip?
public currentHeight: Number
public currentWidth: Number
public currentX: Number
public currentY: Number
public cursor: Cursor?
public dragCount: Number
public exportAsDrag: function():javafx.ui.canvas.CanvasDragEvent
public exportDrag: Boolean
public filter: Filter*
public focusable: Boolean
public focused: Boolean
public halign: HorizontalAlignment?
public hover: Boolean
public id: String?
public isSelectionRoot: Boolean
public onDragEnter: function(javafx.ui.canvas.CanvasDropEvent):*?
public onDragExit: function(javafx.ui.canvas.CanvasDropEvent):*?
public onDrop: function(javafx.ui.canvas.CanvasDropEvent):*?
public onKeyDown: function(javafx.ui.KeyEvent):*?
public onKeyTyped: function(javafx.ui.KeyEvent):*?
public onKeyUp: function(javafx.ui.KeyEvent):*?
public onMouseClicked: function(javafx.ui.canvas.CanvasMouseEvent):*?
public onMouseDragged: function(javafx.ui.canvas.CanvasMouseEvent):*?
public onMouseEntered: function(javafx.ui.canvas.CanvasMouseEvent):*?
public onMouseExited: function(javafx.ui.canvas.CanvasMouseEvent):*?
public onMouseMoved: function(javafx.ui.canvas.CanvasMouseEvent):*?
public onMousePressed: function(javafx.ui.canvas.CanvasMouseEvent):*?
public onMouseReleased: function(javafx.ui.canvas.CanvasMouseEvent):*?
public opacity: Number?
public toolTipText: String?
public valign: VerticalAlignment?
public visible: Boolean
public fillRule: FillRule

from javafx.ui.canvas.Shape
public outline: Boolean

from javafx.ui.canvas.Text
public alignment: Alignment
public content: String
public editable: Boolean
public font: Font?
public x: Number
public y: Number


did i win :)

alignment
content
editable
font
x
y

The comments to this entry are closed.