Package autotest.common.ui

Source Code of autotest.common.ui.RadioChooserDisplay

package autotest.common.ui;

import autotest.afe.IRadioButton;
import autotest.afe.IRadioButton.RadioButtonImpl;

import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.Panel;

public class RadioChooserDisplay extends Composite implements RadioChooser.Display {
    private Panel container = new HorizontalPanel();

    public RadioChooserDisplay() {
        initWidget(container);
        setStyleName("radio-chooser");
    }

    public IRadioButton generateRadioButton(String groupName, String choice) {
        RadioButtonImpl radioButton = new RadioButtonImpl(groupName, choice);
        container.add(radioButton);
        return radioButton;
    }
}
TOP

Related Classes of autotest.common.ui.RadioChooserDisplay

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.