All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.gwtbootstrap.client.ui.Thumbnail Maven / Gradle / Ivy

There is a newer version: 2.3.2.0
Show newest version
package com.github.gwtbootstrap.client.ui;

import com.github.gwtbootstrap.client.ui.base.DivWidget;
import com.github.gwtbootstrap.client.ui.base.HasSize;
import com.github.gwtbootstrap.client.ui.base.ListItem;
import com.github.gwtbootstrap.client.ui.base.SizeHelper;
import com.github.gwtbootstrap.client.ui.constants.Constants;
import com.google.gwt.user.client.ui.Widget;

/**
 * The Thumbnail container
 * 
 * @since 2.2.1.0
 * @author ohashi keisuke
 * @see Thumbnails
 * @see ThumbnailLink
 * @see Twitter Bootstrap Documentation
 */
public class Thumbnail extends ListItem implements HasSize {

    DivWidget thumbnail = new DivWidget();
    
    /**
     * Create an empty widget.
     */
    public Thumbnail() {
        super();
        thumbnail.setStyleName(Constants.THUMBNAIL);
        super.add(thumbnail);
    }
    
    /**
     * {@inheritDoc}
     */
    @Override
    public void add(Widget w) {
        thumbnail.add(w);
    }
    
    /**
     * {@inheritDoc}
     */
    @Override
    public boolean remove(Widget w) {
        return thumbnail.remove(w);
    }
    
    /**
     * {@inheritDoc}
     */
    @Override
    public void clear() {
        thumbnail.clear();
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public void setSize(int size) {
        SizeHelper.setSize(this, size);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy