Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.kie.workbench.common.screens.home.client.widgets.carousel;
 
A Carousel image
public class CarouselEntryWidget extends Widget {
    interface CarouselItemBinder
            extends
            UiBinder<DivElementCarouselEntryWidget> {
    }
    private static CarouselItemBinder uiBinder = GWT.createCarouselItemBinder.class );
    @UiField
    @UiField
    @UiField
    public CarouselEntryWidget() {
        setElement.createAndBindUithis ) );
    }
    public void setActivefinal boolean active ) {
        if ( active ) {
            getElement().addClassName"active" );
        } else {
            getElement().removeClassName"active" );
        }
    }
    public void setImageUrifinal SafeUri uri ) {
        .setSrcuri.asString() );
    }
    public void setHeadingfinal SafeHtml heading ) {
        .setInnerTextheading.asString() );
    }
    public void setSubHeadingfinal SafeHtml subHeading ) {
        .setInnerTextsubHeading.asString() );
    }
New to GrepCode? Check out our FAQ X