Package com.ardor3d.extension.ui.util

Examples of com.ardor3d.extension.ui.util.ButtonGroup


        check1.setEnabled(false);
        centerPanel.add(check1);
        final UICheckBox check2 = new UICheckBox("World");
        centerPanel.add(check2);

        final ButtonGroup group = new ButtonGroup();
        final UIRadioButton radio1 = new UIRadioButton();
        radio1.setButtonText("option [i]A[/i]", true);
        radio1.setGroup(group);
        centerPanel.add(radio1);
        final UIRadioButton radio2 = new UIRadioButton();
View Full Code Here


    /**
     * @param group
     *            the group this button should belong to. Removes the button from any group it currently belongs to.
     */
    public void setGroup(final ButtonGroup group) {
        final ButtonGroup oldGroup = _group;
        _group = group;

        if (oldGroup != null) {
            oldGroup.remove(this);
        }

        _group.add(this);
        if (isSelected()) {
            _group.setSelected(this, isSelected());
View Full Code Here

        final UILabel ballsLabel = new UILabel("# of balls:");
        ballsLabel.setLayoutData(new AnchorLayoutData(Alignment.TOP_LEFT, collide, Alignment.BOTTOM_LEFT, 0, -15));
        _configFrame.getContentPanel().add(ballsLabel);

        final ButtonGroup ballsGroup = new ButtonGroup();

        final UIRadioButton balls16 = new UIRadioButton("16");
        balls16.setLayoutData(new AnchorLayoutData(Alignment.LEFT, ballsLabel, Alignment.RIGHT, 5, 0));
        balls16.setSelectable(true);
        balls16.setSelected(true);
View Full Code Here

        check1.setEnabled(false);
        centerPanel.add(check1);
        final UICheckBox check2 = new UICheckBox("World");
        centerPanel.add(check2);

        final ButtonGroup group = new ButtonGroup();
        final UIRadioButton radio1 = new UIRadioButton();
        radio1.setButtonText("option [i]A[/i]", true);
        radio1.setGroup(group);
        centerPanel.add(radio1);
        final UIRadioButton radio2 = new UIRadioButton();
View Full Code Here

TOP

Related Classes of com.ardor3d.extension.ui.util.ButtonGroup

Copyright © 2018 www.massapicom. 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.