Examples of IHookCommand


Examples of fr.soleil.salsa.entity.IHookCommand

        if (list1 == null && list2 == null) {
            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

                if ((row > -1) && (row < commandList.size())) {
                    int col = table.getSelectedColumn();
                    if (col == 1) {
                        //                        System.out.println("mouseClicked col=" + col);
                        //                        System.out.println("mouseClicked row=" + row);
                        IHookCommand command = commandList.get(row);
                        table.setValueAt(!command.isEnable(), row, col);
                    }
                }
            }
        });
        table.packAll();
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 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

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

    }

    @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

                }
                int row = table.getSelectedRow();
                if ((row > -1) && (row < commandList.size())) {
                    int col = table.getSelectedColumn();
                    if (col == 1) {
                        IHookCommand command = commandList.get(row);
                        table.setValueAt(!command.isEnable(), row, col);
                    }
                }
            }
        });
        table.packAll();
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
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.