List of usage examples for com.badlogic.gdx.scenes.scene2d.utils Disableable setDisabled
public void setDisabled(boolean isDisabled);
From source file:com.kotcrab.vis.ui.util.form.SimpleFormValidator.java
License:Apache License
private void updateWidgets() { for (Disableable disableable : disableTargets) { disableable.setDisabled(formInvalid); }/*from w ww .ja v a 2s . co m*/ if (messageLabel != null) { if (errorMsgText != null) { messageLabel.setText(errorMsgText); } else { messageLabel.setText(successMsg); //setText will default to "" if successMsg is null } Color targetColor = errorMsgText != null ? style.errorLabelColor : style.validLabelColor; if (targetColor != null && style.colorTransitionDuration != 0) { messageLabel.addAction(Actions.color(targetColor, style.colorTransitionDuration)); } else { messageLabel.setColor(targetColor); } } }