com.jtattoo.plaf
Class BaseSpinnerUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.SpinnerUI
javax.swing.plaf.basic.BasicSpinnerUI
com.jtattoo.plaf.BaseSpinnerUI
- Direct Known Subclasses:
- AcrylSpinnerUI
public class BaseSpinnerUI
- extends BasicSpinnerUI
- Author:
- Michael Hagen
Methods inherited from class javax.swing.plaf.basic.BasicSpinnerUI |
createEditor, createPropertyChangeListener, getBaseline, getBaselineResizeBehavior, installDefaults, installKeyboardActions, installListeners, installNextButtonListeners, installPreviousButtonListeners, installUI, replaceEditor, uninstallDefaults, uninstallListeners, uninstallUI |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BaseSpinnerUI
public BaseSpinnerUI()
createUI
public static ComponentUI createUI(JComponent c)
- Returns a new instance of BaseSpinnerUI. SpinnerListUI
delegates are allocated one per JSpinner.
- Parameters:
c
- the JSpinner (not used)
- Returns:
- a new BasicSpinnerUI object
- See Also:
ComponentUI.createUI(javax.swing.JComponent)
createLayout
protected LayoutManager createLayout()
- Create a
LayoutManager
that manages the editor
,
nextButton
, and previousButton
children of the JSpinner. These three children must be
added with a constraint that identifies their role:
"Editor", "Next", and "Previous". The default layout manager
can handle the absence of any of these children.
- Overrides:
createLayout
in class BasicSpinnerUI
- Returns:
- a LayoutManager for the editor, next button, and previous button.
- See Also:
createNextButton()
,
createPreviousButton()
,
BasicSpinnerUI.createEditor()
createNextButton
protected Component createNextButton()
- Overrides:
createNextButton
in class BasicSpinnerUI
createPreviousButton
protected Component createPreviousButton()
- Overrides:
createPreviousButton
in class BasicSpinnerUI
Copyright © 2011. All Rights Reserved.