public class GUI
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
(package private) class |
GUI.EventListener
Event handler for the main GUI class.
|
Modifier and Type | Field and Description |
---|---|
protected ExtractionController |
controller
The applications
ExtractionController |
EventsTab |
eventTab
GUI tab to display occurring events
|
HelpTab |
helpTab
GUI tab that shows usage help
|
protected javax.swing.JFrame |
mainFrame |
static javax.swing.Icon |
PLAY |
static javax.swing.Icon |
PROADD |
static javax.swing.Icon |
PROADDT |
static javax.swing.Icon |
PRODEL |
ProfileTab |
profileTab
GUI tab with the list of
Profile s |
static javax.swing.Icon |
SNAPSHOT |
static javax.swing.Icon |
STOP |
Constructor and Description |
---|
GUI(ExtractionController controller)
GUI constructor: Initializes all tabs, menu and other GUI elements.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the GUI and informs the
ExtractionController . |
void |
hasStartedExtract()
An extraction has started - GUI update.
|
void |
isDoneExtract()
The extraction is done - GUI update.
|
protected void |
startExtraction(boolean daemons)
Updates the GUI elements, if continuous extraction is running.
|
protected void |
stopExtraction(boolean daemons)
Updates the GUI elements, if continuous extraction is NOT running.
|
void |
toFg()
Gets the GUI window to the foreground.
|
void |
update()
Updates the profile tab.
|
void |
updateDoing(java.lang.String task)
Updates a state String.
|
void |
updateProfile(Profile profile)
Informs the profile tab that a specific
Profile was altered, and
updates the tab, it the updated Profile is the current shown Profile. |
protected final ExtractionController controller
ExtractionController
public ProfileTab profileTab
Profile
spublic HelpTab helpTab
public EventsTab eventTab
protected final javax.swing.JFrame mainFrame
public static final javax.swing.Icon SNAPSHOT
public static final javax.swing.Icon STOP
public static final javax.swing.Icon PLAY
public static final javax.swing.Icon PROADD
public static final javax.swing.Icon PROADDT
public static final javax.swing.Icon PRODEL
public GUI(ExtractionController controller)
controller
- The applications ExtractionControllerprotected void startExtraction(boolean daemons)
daemons
- Should the daemons be started?protected void stopExtraction(boolean daemons)
daemons
- Should the daemons be started?public void close()
ExtractionController
.public void updateProfile(Profile profile)
Profile
was altered, and
updates the tab, it the updated Profile is the current shown Profile.profile
- public void update()
public void hasStartedExtract()
public void isDoneExtract()
public void toFg()
public void updateDoing(java.lang.String task)
task
- The String to be shown.