Examples of IHook


Examples of fr.soleil.salsa.entity.IHook

            list.remove(index);
        }
    }

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

    /* (non-Javadoc)
     * @see fr.soleil.salsa.client.controller.impl.IHooksController#notifyNewCommand(int)
     */
    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

    /* (non-Javadoc)
     * @see fr.soleil.salsa.client.controller.impl.IHooksController#notifyNewHookAction()
     */
    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

    /* (non-Javadoc)
     * @see fr.soleil.salsa.client.controller.impl.IHooksController#notifyStageAction(int, java.lang.String)
     */
    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

    /* (non-Javadoc)
     * @see fr.soleil.salsa.client.controller.impl.IHooksController#notifyHookSelected(int)
     */
    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

Examples of fr.soleil.salsa.entity.IHook

            list.remove(index);
        }
    }

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