Hi,
We are using Smart Gwt-5.1
Browser: Google Chrome
version: 47.0.2526.106 m
Issue: Mouse pointer changes to Default from HAND when form has disabled and enabled.
1. Initially DateItem on Mouse over shows mouse pointer as HAND.
2. When we disable/enable form items using form.disable() and form.enable(), DateItem on Mouse over shows mouse pointer as DEFAULT.
Please find the sample code.
public void onModuleLoad() {
final VLayout sampleVLayout=new VLayout();
sampleVLayout.setWidth(250);
sampleVLayout.setHeight(500);
final DynamicForm dateitemForm = new DynamicForm();
dateitemForm.setWidth(300);
final DynamicForm checkboxForm = new DynamicForm();
checkboxForm.setWidth(300);
final DateItem orderDate = new DateItem();
orderDate.setName("orderDate");
orderDate.setTitle("Order Placed");
orderDate.setRequired(true);
CheckboxItem onOrder = new CheckboxItem();
onOrder.setName("onOrder");
onOrder.setTitle("Shipment on order");
onOrder.setRedrawOnChange(true);
onOrder.setWidth(50);
onOrder.setValue(true);
onOrder.show();
onOrder.addChangedHandler(new ChangedHandler() {
@Override
public void onChanged(ChangedEvent event) {
if(Boolean.parseBoolean(event.getValue().toString())){
dateitemForm.enable();
}
else{
dateitemForm.disable();
}
}
});
dateitemForm.setFields(orderDate);
checkboxForm.setFields(onOrder);
sampleVLayout.addMembers(checkboxForm,dateitemForm);
sampleVLayout.draw();
}
Please suggest some soluiton
We are using Smart Gwt-5.1
Browser: Google Chrome
version: 47.0.2526.106 m
Issue: Mouse pointer changes to Default from HAND when form has disabled and enabled.
1. Initially DateItem on Mouse over shows mouse pointer as HAND.
2. When we disable/enable form items using form.disable() and form.enable(), DateItem on Mouse over shows mouse pointer as DEFAULT.
Please find the sample code.
public void onModuleLoad() {
final VLayout sampleVLayout=new VLayout();
sampleVLayout.setWidth(250);
sampleVLayout.setHeight(500);
final DynamicForm dateitemForm = new DynamicForm();
dateitemForm.setWidth(300);
final DynamicForm checkboxForm = new DynamicForm();
checkboxForm.setWidth(300);
final DateItem orderDate = new DateItem();
orderDate.setName("orderDate");
orderDate.setTitle("Order Placed");
orderDate.setRequired(true);
CheckboxItem onOrder = new CheckboxItem();
onOrder.setName("onOrder");
onOrder.setTitle("Shipment on order");
onOrder.setRedrawOnChange(true);
onOrder.setWidth(50);
onOrder.setValue(true);
onOrder.show();
onOrder.addChangedHandler(new ChangedHandler() {
@Override
public void onChanged(ChangedEvent event) {
if(Boolean.parseBoolean(event.getValue().toString())){
dateitemForm.enable();
}
else{
dateitemForm.disable();
}
}
});
dateitemForm.setFields(orderDate);
checkboxForm.setFields(onOrder);
sampleVLayout.addMembers(checkboxForm,dateitemForm);
sampleVLayout.draw();
}
Please suggest some soluiton
Comment