changeset 6672:3f3a90553739

[Accessibility] Fix code format for ChoiceBox
author Felipe Heidrich <felipe.heidrich@oracle.com>
date Wed, 09 Apr 2014 14:40:08 -0700
parents 1526ac7b07a0
children 1660e9f1ad90
files modules/controls/src/main/java/javafx/scene/control/ChoiceBox.java
diffstat 1 files changed, 23 insertions(+), 18 deletions(-) [+]
line wrap: on
line diff
--- a/modules/controls/src/main/java/javafx/scene/control/ChoiceBox.java	Wed Apr 09 11:53:22 2014 -0700
+++ b/modules/controls/src/main/java/javafx/scene/control/ChoiceBox.java	Wed Apr 09 14:40:08 2014 -0700
@@ -408,27 +408,32 @@
             }
         }
     }
-    
+
+    /***************************************************************************
+     *                                                                         *
+     * Accessibility handling                                                  *
+     *                                                                         *
+     **************************************************************************/
+
     /** @treatAsPrivate */
     @Override
     public Object accGetAttribute(Attribute attribute, Object... parameters) {
-		switch(attribute) {
-		    case ROLE: return Role.COMBOBOX;
-		    case TITLE:
-		        //let the skin first.
-	    		Object title = super.accGetAttribute(attribute, parameters);
-	    		if (title != null) return title;
-	    		StringConverter<T> converter = getConverter();
-	    		if (converter == null) {
-	    			return getValue() != null ? getValue().toString() : "";
-	    		}
-	    		return converter.toString(getValue());
-		    case EXPANDED:
-	        	return isShowing();
-	    	default: return super.accGetAttribute(attribute, parameters);
-		}
+        switch(attribute) {
+            case ROLE: return Role.COMBOBOX;
+            case TITLE:
+                //let the skin first.
+                Object title = super.accGetAttribute(attribute, parameters);
+                if (title != null) return title;
+                StringConverter<T> converter = getConverter();
+                if (converter == null) {
+                    return getValue() != null ? getValue().toString() : "";
+                }
+                return converter.toString(getValue());
+            case EXPANDED: return isShowing();
+            default: return super.accGetAttribute(attribute, parameters);
+        }
     }
-    
+
     @Override
     public void accExecuteAction(Action action, Object... parameters) {
         switch (action) {
@@ -437,5 +442,5 @@
             default: super.accExecuteAction(action); break;
         }
     }
-    
+
 }