Java Reference
In-Depth Information
init {
scene = Group {
content: [
enclosingRect = Rectangle {
translateX: bind text.layoutBounds.minX
translateY:
bind text.boundsInLocal.minY;
width: bind text.layoutBounds.width
height: bind text.layoutBounds.height
fill: Color.TRANSPARENT
onMouseClicked: function(e) {
visited = true;
hypertext.action(hypertext.url);
}
onMouseEntered: function(e) {
hover = true;
}
onMouseExited: function(e) {
hover = false;
}
onMousePressed: function(e) {
pressed = true;
if(not control.focused and
control.focusable)
then control.requestFocus();
}
onMouseReleased: function(e) {
pressed = false;
}
},
text = Text {
content: bind hypertext.content
fill: bind if(visited)
visitedFill else unvisitedFill
wrappingWidth: bind wrappingWidth
underline: bind underline
overline: bind overline
strikethrough: bind strikethrough
content: bind hypertext.content
textOrigin: bind
if(hypertext.textOrigin != null)
hypertext.textOrigin
else defaultText.textOrigin
textAlignment: bind if
(hypertext.textAlignment != null)
hypertext.textAlignment
else defaultText.textAlignment
font: bind font
}
]
};
}
Search WWH ::




Custom Search