@Override public void updateScreen() { if (!lastTickName.equals(nameBox.getText())) { lastTickName = nameBox.getText(); clone.setName(lastTickName); clone.getSyncer().sendValueToServer(Syncer.ID_NAME); } else if (!nameBox.isFocused() && !nameBox.getText().equals(clone.nameUnedited)) { nameBox.setText(clone.nameUnedited); } nameBox.updateCursorCounter(); }
@Override public void updateScreen() { searchBar.updateCursorCounter(); if (searchBar.isFocused()) { searchBar.setVisible(true); } else { searchBar.setVisible(enabledSearchBar); } if (favourite > 0) { favourite--; } }
@Override public void updateScreen() { // Makes the cursor on the text box blink. super.updateScreen(); try { babyNameTextField.updateCursorCounter(); if (babyNameTextField.getText().isEmpty()) { doneButton.enabled = false; } else { doneButton.enabled = true; } } catch (NullPointerException e) { } }
@Override public void updateScreen() { super.updateScreen(); if (textboxHeat != null) textboxHeat.updateCursorCounter(); }
@Override public void updateScreen() { super.updateScreen(); filterTextField.updateCursorCounter(); }