});
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) {