Package org.omegat.util.gui
Class UIDesignManager
- java.lang.Object
-
- org.omegat.util.gui.UIDesignManager
-
public final class UIDesignManager extends java.lang.ObjectUI Design Manager.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidensureDockablesVisible(com.vlsolutions.swing.docking.DockingDesktop desktop)Ensure that any "closed" Dockables are made visible.static com.vlsolutions.swing.docking.DockingDesktopgetDesktop(java.awt.Container c)Traverse the given container's parents until either an instance of DockingDesktop is found, or null is found.static voidinitialize(java.lang.ClassLoader mainClassLoader)Initialize docking subsystem.static voidloadDefaultColors(javax.swing.UIDefaults uiDefaults)Load application default colorsstatic voidremoveUnusedMenuSeparators(javax.swing.JPopupMenu menu)Removes first, last and duplicate separators from menu.static voidsetTheme(java.lang.String lafClassName, java.lang.ClassLoader classLoader)
-
-
-
Method Detail
-
setTheme
public static void setTheme(java.lang.String lafClassName, java.lang.ClassLoader classLoader)
-
initialize
public static void initialize(java.lang.ClassLoader mainClassLoader) throws java.io.IOExceptionInitialize docking subsystem.- Throws:
java.io.IOException
-
removeUnusedMenuSeparators
public static void removeUnusedMenuSeparators(javax.swing.JPopupMenu menu)
Removes first, last and duplicate separators from menu.
-
ensureDockablesVisible
public static void ensureDockablesVisible(com.vlsolutions.swing.docking.DockingDesktop desktop)
Ensure that any "closed" Dockables are made visible.
-
getDesktop
public static com.vlsolutions.swing.docking.DockingDesktop getDesktop(java.awt.Container c)
Traverse the given container's parents until either an instance of DockingDesktop is found, or null is found.- Parameters:
c- The container to search- Returns:
- Either the parent DockingDesktop, or null
-
loadDefaultColors
public static void loadDefaultColors(javax.swing.UIDefaults uiDefaults) throws java.io.IOExceptionLoad application default colors- Throws:
java.io.IOException
-
-