public static VisTextField createTextField(String style, boolean textCursor) {
   VisTextField visTextField = new VisTextField();
   Skin skin = VisUI.getSkin();
   visTextField.setStyle(skin.get(style, VisTextField.VisTextFieldStyle.class));
   if (textCursor) visTextField.addListener(new CursorListener(CursorManager.TEXT));
   return visTextField;
 }
  private void setListeners() {
    physicsEnabledCheckBox.addListener(new CheckBoxChangeListener(getUpdateEventName()));
    gravityXTextField.addListener(new KeyboardListener(getUpdateEventName()));
    gravityYTextField.addListener(new KeyboardListener(getUpdateEventName()));
    sleepVelocityTextField.addListener(new KeyboardListener(getUpdateEventName()));
    enableLightsCheckBox.addListener(new CheckBoxChangeListener(getUpdateEventName()));
    diffuseCheckBox.addListener(new CheckBoxChangeListener(getUpdateEventName()));

    ambientColorComponent.addListener(
        new ClickListener() {
          public void touchUp(InputEvent event, float x, float y, int pointer, int button) {
            super.touchUp(event, x, y, pointer, button);
            facade.sendNotification(AMBIENT_COLOR_BUTTON_CLICKED);
          }
        });
  }
 @Override
 public void process(
     final LmlParser parser,
     final LmlTag tag,
     final VisTextField actor,
     final String rawAttributeData) {
   final String passwordCharacter = parser.parseString(rawAttributeData, actor);
   if (Strings.isEmpty(passwordCharacter)) {
     parser.throwError(
         "Password character setting cannot be empty. String with length of 1 is required.");
   } else if (passwordCharacter.length() != 1) {
     parser.throwErrorIfStrict(
         "String with length of 1 is required for password character setting.");
   }
   // At this point, string must have at least 1 character.
   actor.setPasswordCharacter(passwordCharacter.charAt(0));
 }
 public void setName(String name) {
   nameField.setText(name);
 }
 public String getName() {
   return nameField.getText();
 }
 public String getSleepVelocityValue() {
   return sleepVelocityTextField.getText();
 }
 public String getGravityYValue() {
   return gravityYTextField.getText();
 }
 protected VisTextField createTextField(
     String text, VisTextField.TextFieldFilter textFieldFilter) {
   VisTextField visTextField = createTextField(text);
   visTextField.setTextFieldFilter(textFieldFilter);
   return visTextField;
 }
 public static VisTextField createTextField(
     String style, VisTextField.TextFieldFilter textFieldFilter) {
   VisTextField visTextField = createTextField(style);
   visTextField.setTextFieldFilter(textFieldFilter);
   return visTextField;
 }
 public static VisTextField createTextField(String style) {
   VisTextField visTextField = new VisTextField("", style);
   visTextField.addListener(new CursorListener(CursorManager.TEXT));
   return visTextField;
 }