Package it.freedomotic.objects

Examples of it.freedomotic.objects.ListBehaviorLogic


        });
        registerBehavior(channel);


        //linking this property with the behavior defined in the XML
        input = new ListBehaviorLogic((ListBehavior) getPojo().getBehavior("input"));
        input.addListener(new ListBehaviorLogic.Listener() {
            @Override
            public void selectedChanged(Config params, boolean fireCommand) {
                if (fireCommand) {
                    executeSetInput(params);
                } else {
                    setInput(params.getProperty("value"));
                }
            }
        });
        registerBehavior(input);

        //linking this powered property with the muted behavior defined in the XML
        muted = new BooleanBehaviorLogic((BooleanBehavior) getPojo().getBehavior("muted"));
        muted.addListener(new BooleanBehaviorLogic.Listener() {
            @Override
            public void onTrue(Config params, boolean fireCommand) {
                if (fireCommand) {
                    executeSetMuteOn(params);
                } else {
                    setMuteOn();
                }
            }

            @Override
            public void onFalse(Config params, boolean fireCommand) {
                if (fireCommand) {
                    executeSetMuteOff(params);
                } else {
                    setMuteOff();
                }
            }
        });
        registerBehavior(muted);

        //linking this powered property with the avSelection behavior defined in the XML
        avSelection = new ListBehaviorLogic((ListBehavior) getPojo().getBehavior("avselection"));
        avSelection.addListener(new ListBehaviorLogic.Listener() {
            @Override
            public void selectedChanged(Config params, boolean fireCommand) {
                if (fireCommand) {
                    executeSetAVSelection(params);
                } else {
                    setAVSelection(params.getProperty("value"));
                }
            }
        });
        registerBehavior(avSelection);

        //linking this powered property with the screenMode behavior defined in the XML
        screenMode = new ListBehaviorLogic((ListBehavior) getPojo().getBehavior("screenMode"));
        screenMode.addListener(new ListBehaviorLogic.Listener() {
            //TODO: in the kuro the screen modes available depends of the source.
            @Override
            public void selectedChanged(Config params, boolean fireCommand) {
                if (fireCommand) {
View Full Code Here


        });
        //register this behavior to the superclass to make it visible to it
        registerBehavior(saturation);

        //linking this powered property with the screenMode behavior defined in the XML
        effect = new ListBehaviorLogic((ListBehavior) getPojo().getBehavior(BEHAVIOR_EFFECT));
        effect.addListener(new ListBehaviorLogic.Listener() {
            //TODO: in the kuro the screen modes available depends of the source.

            @Override
            public void selectedChanged(Config params, boolean fireCommand) {
View Full Code Here

            public void onFalse(Config params, boolean fireCommand) {
                setNotPresent();
            }
        });

        activity = new ListBehaviorLogic((ListBehavior) getPojo().getBehavior(BEHAVIOR_ACTIVITY));
        activity.addListener(new ListBehaviorLogic.Listener() {
            @Override
            public void selectedChanged(Config params, boolean fireCommand) {
                String oldActivity = activity.getSelected();
                //in "value" property is stored the name of the new selection. It is a value from the list for sure and it is not the current one, already checked.
View Full Code Here

TOP

Related Classes of it.freedomotic.objects.ListBehaviorLogic

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.