List of usage examples for javafx.scene.control TextField getPseudoClassStates
public final ObservableSet<PseudoClass> getPseudoClassStates()
From source file:dsfixgui.view.DSFSavesPane.java
public boolean hasInvalidInputs() { ArrayList<TextField> fields = new ArrayList(); fields.add(saveIntervalField);/*www .j av a 2s .co m*/ fields.add(maxSavesField); for (TextField field : fields) { if (field.getPseudoClassStates().toString().contains("invalid")) { return true; } } return false; }
From source file:dsfixgui.view.DSFHudPane.java
public boolean hasInvalidInputs() { ArrayList<TextField> fields = new ArrayList(); fields.add(hudScaleField);//from w w w . j a v a 2 s. c o m fields.add(topLeftHUDOpField); fields.add(bottomLeftHUDOpField); fields.add(bottomRightHUDOpField); for (TextField field : fields) { if (field.getPseudoClassStates().toString().contains("invalid")) { return true; } } return false; }
From source file:dsfixgui.view.DSFGraphicsPane.java
public boolean hasInvalidInputs() { ArrayList<TextField> fields = new ArrayList(); fields.add(fpsLimitField);// www .j av a 2s .com fields.add(fpsThresholdField); fields.add(renderWidthField); fields.add(renderHeightField); fields.add(presentWidthField); fields.add(presentHeightField); for (TextField field : fields) { if (field.getPseudoClassStates().toString().contains("invalid")) { return true; } } return false; }