Package com.nexirius.framework.command

Examples of com.nexirius.framework.command.Command


            try {
                String defaultCommandName = null;
                if (clientMethods != null) {
                    for (Iterator iterator = clientMethods.iterator(); iterator.hasNext();) {
                        Command command = (Command) iterator.next();

                        if (command.isDefaultButton()) {
                            defaultCommandName = command.getCommandName();
                            break;
                        }
                    }
                }
                if (defaultCommandName == null) {
View Full Code Here


    class MethodPropertyChangeListener implements PropertyChangeListener {
        public void propertyChange(PropertyChangeEvent ev) {
            if (Command.ENABLED.equals(ev.getPropertyName())) {
                boolean on = ((Boolean) ev.getNewValue()).booleanValue();
                Command command = (Command) ev.getSource();

                if (on != ((Boolean) ev.getOldValue()).booleanValue()) {
                    int type;

                    if (on) {
                        type = DataModelEvent.ENABLE_METHOD;
                    } else {
                        type = DataModelEvent.DISABLE_METHOD;
                    }

                    DataModelEvent event = new DataModelEvent(DataModel.this, type, true);
                    event.setTransmitter(DataModel.this);
                    event.setData(command.getCommandName());
                    fireEvent(event);
                }
            }
        }
View Full Code Here

TOP

Related Classes of com.nexirius.framework.command.Command

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.