Package org.omegat.gui.main
Class MainWindowUI
- java.lang.Object
-
- org.omegat.gui.main.MainWindowUI
-
public final class MainWindowUI extends java.lang.Object
Class for initialize, load/save, etc. for main window UI components.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MainWindowUI.StatusBarMode
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
UI_LAYOUT_FILE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
createMainComponents(MainWindow mainWindow, java.awt.Font font)
Create main UI panels.static javax.swing.JPanel
createStatusBar(MainWindow mainWindow)
Create swing UI components for status panel.static void
handlePerProjectLayouts(MainWindow mainWindow)
Installs aIProjectEventListener
that handles loading, storing, and restoring the main window layout when a project-specific layout is present.static com.vlsolutions.swing.docking.DockingDesktop
initDocking(MainWindow mainWindow)
Create docking desktop panel.static void
initializeScreenLayout(MainWindow mainWindow)
Initialize the size of OmegaT window, then load the layout prefs.static void
resetDesktopLayout(MainWindow mainWindow)
Restores main window layout to the default values (distinct from global preferences).static void
saveScreenLayout(MainWindow mainWindow)
Stores main window docking layout to disk.
-
-
-
Method Detail
-
createMainComponents
public static void createMainComponents(MainWindow mainWindow, java.awt.Font font)
Create main UI panels.
-
initDocking
public static com.vlsolutions.swing.docking.DockingDesktop initDocking(MainWindow mainWindow)
Create docking desktop panel.
-
handlePerProjectLayouts
public static void handlePerProjectLayouts(MainWindow mainWindow)
Installs aIProjectEventListener
that handles loading, storing, and restoring the main window layout when a project-specific layout is present.
-
createStatusBar
public static javax.swing.JPanel createStatusBar(MainWindow mainWindow)
Create swing UI components for status panel.
-
initializeScreenLayout
public static void initializeScreenLayout(MainWindow mainWindow)
Initialize the size of OmegaT window, then load the layout prefs.
-
saveScreenLayout
public static void saveScreenLayout(MainWindow mainWindow)
Stores main window docking layout to disk.
-
resetDesktopLayout
public static void resetDesktopLayout(MainWindow mainWindow)
Restores main window layout to the default values (distinct from global preferences).
-
-