Package org.sodbeans.controller.impl.processors

Examples of org.sodbeans.controller.impl.processors.ToggleButtonProcessor


    @Override
    protected SpeechProcessor getFocusEventProcessor() {
        if (button == null)
            return new NullProcessor();

        ToggleButtonProcessor proc = new ToggleButtonProcessor();
       
        String text = button.getText();
        if(text == null || text == "") {
            AccessibleContext ac = button.getAccessibleContext();
            if(ac != null) {
                text = ac.getAccessibleName();
            }
           
            if(text == null || text == "") {
                text = ac.getAccessibleDescription();
            }
           
            if(text == null || text == "") {
                text = button.getToolTipText();
            }
        }
        proc.setText(text);
       
        return proc;
    }
View Full Code Here

TOP

Related Classes of org.sodbeans.controller.impl.processors.ToggleButtonProcessor

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.