use of ivorius.reccomplex.gui.GuiValidityStateIndicator in project RecurrentComplex by Ivorforce.
the class TableCellTextField method initGui.
@Override
public void initGui(GuiTable screen) {
super.initGui(screen);
Bounds bounds = bounds();
if (textField == null)
textField = new GuiTextField(0, getFontRenderer(), 0, 0, 0, 0);
updateTextFieldBounds(bounds);
textField.setMaxStringLength(maxStringLength);
textField.setText(serialize(getPropertyValue()));
textField.setVisible(!isHidden());
textField.setEnabled(enabled);
if (showsValidityState()) {
stateIndicator = new GuiValidityStateIndicator(bounds.getMaxX() - 12, bounds.getCenterY() - 5, GuiValidityStateIndicator.State.UNKNWON);
updateValidityStateIndicator();
stateIndicator.setVisible(!isHidden());
} else {
stateIndicator = null;
}
}
Aggregations