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

eu.future.earth.gwt.client.ui.panels.BaseButtonPanel Maven / Gradle / Ivy

The newest version!
/*
 * Copyright 2009 EasyEnterprise, all rights reserved.
 */
package eu.future.earth.gwt.client.ui.panels;

import java.util.List;

import com.google.gwt.uibinder.client.UiChild;
import com.google.gwt.user.client.ui.Widget;

public abstract class BaseButtonPanel extends ResizeCompositeNoError {

    public BaseButtonPanel() {
        super();
    }

    abstract public void clearButtons();

    abstract public int numberOfButtons();

    @UiChild(tagname = "addButton")
    abstract public void addButton(Widget button);

    public void setChildren(List children) {
        if (children != null) {
            for (Widget child : children) {
                addButton(child);
            }
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy