Package fr.soleil.salsa.entity.event

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


     * @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

TOP

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

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.