changeset 1447:d3c8bd0df966

[DOC ONLY] added some comments to EmbeddedTextContextMenuContent.
author Kinsley Wong
date Fri, 13 Jul 2012 14:55:35 -0700
parents 8b3da2148b1b
children 5ba93f3d48b7
files javafx-ui-controls/src/com/sun/javafx/scene/control/skin/EmbeddedTextContextMenuContent.java
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/javafx-ui-controls/src/com/sun/javafx/scene/control/skin/EmbeddedTextContextMenuContent.java	Fri Jul 13 13:15:20 2012 -0400
+++ b/javafx-ui-controls/src/com/sun/javafx/scene/control/skin/EmbeddedTextContextMenuContent.java	Fri Jul 13 14:55:35 2012 -0700
@@ -36,6 +36,12 @@
 import javafx.scene.layout.HBox;
 import javafx.scene.layout.StackPane;
 
+/**
+ * The embedded context menu for a text input control.  
+ * The menu will be displayed horizontally underneath the cursor 
+ * with the available text editing options i.e. cut, copy, paste, select all.
+ *
+ */
 public class EmbeddedTextContextMenuContent extends StackPane {
 
     private ContextMenu contextMenu;
@@ -131,6 +137,7 @@
         double screenX = 0;
         double pointerX = 0;
 
+        // Get the positions of the cursor from the TextArea/TextField and draw the arrow underneath it.
         if (contextMenu.getOwnerNode() instanceof TextArea) {
             TextArea ta = (TextArea)contextMenu.getOwnerNode();
             TextAreaSkin tas = (TextAreaSkin)ta.getSkin();