Package com.formdev.flatlaf.ui
Class FlatScrollPaneUI
- java.lang.Object
-
- javax.swing.plaf.ComponentUI
-
- javax.swing.plaf.ScrollPaneUI
-
- javax.swing.plaf.basic.BasicScrollPaneUI
-
- com.formdev.flatlaf.ui.FlatScrollPaneUI
-
- All Implemented Interfaces:
FlatStylingSupport.StyleableUI
,ScrollPaneConstants
public class FlatScrollPaneUI extends BasicScrollPaneUI implements FlatStylingSupport.StyleableUI
Provides the Flat LaF UI delegate forJScrollPane
.- UiDefault:
- ScrollPane.font Font unused, ScrollPane.background Color, ScrollPane.foreground Color unused, ScrollPane.border Border, ScrollPane.viewportBorder Border , ScrollPane.smoothScrolling boolean
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicScrollPaneUI
BasicScrollPaneUI.HSBChangeListener, BasicScrollPaneUI.MouseWheelHandler, BasicScrollPaneUI.PropertyChangeHandler, BasicScrollPaneUI.ViewportChangeHandler, BasicScrollPaneUI.VSBChangeListener
-
-
Field Summary
Fields Modifier and Type Field Description protected Boolean
showButtons
-
Fields inherited from class javax.swing.plaf.basic.BasicScrollPaneUI
hsbChangeListener, scrollpane, spPropertyChangeListener, viewportChangeListener, vsbChangeListener
-
Fields inherited from interface javax.swing.ScrollPaneConstants
COLUMN_HEADER, HORIZONTAL_SCROLLBAR, HORIZONTAL_SCROLLBAR_ALWAYS, HORIZONTAL_SCROLLBAR_AS_NEEDED, HORIZONTAL_SCROLLBAR_NEVER, HORIZONTAL_SCROLLBAR_POLICY, LOWER_LEADING_CORNER, LOWER_LEFT_CORNER, LOWER_RIGHT_CORNER, LOWER_TRAILING_CORNER, ROW_HEADER, UPPER_LEADING_CORNER, UPPER_LEFT_CORNER, UPPER_RIGHT_CORNER, UPPER_TRAILING_CORNER, VERTICAL_SCROLLBAR, VERTICAL_SCROLLBAR_ALWAYS, VERTICAL_SCROLLBAR_AS_NEEDED, VERTICAL_SCROLLBAR_NEVER, VERTICAL_SCROLLBAR_POLICY, VIEWPORT
-
-
Constructor Summary
Constructors Constructor Description FlatScrollPaneUI()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
applyStyle(Object style)
protected Object
applyStyleProperty(String key, Object value)
protected MouseWheelListener
createMouseWheelListener()
protected PropertyChangeListener
createPropertyChangeListener()
static ComponentUI
createUI(JComponent c)
Map<String,Class<?>>
getStyleableInfos(JComponent c)
Object
getStyleableValue(JComponent c, String key)
protected void
installListeners(JScrollPane c)
protected void
installStyle()
void
installUI(JComponent c)
static boolean
isPermanentFocusOwner(JScrollPane scrollPane)
protected boolean
isSmoothScrollingEnabled()
protected void
uninstallListeners(JComponent c)
void
uninstallUI(JComponent c)
void
update(Graphics g, JComponent c)
protected void
updateViewport(PropertyChangeEvent e)
-
Methods inherited from class javax.swing.plaf.basic.BasicScrollPaneUI
createHSBChangeListener, createViewportChangeListener, createVSBChangeListener, getBaseline, getBaselineResizeBehavior, getMaximumSize, installDefaults, installKeyboardActions, paint, syncScrollPaneWithViewport, uninstallDefaults, uninstallKeyboardActions, updateColumnHeader, updateRowHeader, updateScrollBarDisplayPolicy
-
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getMinimumSize, getPreferredSize
-
-
-
-
Field Detail
-
showButtons
protected Boolean showButtons
- Since:
- 2
-
-
Method Detail
-
createUI
public static ComponentUI createUI(JComponent c)
-
installUI
public void installUI(JComponent c)
- Overrides:
installUI
in classBasicScrollPaneUI
-
uninstallUI
public void uninstallUI(JComponent c)
- Overrides:
uninstallUI
in classBasicScrollPaneUI
-
installListeners
protected void installListeners(JScrollPane c)
- Overrides:
installListeners
in classBasicScrollPaneUI
-
uninstallListeners
protected void uninstallListeners(JComponent c)
- Overrides:
uninstallListeners
in classBasicScrollPaneUI
-
createMouseWheelListener
protected MouseWheelListener createMouseWheelListener()
- Overrides:
createMouseWheelListener
in classBasicScrollPaneUI
-
isSmoothScrollingEnabled
protected boolean isSmoothScrollingEnabled()
-
createPropertyChangeListener
protected PropertyChangeListener createPropertyChangeListener()
- Overrides:
createPropertyChangeListener
in classBasicScrollPaneUI
-
installStyle
protected void installStyle()
- Since:
- 2
-
applyStyle
protected void applyStyle(Object style)
- Since:
- 2
-
getStyleableInfos
public Map<String,Class<?>> getStyleableInfos(JComponent c)
- Specified by:
getStyleableInfos
in interfaceFlatStylingSupport.StyleableUI
- Since:
- 2
-
getStyleableValue
public Object getStyleableValue(JComponent c, String key)
- Specified by:
getStyleableValue
in interfaceFlatStylingSupport.StyleableUI
- Since:
- 2.5
-
updateViewport
protected void updateViewport(PropertyChangeEvent e)
- Overrides:
updateViewport
in classBasicScrollPaneUI
-
update
public void update(Graphics g, JComponent c)
- Overrides:
update
in classComponentUI
-
isPermanentFocusOwner
public static boolean isPermanentFocusOwner(JScrollPane scrollPane)
- Since:
- 1.3
-
-