Package net.rim.device.api.ui.accessibility

Examples of net.rim.device.api.ui.accessibility.AccessibleDateField


            final int newValue, final AccessibleContext context) {
        switch (event) {
        case AccessibleContext.ACCESSIBLE_STATE_CHANGED:
            if (Util.hasTransitionedToState(oldValue, newValue,
                    AccessibleState.FOCUSED)) {
                final AccessibleDateField dateField =
                        (AccessibleDateField) context;
                final String dateSubfieldString =
                        Util.getDateSubfieldString(dateField.getDateFieldType());
                Util.speak(dateSubfieldString + " focused");
            }
            break;

        case AccessibleContext.ACCESSIBLE_VALUE_CHANGED:
            final AccessibleDateField dateField = (AccessibleDateField) context;
            final String dateSubfieldString =
                    Util.getDateSubfieldString(dateField.getDateFieldType());
            Util.speak(dateSubfieldString + " value changed");
            Util.speak("New value " + context.getAccessibleName());
            break;
        }
    }
View Full Code Here

TOP

Related Classes of net.rim.device.api.ui.accessibility.AccessibleDateField

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.