Package fr.soleil.salsa.entity.event

Examples of fr.soleil.salsa.entity.event.HookCommandModel


        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


    }

    @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

     * @param ihc
     * @param listen
     */
    private void enableListening(IHookCommand ihc, boolean listen) {
        if (ihc instanceof HookCommandModel) { // this test returns false if ihc is null
            HookCommandModel hcm = (HookCommandModel) ihc;
            if (listen) {
                hcm.addListener(listenerHookCommand);
            }
            else {
                hcm.removeListener(listenerHookCommand);
            }
        }
    }
View Full Code Here

        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

     */
    private void enableListening(IHookCommand ihc, boolean listen) {
        if (ihc == null) {
            return;
        }
        HookCommandModel hcm = (HookCommandModel) ihc;
        if (listen) {
            hcm.addListener(listenerHookCommand);
        }
        else {
            hcm.removeListener(listenerHookCommand);
        }
    }
View Full Code Here

    }

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

        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());
        if (config != null) {
            config.setModified(true);
        }
    }
View Full Code Here

    }

    @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

    }

    @Override
    public IHookCommand toModel() {
        if (model == null) {
            model = new HookCommandModel(this);
        }
        return model;
    }
View Full Code Here

     * @param ihc
     * @param listen
     */
    private void enableListening(IHookCommand ihc, boolean listen) {
        if (ihc instanceof HookCommandModel) { // this test returns false if ihc is null
            HookCommandModel hcm = (HookCommandModel) ihc;
            if (listen) {
                hcm.addListener(listenerHookCommand);
            }
            else {
                hcm.removeListener(listenerHookCommand);
            }
        }
    }
View Full Code Here

TOP

Related Classes of fr.soleil.salsa.entity.event.HookCommandModel

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.