lbl.setStyleName("gwt-BehaviorsPopupPanel");
verticalPanel.add(lbl);
}
if (b instanceof BooleanBehavior) {
BooleanBehavior bb = (BooleanBehavior) b;
final IpSliderBar51 ipSliderBar51OnOff = new IpSliderBar51("Off", "On");
verticalPanel.add(ipSliderBar51OnOff);
ipSliderBar51OnOff.setValue(bb.getValue() ? 1 : 0);
ipSliderBar51OnOff.setStyleName("gwt-BehaviorsPopupPanel");
ipSliderBar51OnOff.addStyleName("widget");
ipSliderBar51OnOff.addBarValueChangedHandler(new BarValueChangedHandler() {
@Override
public void onBarValueChanged(BarValueChangedEvent event) {
// TODO Auto-generated method stub
if (((BooleanBehavior) b).getValue() != Boolean.valueOf(ipSliderBar51OnOff.getValue() != 0)) {
EnvironmentsController.changeBehavior(obj.getName(), b.getName(), Boolean.valueOf(ipSliderBar51OnOff.getValue() != 0).toString());
}
}
});
//verticalPanel.add(horizontalPanel);