Examples of IHook


Examples of fr.soleil.salsa.entity.IHook

        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++) {
                IHook obj1 = list1.get(i);
                IHook obj2 = list2.get(i);
                if (!hookEquals(obj1, obj2)) {
                    listEquals = false;
                    break;
                }
            }
View Full Code Here

Examples of fr.soleil.salsa.entity.IHook

    /* (non-Javadoc)
     * @see fr.soleil.salsa.client.controller.impl.IHooksController#notifyDeleteCommandAction(int, java.util.List)
     */
    public void notifyDeleteCommandAction(int id, List<Integer> commandToDel) {
        IHook h = hooks.get(id);
        List<IHookCommand> commandsList = h.getCommandsList();

        for (int i = 0; i < commandToDel.size(); i++) {

            int index = commandToDel.get(i) - i;
            commandsList.remove(index);
View Full Code Here

Examples of fr.soleil.salsa.entity.IHook

    /* (non-Javadoc)
     * @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.IHook

        return stageReserved;
    }

    @Override
    public void notifyDeleteCommandAction(int id, List<Integer> commandToDel) {
        IHook h = hooks.get(id);
        List<IHookCommand> commandsList = h.getCommandsList();

        for (int i = 0; i < commandToDel.size(); i++) {

            int index = commandToDel.get(i) - i;
            commandsList.remove(index);
View Full Code Here

Examples of fr.soleil.salsa.entity.IHook

    }

    @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.IHook

    }

    @Override
    public void notifyNewCommand(int id) {
        IHook h = hooks.get(id);
        if (h.getCommandsList() == null) {
            h.setCommandsList(new ListModel<IHookCommand, HookModel>(new ArrayList<IHookCommand>(),
                    ((HookModel) h), "commandsList"));
        }
        List<IHookCommand> commands = h.getCommandsList();
        commands.add(new HookCommandModel());
    }
View Full Code Here

Examples of fr.soleil.salsa.entity.IHook

        commands.add(new HookCommandModel());
    }

    @Override
    public void notifyNewHookAction() {
        IHook h = new HookModel();
        Stage s = getFirstStageUnreserved();
        h.setStage(s);
        hooks.add(h);
    }
View Full Code Here

Examples of fr.soleil.salsa.entity.IHook

        hooks.add(h);
    }

    @Override
    public void notifyStageAction(int id, String value) {
        IHook h = hooks.get(id);
        Stage s = Stage.valueOf(Stage.class, value);
        h.setStage(s);
    }
View Full Code Here

Examples of fr.soleil.salsa.entity.IHook

        view.clearHooks();
    }

    @Override
    public void notifyHookSelected(int hookId, boolean selected) {
        IHook h = hooks.get(hookId);
        if (selected) {
            hooksSelected.add(h);
        }
        else {
            MyRemove(hooksSelected, h);
View Full Code Here

Examples of fr.soleil.salsa.entity.IHook

    }

    private void MyRemove(List<IHook> list, IHook hook) {
        int index = -1;
        for (int i = 0; i < list.size(); i++) {
            IHook h = list.get(i);
            if (hook == h) {
                index = i;
            }
        }
        if (index != -1) {
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.