Examples of IHookCommand


Examples of fr.soleil.salsa.entity.IHookCommand

                List<IHookCommand> commandsList = h.getCommandsList();
                int nbCommands = 0;
                if (commandsList != null) {
                    nbCommands = commandsList.size();
                    for (int k = 0; k < nbCommands; k++) {
                        IHookCommand hc = commandsList.get(k);
                        boolean selected = (myContains(commandsSelected, hc));
                        view.addCommand(i, k, hc.getCommand());
                        ((HookCommandModel) hc).addListener(hookCommandsActionListener);

                        view.setSelectedCommand(i, k, selected);
                    }
                }
View Full Code Here

Examples of fr.soleil.salsa.entity.IHookCommand

    }

    public void notifyCommandSelected(int hookId, int commandId, boolean selected) {
        IHook h = hooks.get(hookId);
        if (h.getCommandsList() != null && h.getCommandsList().size() > commandId) {
            IHookCommand c = h.getCommandsList().get(commandId);

            if (selected) {
                commandsSelected.add(c);
            }
            else {
View Full Code Here

Examples of fr.soleil.salsa.entity.IHookCommand

        if (rows != null && rows.length > 0) {
            int beforeIndex = 0;
            for (int index : rows) {
                if (index > 0) {
                    beforeIndex = index - 1;
                    IHookCommand beforeCommand = commandList.get(beforeIndex);
                    IHookCommand currentCommand = commandList.get(index);
                    commandList.set(beforeIndex, currentCommand);
                    commandList.set(index, beforeCommand);
                }
            }
            tableModel.fireTableDataChanged();
View Full Code Here

Examples of fr.soleil.salsa.entity.IHookCommand

        if (rows != null && rows.length > 0) {
            int afterIndex = 0;
            for (int index : rows) {
                if (index < commandList.size() - 1) {
                    afterIndex = index + 1;
                    IHookCommand afterCommand = commandList.get(afterIndex);
                    IHookCommand currentCommand = commandList.get(index);
                    commandList.set(afterIndex, currentCommand);
                    commandList.set(index, afterCommand);
                }
            }
            tableModel.fireTableDataChanged();
View Full Code Here

Examples of fr.soleil.salsa.entity.IHookCommand

    }

    @Override
    public void addHookCommand(Stage stage) {
        if (config != null && !readOnly) {
            IHookCommand command = new HookCommandModel();
            command.setCommand("");
            if (view != null) {
                view.addHookLine(stage, command);
            }
            config.setModified(true);
        }
View Full Code Here

Examples of fr.soleil.salsa.entity.IHookCommand

        if (list1 != null && list2 != null) {
            if (list1.size() != list2.size()) {
                return false;
            }
            for (int i = 0; i < list1.size(); i++) {
                IHookCommand obj1 = list1.get(i);
                IHookCommand obj2 = list2.get(i);
                if (!hookCommandEquals(obj1, obj2)) {
                    return false;
                }
            }
        }
View Full Code Here

Examples of fr.soleil.salsa.entity.IHookCommand

            equals = true;
        }
        else if ((list1 != null && list2 != null) && (list1.size() == list2.size())) {
            boolean listEquals = true;
            for (int i = 0; i < list1.size(); i++) {
                IHookCommand obj1 = list1.get(i);
                IHookCommand obj2 = list2.get(i);
                if (!hookCommandEquals(obj1, obj2)) {
                    listEquals = false;
                    break;
                }
            }
View Full Code Here

Examples of fr.soleil.salsa.entity.IHookCommand

            equals = true;
        }
        else if ((list1 != null && list2 != null) && (list1.size() == list2.size())) {
            boolean listEquals = true;
            for (int i = 0; i < list1.size(); i++) {
                IHookCommand obj1 = list1.get(i);
                IHookCommand obj2 = list2.get(i);
                if (!hookCommandEquals(obj1, obj2)) {
                    listEquals = false;
                    break;
                }
            }
View Full Code Here

Examples of fr.soleil.salsa.entity.IHookCommand

     * @see fr.soleil.salsa.client.controller.impl.IHooksController#notifyHookCommandChanged(int, int, java.lang.String)
     */
    public void notifyHookCommandChanged(int hookId, int id, String value) {
        IHook h = hooks.get(hookId);
        List<IHookCommand> commandsList = h.getCommandsList();
        IHookCommand hc = commandsList.get(id);
        hc.setCommand(value);

    }
View Full Code Here

Examples of fr.soleil.salsa.entity.IHookCommand

            List<IHookCommand> commandsList = h.getCommandsList();
            int nbCommands = 0;
            if (commandsList != null) {
                nbCommands = commandsList.size();
                for (int k = 0; k < nbCommands; k++) {
                    IHookCommand hc = commandsList.get(k);
                    boolean selected = (myContains(commandsSelected, hc));
                    view.addCommand(i, k, hc.getCommand());
                    ((HookCommandModel) hc).addListener(hookCommandsActionListener);

                    view.setSelectedCommand(i, k, selected);
                }
            }
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.