Package org.springframework.richclient.command

Examples of org.springframework.richclient.command.ActionCommand.createButton()


            {
                // does nothing during this test anyway
            }
        };

        AbstractButton standardButton = command.createButton();

        // test this dude's enabling
        command.setEnabled(false);
        assertFalse("standard face button didn't follow up on the command's disabling", standardButton
                .isEnabled());
View Full Code Here


        // register an alternative face to this command
        CommandFaceDescriptor face = new CommandFaceDescriptor();
        command.setFaceDescriptor(ALTERNATE_ID, face);

        // and get us a button with that face
        AbstractButton otherFacedButton = command.createButton(ALTERNATE_ID);

        // test this newly faced dude
        command.setEnabled(false);
        assertFalse("alternative face button didn't follow up on the command's disabling", otherFacedButton
                .isEnabled());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.