changeset 6703:50ec5523c4b7

RT-36636: [Accessibility] Finish editable text support - Adding initial required Attributes
author Felipe Heidrich <felipe.heidrich@oracle.com>
date Fri, 11 Apr 2014 14:17:35 -0700
parents 5e672543a019
children d4ec9135f6de
files modules/graphics/src/main/java/javafx/scene/accessibility/Attribute.java
diffstat 1 files changed, 57 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/modules/graphics/src/main/java/javafx/scene/accessibility/Attribute.java	Fri Apr 11 11:41:42 2014 -0700
+++ b/modules/graphics/src/main/java/javafx/scene/accessibility/Attribute.java	Fri Apr 11 14:17:35 2014 -0700
@@ -33,6 +33,7 @@
 import javafx.scene.Parent;
 import javafx.scene.Scene;
 import javafx.scene.input.KeyCombination;
+import javafx.scene.text.Font;
 
 /**
  * Experimental API - Do not use (will be removed).
@@ -54,6 +55,20 @@
     BOUNDS("Bounds", Bounds.class),
 
     /**
+     * Returns the array of bounding rectangles for the given char range.
+     * Parameter: Integer range start
+     * Parameter: Integer range length
+     * Type: Bounds[]
+     */
+    BOUNDS_FOR_RANGE("BoundsForRange", Bounds[].class),
+
+    /**
+     * Returns the caret offset for the node.
+     * Type: Integer
+     */
+    CARET_OFFSET("CaretOffset", Integer.class),
+
+    /**
      * Returns the children for the Node.
      * Type: ObservableList&lt;Node&gt;
      */
@@ -103,8 +118,16 @@
      */
     DISCLOSURE_LEVEL("DisclosureLevel", Integer.class),
 
+    /**
+     * Returns the local date for the node.
+     * Type: LocalDate
+     */
     DATE("Date", LocalDate.class),
 
+    /**
+     * Returns true if the node is editable.
+     * Type: Boolean
+     */
     EDITABLE("Editable", Boolean.class),
 
     /**
@@ -144,6 +167,12 @@
     FOCUSED("Focused", Boolean.class),
 
     /**
+     * Returns the font for the node
+     * Type: Font
+     */
+    FONT("Font", Font.class),
+
+    /**
      * Returns the header for the node
      * Type: Node
      */
@@ -180,6 +209,27 @@
     LEAF("Leaf", Boolean.class),
 
     /**
+     * Returns the line start of the given line index.
+     * Parameter: Integer - line index
+     * Type: Integer
+     */
+    LINE_END("LineEnd", Integer.class),
+
+    /**
+     * Returns the line index of the given character offset.
+     * Parameter: Integer - character offset.
+     * Type: Integer
+     */
+    LINE_FOR_OFFSET("LineOffset", Integer.class),
+
+    /**
+     * Returns the line end of the given line index.
+     * Parameter: Integer - line index
+     * Type: Integer
+     */
+    LINE_START("LineStart", Integer.class),
+
+    /**
      * Returns the min value for the node.
      * Type: Double
      */
@@ -229,6 +279,13 @@
     NODE_AT_POINT("NodeAtPoint", Node.class),
 
     /**
+     * Returns the char offset at the given point location.
+     * Type: Integer
+     * Parameters: Point
+     */
+    OFFSET_AT_POINT("OffsetAtPoint", Integer.class),
+
+    /**
      * Returns the orientation of a node
      * Type: Orientation
      */