Examples of HookModel


Examples of fr.soleil.salsa.client.entity.event.HookModel

     */
    private void enableListening(IHook ih, boolean listen) {
        if (ih == null) {
            return;
        }
        HookModel hm = (HookModel) ih;

        if (listen) {
            hm.addListener(listenerHook);
        }
        else {
            hm.removeListener(listenerHook);
        }
        if (ih.getCommandsList() != null) {
            for (IHookCommand ihc : ih.getCommandsList()) {
                enableListening(ihc, listen);
            }
View Full Code Here

Examples of fr.soleil.salsa.client.entity.event.HookModel

    /* (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.client.entity.event.HookModel

     * @param ih
     * @param listen
     */
    private void enableListening(IHook ih, boolean listen) {
        if(ih == null) {return;}
        HookModel hm = (HookModel) ih;
       
        if(listen) {
            hm.addListener(listenerHook);
        } else {
            hm.removeListener(listenerHook);
        }
        if(ih.getCommandsList() != null) {
            for(IHookCommand ihc : ih.getCommandsList()) {
                enableListening(ihc, listen);
            }
View Full Code Here

Examples of fr.soleil.salsa.client.entity.event.HookModel

    /* (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.event.HookModel

    }

    @Override
    public IHook toModel() {
        if (model == null) {
            model = new HookModel(this);

            List<IHookCommand> commandListImpl = getCommandsList();
            if (commandListImpl != null) {
                List<IHookCommand> commandListModel = new ArrayList<IHookCommand>();
                for (IHookCommand hookCommandImpl : commandListModel) {
View Full Code Here

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

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

                        if (ahook.getStage() == stage) {
                            hook = ahook;
                        }
                    }
                    if (hook == null) {
                        hook = new HookModel();
                        hook.setStage(stage);
                        hookList.add(hook);
                    }

                    hook.setCommandsList(commandList);
View Full Code Here

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

     * @param ih
     * @param listen
     */
    private void enableListening(IHook ih, boolean listen) {
        if (ih instanceof HookModel) { // this test returns false if ih is null
            HookModel hm = (HookModel) ih;
            if (listen) {
                hm.addListener(listenerHook);
            }
            else {
                hm.removeListener(listenerHook);
            }
            if (ih.getCommandsList() != null) {
                for (IHookCommand ihc : ih.getCommandsList()) {
                    enableListening(ihc, listen);
                }
View Full Code Here

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

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

     */
    private void enableListening(IHook ih, boolean listen) {
        if (ih == null) {
            return;
        }
        HookModel hm = (HookModel) ih;

        if (listen) {
            hm.addListener(listenerHook);
        }
        else {
            hm.removeListener(listenerHook);
        }
        if (ih.getCommandsList() != null) {
            for (IHookCommand ihc : ih.getCommandsList()) {
                enableListening(ihc, listen);
            }
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.