Package org.swtpra1
Class OverviewView
- java.lang.Object
-
- org.swtpra1.OverviewView
-
public class OverviewView extends java.lang.Object
View that displays all currently running games and the option to inspect them in the game view.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.swing.JButton
getConnectButton()
Returns reference to the connect button.java.lang.String[][]
getGameInfo()
Parses the currently running games into displayable data in a table with 6 columns.javax.swing.JPanel
getPanel()
Returns the panel the view is on.javax.swing.JTextField
getTextField()
Returns reference to the textfield used to give a custom url.
-
-
-
Method Detail
-
getPanel
public javax.swing.JPanel getPanel()
Returns the panel the view is on.- Returns:
- JPanel object
-
getTextField
public javax.swing.JTextField getTextField()
Returns reference to the textfield used to give a custom url.- Returns:
- JTextField object
-
getConnectButton
public javax.swing.JButton getConnectButton()
Returns reference to the connect button.- Returns:
- JButton object
-
getGameInfo
public java.lang.String[][] getGameInfo()
Parses the currently running games into displayable data in a table with 6 columns.- Returns:
- display data if games exist; null otherwise
-
-