コード例 #1
0
 private void setPlayerNameButtonText() {
   final FLabel btn = view.getBtnPlayerName();
   final String name = prefs.getPref(FPref.PLAYER_NAME);
   btn.setText(StringUtils.isBlank(name) ? "Human" : name);
 }
コード例 #2
0
 private void initializePlayerNameButton() {
   final FLabel btn = view.getBtnPlayerName();
   setPlayerNameButtonText();
   btn.setCommand(getPlayerNameButtonCommand());
 }