Package com.formdev.flatlaf.ui
Class FlatSpinnerUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.SpinnerUI
javax.swing.plaf.basic.BasicSpinnerUI
com.formdev.flatlaf.ui.FlatSpinnerUI
- All Implemented Interfaces:
FlatStylingSupport.StyleableUI
Provides the Flat LaF UI delegate for
JSpinner.
- Author:
- Karl Tauber
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Colorprotected Colorprotected Colorprotected Colorprotected Colorprotected Colorprotected Colorprotected floatprotected Stringprotected Colorprotected Colorprotected Colorprotected intprotected InsetsFields inherited from class javax.swing.plaf.basic.BasicSpinnerUI
spinner -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidapplyStyle(Object style) protected ObjectapplyStyleProperty(String key, Object value) protected voidconfigureEditor(JComponent editor) protected JComponentprotected LayoutManagerprotected Componentprotected Componentstatic ComponentUIprotected ColorgetBackground(boolean enabled) protected ColorgetForeground(boolean enabled) getStyleableValue(JComponent c, String key) protected voidprotected voidprotected voidvoidstatic booleanisPermanentFocusOwner(JSpinner spinner) protected voidreplaceEditor(JComponent oldEditor, JComponent newEditor) protected voidprotected voidvoidupdate(Graphics g, JComponent c) Methods inherited from class javax.swing.plaf.basic.BasicSpinnerUI
createPropertyChangeListener, getBaseline, getBaselineResizeBehavior, installKeyboardActions, installNextButtonListeners, installPreviousButtonListeners, uninstallUIMethods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getMaximumSize, getMinimumSize, getPreferredSize, paint
-
Field Details
-
minimumWidth
protected int minimumWidth -
buttonStyle
-
arrowType
-
disabledBackground
-
disabledForeground
-
focusedBackground
-
buttonBackground
-
buttonSeparatorWidth
protected float buttonSeparatorWidth- Since:
- 2
-
buttonSeparatorColor
- Since:
- 2
-
buttonDisabledSeparatorColor
- Since:
- 2
-
buttonArrowColor
-
buttonDisabledArrowColor
-
buttonHoverArrowColor
-
buttonPressedArrowColor
-
padding
-
-
Constructor Details
-
FlatSpinnerUI
public FlatSpinnerUI()
-
-
Method Details
-
createUI
-
installUI
- Overrides:
installUIin classBasicSpinnerUI
-
installDefaults
protected void installDefaults()- Overrides:
installDefaultsin classBasicSpinnerUI
-
uninstallDefaults
protected void uninstallDefaults()- Overrides:
uninstallDefaultsin classBasicSpinnerUI
-
installListeners
protected void installListeners()- Overrides:
installListenersin classBasicSpinnerUI
-
uninstallListeners
protected void uninstallListeners()- Overrides:
uninstallListenersin classBasicSpinnerUI
-
installStyle
protected void installStyle()- Since:
- 2
-
applyStyle
- Since:
- 2
-
applyStyleProperty
- Since:
- 2
-
getStyleableInfos
- Specified by:
getStyleableInfosin interfaceFlatStylingSupport.StyleableUI- Since:
- 2
-
getStyleableValue
- Specified by:
getStyleableValuein interfaceFlatStylingSupport.StyleableUI- Since:
- 2.5
-
createEditor
- Overrides:
createEditorin classBasicSpinnerUI
-
replaceEditor
- Overrides:
replaceEditorin classBasicSpinnerUI
-
configureEditor
- Since:
- 1.6
-
isPermanentFocusOwner
- Since:
- 1.3
-
getBackground
-
getForeground
-
createLayout
- Overrides:
createLayoutin classBasicSpinnerUI
-
createNextButton
- Overrides:
createNextButtonin classBasicSpinnerUI
-
createPreviousButton
- Overrides:
createPreviousButtonin classBasicSpinnerUI
-
update
- Overrides:
updatein classComponentUI
-