m_deviceProxy.write_attribute(new DeviceAttribute(attributeName, currentBoolean));
// Initialize the component
initFirstDevice();
final AttributeBooleanComboBox widget = new AttributeBooleanComboBox.Builder(m_deviceName,
attributeName).jframe(jf1).build();
Sleeper.SECONDS.sleep(4);
JComboBox comboBox = getComboBox(jf1);
// Check if it has get the right value
assertTrue("The component doesn't got the attribute value",
waitBooleanValue(m_deviceProxy, attributeName, getBooleanValue(widget), 0));
// Tooltip test (not working with ATK)
// toolTiptest(m_deviceName + "/" + attributeName, comboBox);
// switch the combo state
currentBoolean = switchComboBoxState(widget);
// .... check the device update
assertTrue("write failed",
waitBooleanValue(m_deviceProxy, attributeName, currentBoolean, 2000));
comboBox.setFocusable(false);
// Write into the attribute and check if the component is updated
controlWriteBooleanAttUpdateComboBox(m_deviceProxy, widget, comboBox,
attributeName, false, 1);
// SetData test
controlWriteBooleanValue(m_deviceProxy, widget, attributeName);
// Write into attribute and check notification
// TODO Must be done with IWidgetListener instead
// controlReadBooleanValueChange(m_deviceProxy, widget, attributeName);
// Write into component and check notification
// TODO Must be done with IWidgetListener instead
// controlBooleanValueChange(comboBox, widget);
// txtField.setFocusable(true);
// Passer en userEnabled � false
widget.setUserEnabled(false);
Sleeper.SECONDS.sleep(1);
assertFalse("The ComboBox has to be disabled", comboBox.isEnabled());
widget.setUserEnabled(true);
Sleeper.SECONDS.sleep(1);
assertTrue("The ComboBox has to be enabled", comboBox.isEnabled() );
widget.stop();
jf1.dispose();
}