public class CDC_UI
extends java.lang.Object
implements client.UI
UI
Modifier and Type | Field and Description |
---|---|
private javax.swing.JTextField |
Account_TextField |
private javax.swing.JTextField |
AIArg_TextField |
private javax.swing.JTextField |
AIPath_TextField |
private javax.swing.JTextField |
BoardPath_TextField |
private javax.swing.JPanel |
CDC_Panel |
private javax.swing.ButtonGroup |
ChangeFirstMove_Gp |
private javax.swing.JRadioButton |
ConnectMode_4 |
private javax.swing.ButtonGroup |
ConnectMode_Gp |
private javax.swing.JFileChooser |
fileChooser |
private javax.swing.ButtonGroup |
FirstMove_Gp |
private javax.swing.JTextField |
IP_TextField |
private javax.swing.JCheckBox |
LocalServer_CheckBox |
private javax.swing.JTextField |
LongCatch_TextField |
private javax.swing.JRadioButton |
MidBoard_1 |
private javax.swing.JRadioButton |
MidBoard_2 |
private javax.swing.JRadioButton |
MidBoard_3 |
private javax.swing.ButtonGroup |
MidBoard_Gp |
private javax.swing.JTextField |
NoEatFlip_TextField |
private javax.swing.JTextField |
OnePlyTime_TextField |
private javax.swing.ButtonGroup |
OpeningMode_Gp |
private javax.swing.JTextField |
Password_TextField |
private javax.swing.JTextField |
PlyShare_TextField |
private javax.swing.JTextField |
RepeatTime_TextField |
private javax.swing.JRadioButton |
RoomType_1 |
private javax.swing.JRadioButton |
RoomType_2 |
private javax.swing.JRadioButton |
RoomType_3 |
private javax.swing.ButtonGroup |
RoomType_Gp |
private client.SettingFile |
setting |
private javax.swing.JRadioButton |
StartMode_1 |
private javax.swing.JRadioButton |
StartMode_2 |
private javax.swing.ButtonGroup |
StartMode_Gp |
private javax.swing.JTextField |
TimeLimit_TextField |
private javax.swing.JTextField |
TimePerOpening_TextField |
private javax.swing.JComboBox<java.lang.String> |
TimerMode_ComboBox |
private WDLBScore |
wdlbScore |
private javax.swing.JLabel |
WDLBScore_Label |
Constructor and Description |
---|
CDC_UI()
constructor,設定所有的欄位、按鈕等。
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
checkAllDone(client.Room_SettingFile room_setting)
當使用者按下連線按鈕的時候,需要檢查輸入的值是否合法或者都完成了。
|
client.SettingFile |
getSetting()
回傳此遊戲設定的 class。
|
java.awt.Component[] |
getTabOrder(javax.swing.JButton Connect_Button)
回傳按下 Tab 之後 Component 需要 focus 的順序。
|
javax.swing.JPanel |
getUIPanel()
Client 用來取得設定頁面的 JPanel。
|
private final javax.swing.ButtonGroup RoomType_Gp
private final javax.swing.ButtonGroup StartMode_Gp
private final javax.swing.ButtonGroup MidBoard_Gp
private final javax.swing.ButtonGroup FirstMove_Gp
private final javax.swing.ButtonGroup ChangeFirstMove_Gp
private final javax.swing.ButtonGroup ConnectMode_Gp
private final javax.swing.ButtonGroup OpeningMode_Gp
private javax.swing.JTextField Password_TextField
private javax.swing.JTextField RepeatTime_TextField
private javax.swing.JTextField TimeLimit_TextField
private javax.swing.JTextField OnePlyTime_TextField
private javax.swing.JTextField PlyShare_TextField
private javax.swing.JTextField LongCatch_TextField
private javax.swing.JTextField NoEatFlip_TextField
private javax.swing.JTextField IP_TextField
private javax.swing.JTextField BoardPath_TextField
private javax.swing.JTextField AIPath_TextField
private javax.swing.JTextField Account_TextField
private javax.swing.JPanel CDC_Panel
private javax.swing.JRadioButton RoomType_1
private javax.swing.JRadioButton RoomType_2
private javax.swing.JRadioButton RoomType_3
private javax.swing.JRadioButton StartMode_1
private javax.swing.JRadioButton StartMode_2
private javax.swing.JRadioButton MidBoard_1
private javax.swing.JRadioButton MidBoard_2
private javax.swing.JRadioButton MidBoard_3
private javax.swing.JRadioButton ConnectMode_4
private javax.swing.JCheckBox LocalServer_CheckBox
private javax.swing.JFileChooser fileChooser
private client.SettingFile setting
private javax.swing.JComboBox<java.lang.String> TimerMode_ComboBox
private javax.swing.JTextField AIArg_TextField
private javax.swing.JTextField TimePerOpening_TextField
private javax.swing.JLabel WDLBScore_Label
private WDLBScore wdlbScore
public javax.swing.JPanel getUIPanel()
getUIPanel
in interface client.UI
public java.lang.String checkAllDone(client.Room_SettingFile room_setting)
checkAllDone
in interface client.UI
public client.SettingFile getSetting()
getSetting
in interface client.UI
public java.awt.Component[] getTabOrder(javax.swing.JButton Connect_Button)
getTabOrder
in interface client.UI