Package limelight.builtin.players

Source Code of limelight.builtin.players.TextBox

package limelight.builtin.players;

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

public class TextBox
{

  public TextBoxPanel textBoxPanel;
  public PropPanel propPanel;

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

  public PropPanel getPropPanel()
  {
    return propPanel;
  }

  public TextBoxPanel getTextBoxPanel()
  {
    return textBoxPanel;
  }

  public boolean isPassword()
  {
    return textBoxPanel.isInPasswordMode();
  }

  public void setPassword(boolean b)
  {
    textBoxPanel.setInPasswordMode(b);
  }
}
TOP

Related Classes of limelight.builtin.players.TextBox

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.