Package limelight.builtin.players

Source Code of limelight.builtin.players.CheckBox

package limelight.builtin.players;

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

public class CheckBox
{
  private PropPanel propPanel;
  private CheckBoxPanel checkBoxPanel;

  public void install(PanelEvent event)
  {
    checkBoxPanel = new CheckBoxPanel();
    propPanel = (PropPanel)event.getRecipient();
    propPanel.add(checkBoxPanel);
    propPanel.getBackstage().put("check-box", this);
  }

  public PropPanel getPropPanel()
  {
    return propPanel;
  }

  public CheckBoxPanel getCheckBoxPanel()
  {
    return checkBoxPanel;
  }

  public boolean isChecked()
  {
    return checkBoxPanel.isSelected();
  }

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

  public void setChecked(boolean b)
  {
    checkBoxPanel.setSelected(b);
  }

  public void setSelected(boolean b)
  {
    checkBoxPanel.setSelected(b);
  }
}
TOP

Related Classes of limelight.builtin.players.CheckBox

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.