Class MainGUI
- java.lang.Object
-
- io.github.oliviercailloux.j_voting.profiles.gui.MainGUI
-
public class MainGUI extends Object
Home GUI allowing to load a profile and then select how to display it
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.eclipse.swt.widgets.Display
display
protected static String
fileExtension
protected static String
fileToRead
protected org.eclipse.swt.layout.GridData
gridData
protected static org.eclipse.swt.widgets.Label
label
protected static org.eclipse.swt.widgets.Shell
mainShell
protected static String[]
profileToRead
protected static org.eclipse.swt.widgets.Button
selectFileToReadButton
protected static org.eclipse.swt.widgets.Button
socColumnsGUIButton
protected static org.eclipse.swt.widgets.Button
socRowsGUIButton
protected static org.eclipse.swt.widgets.Button
socWrappedColumnsGUIButton
protected static org.eclipse.swt.widgets.Button
soicolumnsGUIButton
protected static org.eclipse.swt.widgets.Button
soiRowsGUIButton
protected static org.eclipse.swt.widgets.Button
soiWrappedColumnsGUIButton
-
Constructor Summary
Constructors Constructor Description MainGUI()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createSOCButtons()
Instantiates and set characteristics of SOC buttons with their specific behaviors.void
createSOIButtons()
Instantiates and set characteristics of SOI buttons with their specific behaviors.void
displayGUI()
void
displayMessageNoFileLoaded()
void
displaySOCButtons()
Displays SOC buttons and hides SOI onesvoid
displaySOIButtons()
Displays SOI buttons and hides SOC onesstatic void
main(String[] args)
-
-
-
Field Detail
-
display
protected static final org.eclipse.swt.widgets.Display display
-
mainShell
protected static final org.eclipse.swt.widgets.Shell mainShell
-
gridData
protected org.eclipse.swt.layout.GridData gridData
-
label
protected static final org.eclipse.swt.widgets.Label label
-
selectFileToReadButton
protected static final org.eclipse.swt.widgets.Button selectFileToReadButton
-
socColumnsGUIButton
protected static org.eclipse.swt.widgets.Button socColumnsGUIButton
-
soicolumnsGUIButton
protected static org.eclipse.swt.widgets.Button soicolumnsGUIButton
-
socRowsGUIButton
protected static org.eclipse.swt.widgets.Button socRowsGUIButton
-
soiRowsGUIButton
protected static org.eclipse.swt.widgets.Button soiRowsGUIButton
-
socWrappedColumnsGUIButton
protected static org.eclipse.swt.widgets.Button socWrappedColumnsGUIButton
-
soiWrappedColumnsGUIButton
protected static org.eclipse.swt.widgets.Button soiWrappedColumnsGUIButton
-
fileToRead
protected static String fileToRead
-
fileExtension
protected static String fileExtension
-
profileToRead
protected static String[] profileToRead
-
-
Method Detail
-
displayGUI
public void displayGUI()
-
createSOCButtons
public void createSOCButtons()
Instantiates and set characteristics of SOC buttons with their specific behaviors.
-
createSOIButtons
public void createSOIButtons()
Instantiates and set characteristics of SOI buttons with their specific behaviors.
-
displaySOCButtons
public void displaySOCButtons()
Displays SOC buttons and hides SOI ones
-
displaySOIButtons
public void displaySOIButtons()
Displays SOI buttons and hides SOC ones
-
displayMessageNoFileLoaded
public void displayMessageNoFileLoaded()
-
main
public static void main(String[] args)
-
-