Class PrometheusMainWindow
java.lang.Object
io.github.tonywasher.joceanus.prometheus.ui.panel.PrometheusMainWindow
- All Implemented Interfaces:
TethysUIMainPanel
Main window for application.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidAdd Backup Menu items.protected voidAdd Data Menu items.protected voidAdd EditMenu items.protected voidAdd Help Menu items.protected voidAdd Security Menu items.protected voidBuild Main Menu.protected abstract TethysUIComponentBuild the main panel.voidbuildMainWindow(PrometheusDataControl pView, PrometheusToolkit pToolkit) Build the main window.protected abstract voidDisplay About Box.Obtain the main component.protected abstract MetisHelpModuleObtain the Help Module.Obtain menuBar.getView()Get the data view.booleanHandle application close.protected final booleanHas the underlying data got changes.protected abstract booleanHas the window got updates.protected final booleanIs a worker active.voidMake the frame.voidSet visibility.protected voidstartThread(TethysUIThread<?> pThread) Start a thread.
-
Constructor Details
-
PrometheusMainWindow
protected PrometheusMainWindow()Constructor.
-
-
Method Details
-
getView
Get the data view.- Returns:
- the data view
-
getComponent
Description copied from interface:TethysUIMainPanelObtain the main component.- Specified by:
getComponentin interfaceTethysUIMainPanel- Returns:
- the component
-
getMenuBar
Description copied from interface:TethysUIMainPanelObtain menuBar.- Specified by:
getMenuBarin interfaceTethysUIMainPanel- Returns:
- the menuBar (or null)
-
buildMainPanel
Build the main panel.- Returns:
- the main panel
- Throws:
OceanusException- on error
-
getHelpModule
Obtain the Help Module.- Returns:
- the help module
- Throws:
OceanusException- on error
-
buildMainWindow
public void buildMainWindow(PrometheusDataControl pView, PrometheusToolkit pToolkit) throws OceanusException Build the main window.- Parameters:
pView- the Data viewpToolkit- the toolkit- Throws:
OceanusException- on error
-
buildMainMenu
protected void buildMainMenu()Build Main Menu. -
makeFrame
public void makeFrame()Make the frame. -
setVisibility
public void setVisibility()Set visibility. -
hasChanges
protected final boolean hasChanges()Has the underlying data got changes.- Returns:
- true/false
-
hasUpdates
protected abstract boolean hasUpdates()Has the window got updates.- Returns:
- true/false
-
hasWorker
protected final boolean hasWorker()Is a worker active.- Returns:
- true/false
-
startThread
Start a thread.- Parameters:
pThread- the thread to start
-
displayAbout
protected abstract void displayAbout()Display About Box. -
handleAppClose
public boolean handleAppClose()Description copied from interface:TethysUIMainPanelHandle application close.- Specified by:
handleAppClosein interfaceTethysUIMainPanel- Returns:
- allow close (true/false)
-