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 BooleanshowButtons-
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 voidapplyStyle(Object style)protected ObjectapplyStyleProperty(String key, Object value)protected MouseWheelListenercreateMouseWheelListener()protected PropertyChangeListenercreatePropertyChangeListener()static ComponentUIcreateUI(JComponent c)Map<String,Class<?>>getStyleableInfos(JComponent c)ObjectgetStyleableValue(JComponent c, String key)protected voidinstallListeners(JScrollPane c)protected voidinstallStyle()voidinstallUI(JComponent c)static booleanisPermanentFocusOwner(JScrollPane scrollPane)protected booleanisSmoothScrollingEnabled()protected voiduninstallListeners(JComponent c)voiduninstallUI(JComponent c)voidupdate(Graphics g, JComponent c)protected voidupdateViewport(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:
installUIin classBasicScrollPaneUI
-
uninstallUI
public void uninstallUI(JComponent c)
- Overrides:
uninstallUIin classBasicScrollPaneUI
-
installListeners
protected void installListeners(JScrollPane c)
- Overrides:
installListenersin classBasicScrollPaneUI
-
uninstallListeners
protected void uninstallListeners(JComponent c)
- Overrides:
uninstallListenersin classBasicScrollPaneUI
-
createMouseWheelListener
protected MouseWheelListener createMouseWheelListener()
- Overrides:
createMouseWheelListenerin classBasicScrollPaneUI
-
isSmoothScrollingEnabled
protected boolean isSmoothScrollingEnabled()
-
createPropertyChangeListener
protected PropertyChangeListener createPropertyChangeListener()
- Overrides:
createPropertyChangeListenerin 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:
getStyleableInfosin interfaceFlatStylingSupport.StyleableUI- Since:
- 2
-
getStyleableValue
public Object getStyleableValue(JComponent c, String key)
- Specified by:
getStyleableValuein interfaceFlatStylingSupport.StyleableUI- Since:
- 2.5
-
updateViewport
protected void updateViewport(PropertyChangeEvent e)
- Overrides:
updateViewportin classBasicScrollPaneUI
-
update
public void update(Graphics g, JComponent c)
- Overrides:
updatein classComponentUI
-
isPermanentFocusOwner
public static boolean isPermanentFocusOwner(JScrollPane scrollPane)
- Since:
- 1.3
-
-