Package limelight.builtin.players

Source Code of limelight.builtin.players.RadioButton

package limelight.builtin.players;

import limelight.ui.events.panel.PanelEvent;
import limelight.ui.model.PropPanel;
import limelight.ui.model.inputs.RadioButtonPanel;

public class RadioButton
{
  private PropPanel propPanel;
  private RadioButtonPanel buttonPanel;

  public void install(PanelEvent event)
  {
    buttonPanel = new RadioButtonPanel();
    propPanel = (PropPanel)event.getRecipient();
    propPanel.add(buttonPanel);
    propPanel.getBackstage().put("radio-button", this);
  }

  public PropPanel getPropPanel()
  {
    return propPanel;
  }

  public RadioButtonPanel getButtonPanel()
  {
    return buttonPanel;
  }

  public boolean isSelected()
  {
    return buttonPanel.isSelected();
  }

  public void setSelected(boolean b)
  {
    buttonPanel.setSelected(b);
  }

  public void select()
  {
    buttonPanel.setSelected(true);
  }

  public String getGroup()
  {
    return buttonPanel.getGroup();
  }

  public void setGroup(String group)
  {
    buttonPanel.setGroup(group);
  }
}
TOP

Related Classes of limelight.builtin.players.RadioButton

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.