Class AbstractGameConnectionDialog

All Implemented Interfaces:
ActionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, RootPaneContainer, WindowConstants
Direct Known Subclasses:
ConnectDialog, HostDialog

public abstract class AbstractGameConnectionDialog extends ClientDialog implements ActionListener
See Also:
  • Constructor Details

    • AbstractGameConnectionDialog

      protected AbstractGameConnectionDialog(JFrame owner, String title, boolean modal, String playerName)
    • AbstractGameConnectionDialog

      protected AbstractGameConnectionDialog(JFrame owner, String title, boolean modal, String playerName, Vector<String> playerNames)
  • Method Details

    • createMiddlePanel

      protected abstract JPanel createMiddlePanel()
    • createButtons

      protected void createButtons()
    • getPlayerName

      public String getPlayerName()
    • setPlayerName

      public void setPlayerName(String playerName)
    • getPlayerNameFromUI

      public String getPlayerNameFromUI()
    • getPort

      public int getPort()
    • setPort

      public void setPort(int port)
    • isConfirmed

      public boolean isConfirmed()
    • setConfirmed

      public void setConfirmed(boolean confirmed)
    • getPlayerNameField

      public JComponent getPlayerNameField()
    • addPlayerNameActionListener

      public void addPlayerNameActionListener(ActionListener listener)
    • getPortField

      public JTextField getPortField()
    • setPortField

      public void setPortField(JTextField portField)
    • getClientPreferences

      protected ClientPreferences getClientPreferences()
    • dataValidation

      public boolean dataValidation(String errorTitleKey)
    • actionPerformed

      public void actionPerformed(ActionEvent e)
      Specified by:
      actionPerformed in interface ActionListener