Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Migration to 5.0p CheckboxItem's issue

$
0
0
I am trying to migrate from SmartGwt 3.1p to 5.0p
( v8.3p_2013-02-08/LGPL Development Only (built 2013-02-08))
(SNAPSHOT_v10.1d_2014-09-08/LGPL Development Only (built 2014-09-08))

With 5.0p the CheckboxItem behaves differently. The difference is with methods setCheckedImage and setUncheckedImage. They work good with 3.1p (I can see images I wish to see instead of the ordinary ones) but the same code that uses these methods does not work with 5.0p.
I tested with FF 18.0.2 and with Chrome Version 39.0.2171.71 m


here is the sample code you can easily run an check
Code:


import com.google.gwt.core.client.EntryPoint;
import com.smartgwt.client.widgets.form.DynamicForm;
import com.smartgwt.client.widgets.form.fields.CheckboxItem;
import com.smartgwt.client.widgets.layout.VLayout;


public class TestFormCheckbox implements EntryPoint {
       
        @Override
        public void onModuleLoad() {

                  VLayout layout = new VLayout(10); 
                 
                final DynamicForm form = new DynamicForm(); 
                form.setWidth(400); 
                form.setColWidths(120, "*");
               
                CheckboxItem checkboxItem = new CheckboxItem(); 
                checkboxItem.setTitle("Checkbox"); 
                checkboxItem.setHeight(15);
               
                checkboxItem.setCheckedImage("[SKIN]/headerIcons/double_arrow_left.png");
                checkboxItem.setUncheckedImage("[SKIN]/headerIcons/double_arrow_right.png");
               
                checkboxItem.setValueIconWidth(15);
                checkboxItem.setValueIconHeight(15);

                form.setFields(checkboxItem); 
                layout.addMember(form);               
                         
                layout.draw(); 
    }
}

I would appreciate any help. Thank in advance.

Andrew G.

Viewing all articles
Browse latest Browse all 4756

Trending Articles