/**
* Reset this {@link PlayerSeatComposite}, indicating an empty seat which
* may be occupied by clicking on it
*/
public void updatePlayerInfo() {
PlayerState player = null;
if (playerId != null) {
player = getGameState().getPlayer(playerId);
}
String displayedName = (name == null) ? "Empty Seat" : name;
if (player != null && false ) {//TODO !player.sitsIn()
displayedName = displayedName.concat(" (Sitting Out)");
}
playerName.setText(displayedName);
if (player == null) {
name = null;
return;
}
playerStack.setText(ClientGUI.formatBet(player.getStack()));
playerStack.pack(true);
holeCardsComposite.redraw();
timerAction.cancel(true);
layout(true);
}