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

CheckboxItem not showing _Over images

$
0
0
I'm having trouble getting a CheckboxItem to show _Over images.

According to the JavaDoc for the CheckboxItem, it appears that the CheckboxItem should default to showing the checked_Over.gif and unchecked_Over.gif when the CheckboxItem is moused over. Here is the JavaDoc that leads me to that conclusion:

Code:

    /**
    * URL for the image to display when this checkbox is selected, or checked. <P> This image is implemented using the {@link
    * com.smartgwt.client.widgets.form.fields.FormItem#getValueIcons valueIcons subsystem}, and may be modified via the
    * standard valueIcons properties such as {@link com.smartgwt.client.widgets.form.fields.CheckboxItem#getValueIconWidth
    * valueIconWidth} <P> Note that this is the base image name - if {@link
    * com.smartgwt.client.widgets.form.fields.CheckboxItem#getShowValueIconOver showValueIconOver} et al are set, the state
    * (<code>"Over"</code>, <code>"Down"</code> and <code>"Disabled"</code>) will be added to this name as the user interacts
    * with the checkbox, as well as the  <code>".gif"</code> extension
    *
    * @param checkedImage  See {@link com.smartgwt.client.docs.SCImgURL SCImgURL} . Default value is "[SKIN]/DynamicForm/checked.gif"
    * @see com.smartgwt.client.docs.Appearance Appearance overview and related methods
    */
    public void setCheckedImage(String checkedImage) {
        setAttribute("checkedImage", checkedImage);
    }

...

    /**
    * Should an "Over" state icon be shown when the user rolls over this checkbox
    * <p><b>Note : </b> This is an advanced setting</p>
    *
    * @param showValueIconOver  Default value is true
    */
    public void setShowValueIconOver(Boolean showValueIconOver) {
        setAttribute("showValueIconOver", showValueIconOver);
    }

The Showcase also appears to not be showing the Over state as well. If you hover over the CheckboxItem's in these demos, the rollover is not shown:

http://www.smartclient.com/smartgwt/showcase/#main
http://www.smartclient.com/smartgwt/showcase/#form_controls_various

Is this a bug, or did I miss something?

Thanks,
Chris

Viewing all articles
Browse latest Browse all 4756

Trending Articles