Class DarkInternalFrameUI
- java.lang.Object
-
- javax.swing.plaf.ComponentUI
-
- javax.swing.plaf.InternalFrameUI
-
- javax.swing.plaf.basic.BasicInternalFrameUI
-
- com.github.weisj.darklaf.ui.internalframe.DarkInternalFrameUI
-
- All Implemented Interfaces:
PropertyChangeListener
,EventListener
public class DarkInternalFrameUI extends BasicInternalFrameUI implements PropertyChangeListener
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicInternalFrameUI
BasicInternalFrameUI.BasicInternalFrameListener, BasicInternalFrameUI.BorderListener, BasicInternalFrameUI.ComponentHandler, BasicInternalFrameUI.GlassPaneDispatcher, BasicInternalFrameUI.InternalFrameLayout, BasicInternalFrameUI.InternalFramePropertyChangeListener
-
-
Field Summary
Fields Modifier and Type Field Description protected JMenuBar
currentMenuBar
-
Fields inherited from class javax.swing.plaf.basic.BasicInternalFrameUI
borderListener, componentListener, eastPane, frame, glassPaneDispatcher, internalFrameLayout, northPane, openMenuKey, propertyChangeListener, southPane, titlePane, westPane
-
-
Constructor Summary
Constructors Constructor Description DarkInternalFrameUI(JInternalFrame b)
-
Method Summary
Modifier and Type Method Description protected JComponent
createNorthPane(JInternalFrame w)
static ComponentUI
createUI(JComponent b)
protected Rectangle
getContentRegion(JDesktopPane desktopPane)
protected void
installDefaults()
protected void
installListeners()
void
propertyChange(PropertyChangeEvent evt)
protected boolean
shouldShowMenuBar(JInternalFrame internalFrame)
protected void
uninstallListeners()
protected void
updateActiveJMenuBar(JDesktopPane desktopPane, JMenuBar menuBar)
-
Methods inherited from class javax.swing.plaf.basic.BasicInternalFrameUI
activateFrame, closeFrame, createBorderListener, createComponentListener, createDesktopManager, createEastPane, createGlassPaneDispatcher, createInternalFrameListener, createLayoutManager, createPropertyChangeListener, createSouthPane, createWestPane, deactivateFrame, deiconifyFrame, deinstallMouseHandlers, getDesktopManager, getEastPane, getMaximumSize, getMinimumSize, getNorthPane, getPreferredSize, getSouthPane, getWestPane, iconifyFrame, installComponents, installKeyboardActions, installMouseHandlers, installUI, isKeyBindingActive, isKeyBindingRegistered, maximizeFrame, minimizeFrame, replacePane, setEastPane, setKeyBindingActive, setKeyBindingRegistered, setNorthPane, setSouthPane, setupMenuCloseKey, setupMenuOpenKey, setWestPane, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallUI
-
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, paint, update
-
-
-
-
Field Detail
-
currentMenuBar
protected JMenuBar currentMenuBar
-
-
Constructor Detail
-
DarkInternalFrameUI
public DarkInternalFrameUI(JInternalFrame b)
-
-
Method Detail
-
createUI
public static ComponentUI createUI(JComponent b)
-
installDefaults
protected void installDefaults()
- Overrides:
installDefaults
in classBasicInternalFrameUI
-
createNorthPane
protected JComponent createNorthPane(JInternalFrame w)
- Overrides:
createNorthPane
in classBasicInternalFrameUI
-
installListeners
protected void installListeners()
- Overrides:
installListeners
in classBasicInternalFrameUI
-
uninstallListeners
protected void uninstallListeners()
- Overrides:
uninstallListeners
in classBasicInternalFrameUI
-
updateActiveJMenuBar
protected void updateActiveJMenuBar(JDesktopPane desktopPane, JMenuBar menuBar)
-
getContentRegion
protected Rectangle getContentRegion(JDesktopPane desktopPane)
-
propertyChange
public void propertyChange(PropertyChangeEvent evt)
- Specified by:
propertyChange
in interfacePropertyChangeListener
-
shouldShowMenuBar
protected boolean shouldShowMenuBar(JInternalFrame internalFrame)
-
-