com.jtattoo.plaf
Class BaseSpinnerUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by javax.swing.plaf.SpinnerUI
          extended by javax.swing.plaf.basic.BasicSpinnerUI
              extended by com.jtattoo.plaf.BaseSpinnerUI
Direct Known Subclasses:
AcrylSpinnerUI

public class BaseSpinnerUI
extends BasicSpinnerUI

Author:
Michael Hagen

Nested Class Summary
static class BaseSpinnerUI.SpinButton
           
 
Field Summary
 
Fields inherited from class javax.swing.plaf.basic.BasicSpinnerUI
spinner
 
Constructor Summary
BaseSpinnerUI()
           
 
Method Summary
protected  LayoutManager createLayout()
          Create a LayoutManager that manages the editor, nextButton, and previousButton children of the JSpinner.
protected  Component createNextButton()
           
protected  Component createPreviousButton()
           
static ComponentUI createUI(JComponent c)
          Returns a new instance of BaseSpinnerUI.
 
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 javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getMaximumSize, getMinimumSize, getPreferredSize, paint, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseSpinnerUI

public BaseSpinnerUI()
Method Detail

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.